Porting all CSS to SCSS for easier maintainance, checking on all best practices.

This commit is contained in:
Adsooi 2021-07-14 00:18:53 +02:00
parent 4f5089655b
commit bdded822bd
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
37 changed files with 1115 additions and 424 deletions

View file

@ -8,8 +8,10 @@ window.addEventListener("load", () => {
nav.classList.toggle('menu-shown');
})
document.querySelectorAll(".menu-with-sub").forEach(menu => {
menu.querySelector("a").addEventListener("click", () => {
menu.querySelector("a[role=button]").addEventListener("click", () => {
menu.classList.toggle('toggled');
})
})
// Basic mail protection
document.querySelector("a[alt=Mail]").href = "mail" + "to" + String.fromCharCode(58) + "mail" + String.fromCharCode(64) + "ad5001.eu"
})