diff --git a/js/customElements/skills.js b/js/customElements/skills.js index 2c717cb..65561b9 100644 --- a/js/customElements/skills.js +++ b/js/customElements/skills.js @@ -6,6 +6,7 @@ class Skill extends HTMLElement { if (xhr.readyState == 4 && xhr.status == 200) { JSON.parse(xhr.responseText).forEach(skill => { const image = document.createElement("img"); + image.classList.add("skills"); image.src = "/API/getFile.php?filename=" + skill; this.appendChild(image); }); diff --git a/styl/lib/_skills.styl b/styl/lib/_skills.styl index 2f24da8..2e697e6 100644 --- a/styl/lib/_skills.styl +++ b/styl/lib/_skills.styl @@ -1,5 +1,3 @@ -jl-skills { - img { - max-height: 80px; - } +.skills { + max-height: 80px; } \ No newline at end of file