refactor: migrate templates to tailwind utilities

This commit is contained in:
2026-04-15 00:07:56 +02:00
parent 01c738588f
commit 0a5f64c604
23 changed files with 374 additions and 1614 deletions

View File

@@ -6,6 +6,11 @@
}
dropdown.classList.toggle('open')
const menu = dropdown.querySelector('[data-dropdown-menu]')
if (menu instanceof HTMLElement) {
menu.classList.toggle('invisible')
menu.classList.toggle('opacity-0')
}
}
;(window as Window & { toggleDropdown?: () => void }).toggleDropdown = toggleDropdown
@@ -23,6 +28,11 @@
if (!dropdown.contains(target)) {
dropdown.classList.remove('open')
const menu = dropdown.querySelector('[data-dropdown-menu]')
if (menu instanceof HTMLElement) {
menu.classList.add('invisible')
menu.classList.add('opacity-0')
}
}
})
})()