Merge branch 'main' of https://github.com/xHyroM/website into main

This commit is contained in:
xHyroM 2023-01-05 13:04:45 +01:00
commit 244e4aa979
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ const categories = Object.keys(sections);
</div>
<nav
id="sidebar"
class="md:bg-transparentpy-4 invisible absolute mt-6 mr-16 w-full -translate-x-full bg-dark transition-transform duration-200 md:visible md:relative md:mt-0 md:inline md:translate-x-0"
class="invisible absolute mt-6 mr-16 w-full -translate-x-full bg-dark py-4 transition-transform duration-200 md:visible md:relative md:mt-0 md:inline md:translate-x-0 md:bg-transparent"
>
<ul class="overflow-y-auto overflow-x-visible">
{

View file

@ -1,6 +1,6 @@
document.getElementById("sidebar-show").addEventListener("click", () => {
document.getElementById("sidebar-show").classList.remove("hidden");
document.getElementById("sidebar").classList.toggle("translate-x-0");
document.getElementById("sidebar").classList.toggle("-translate-x-full");
document.getElementById("sidebar").classList.remove("invisible");
document.getElementById("open-arrow").classList.toggle("rotate-180");
});