Tweak menu styles; added components.css.
This commit is contained in:
parent
5e7c2dec43
commit
d2bb47ef43
1 changed files with 9 additions and 2 deletions
|
|
@ -9,6 +9,8 @@
|
||||||
@source "../layouts/**/*.astro";
|
@source "../layouts/**/*.astro";
|
||||||
@source "../pages/**/*.astro";
|
@source "../pages/**/*.astro";
|
||||||
|
|
||||||
|
@import "./components.css";
|
||||||
|
|
||||||
@custom-variant dark (&:where(.dark, .dark *));
|
@custom-variant dark (&:where(.dark, .dark *));
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
|
|
@ -176,7 +178,12 @@ header {
|
||||||
margin-left: -1rem;
|
margin-left: -1rem;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
li {
|
li {
|
||||||
@apply pl-4 text-2xl;
|
@apply hover:text-neutral-100 text-neutral-300 mb-2 pl-4 text-2xl;
|
||||||
|
}
|
||||||
|
li span.heading {
|
||||||
|
@apply font-bold underline;
|
||||||
|
text-decoration-thickness: 0.05em;
|
||||||
|
text-underline-offset: 0.2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#menu-toggle {
|
#menu-toggle {
|
||||||
|
|
@ -210,7 +217,7 @@ header {
|
||||||
@apply align-top opacity-0 sm:hidden md:hidden hidden lg:visible xl:visible 2xl:visible lg:inline xl:inline 2xl:inline ml-4;
|
@apply align-top opacity-0 sm:hidden md:hidden hidden lg:visible xl:visible 2xl:visible lg:inline xl:inline 2xl:inline ml-4;
|
||||||
@apply transition-opacity duration-300;
|
@apply transition-opacity duration-300;
|
||||||
}
|
}
|
||||||
#menu:hover span {
|
#menu:hover span.label-text {
|
||||||
@apply opacity-100;
|
@apply opacity-100;
|
||||||
}
|
}
|
||||||
#hamburger {
|
#hamburger {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue