This commit is contained in:
prototypa
2022-09-04 01:44:30 -04:00
parent a8b02b3ce7
commit e95d47b5d3
3 changed files with 8 additions and 9 deletions

View File

@ -29,7 +29,7 @@ const {} = Astro.props;
window.onload = function () { window.onload = function () {
attachEvent("[data-aw-toggle-menu]", "click", function (elem) { attachEvent("[data-aw-toggle-menu]", "click", function (elem) {
elem.classList.toggle("expanded"); elem.classList.toggle("expanded");
document.documentElement.classList.toggle("overflow-hidden"); document.body.classList.toggle("overflow-hidden");
document.getElementById("menu")?.classList.toggle("hidden"); document.getElementById("menu")?.classList.toggle("hidden");
}); });
@ -43,7 +43,7 @@ const {} = Astro.props;
if (elem) { if (elem) {
elem.classList.remove("expanded"); elem.classList.remove("expanded");
} }
document.documentElement.classList.remove("overflow-hidden"); document.body.classList.remove("overflow-hidden");
document.getElementById("menu")?.classList.add("hidden"); document.getElementById("menu")?.classList.add("hidden");
}; };
</script> </script>

View File

@ -173,7 +173,7 @@ const {} = Astro.props;
aria-label="Twitter" aria-label="Twitter"
href="#" href="#"
> >
<Icon name="tabler:brand-twitter" class="w-6 h-6 md:w-5 md:h-5" /> <Icon name="tabler:brand-twitter" class="w-5 h-5" />
</a> </a>
</li> </li>
<li> <li>
@ -182,7 +182,7 @@ const {} = Astro.props;
aria-label="Instagram" aria-label="Instagram"
href="#" href="#"
> >
<Icon name="tabler:brand-instagram" class="w-6 h-6 md:w-5 md:h-5" /> <Icon name="tabler:brand-instagram" class="w-5 h-5" />
</a> </a>
</li> </li>
<li> <li>
@ -191,7 +191,7 @@ const {} = Astro.props;
aria-label="Facebook" aria-label="Facebook"
href="#" href="#"
> >
<Icon name="tabler:brand-facebook" class="w-6 h-6 md:w-5 md:h-5" /> <Icon name="tabler:brand-facebook" class="w-5 h-5" />
</a> </a>
</li> </li>
<li> <li>
@ -200,7 +200,7 @@ const {} = Astro.props;
aria-label="RSS" aria-label="RSS"
href="/rss.xml" href="/rss.xml"
> >
<Icon name="tabler:rss" class="w-6 h-6 md:w-5 md:h-5" /> <Icon name="tabler:rss" class="w-5 h-5" />
</a> </a>
</li> </li>
<li> <li>
@ -209,7 +209,7 @@ const {} = Astro.props;
aria-label="Github" aria-label="Github"
href="https://github.com/onwidget/astrowind" href="https://github.com/onwidget/astrowind"
> >
<Icon name="tabler:brand-github" class="w-6 h-6 md:w-5 md:h-5" /> <Icon name="tabler:brand-github" class="w-5 h-5" />
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -66,8 +66,7 @@ const {} = Astro.props;
<a <a
class="font-bold hover:text-gray-900 dark:hover:text-white px-4 py-3 flex items-center transition duration-150 ease-in-out" class="font-bold hover:text-gray-900 dark:hover:text-white px-4 py-3 flex items-center transition duration-150 ease-in-out"
href="https://github.com/onwidget/astrowind" href="https://github.com/onwidget/astrowind"
> >Github
Github
</a> </a>
</li> </li>
</ul> </ul>