2023-05-25 10:41:54 +00:00
|
|
|
// navbar toggler
|
2023-07-27 04:28:16 +00:00
|
|
|
input#nav-toggle:checked + label #show-button {
|
2023-05-25 10:41:54 +00:00
|
|
|
@apply hidden;
|
|
|
|
}
|
|
|
|
|
2023-07-27 04:28:16 +00:00
|
|
|
input#nav-toggle:checked + label #hide-button {
|
|
|
|
@apply block;
|
2023-05-25 10:41:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input#nav-toggle:checked ~ #nav-menu {
|
2023-07-27 04:28:16 +00:00
|
|
|
@apply block;
|
2023-05-25 10:41:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
@apply bg-body dark:bg-darkmode-body py-6;
|
|
|
|
}
|
|
|
|
|
|
|
|
// navbar items
|
|
|
|
.navbar {
|
|
|
|
@apply relative flex flex-wrap items-center justify-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
@apply text-dark dark:text-darkmode-dark text-xl font-semibold;
|
|
|
|
image {
|
|
|
|
@apply max-h-full max-w-full;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
@apply text-center lg:text-left;
|
|
|
|
}
|
|
|
|
|
2023-07-22 05:20:40 +00:00
|
|
|
// .nav-item {
|
|
|
|
// @apply mx-3;
|
|
|
|
// }
|
2023-05-25 10:41:54 +00:00
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
@apply text-dark hover:text-primary dark:text-darkmode-dark block p-3 font-semibold transition lg:px-2 lg:py-3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-dropdown {
|
|
|
|
@apply mr-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-dropdown-list {
|
|
|
|
@apply bg-body dark:bg-darkmode-body z-10 min-w-[180px] rounded p-4 shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-dropdown-item {
|
|
|
|
@apply mb-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-dropdown-link {
|
|
|
|
@apply text-dark hover:text-primary dark:text-darkmode-text dark:hover:text-darkmode-primary block py-1 font-semibold transition;
|
|
|
|
}
|
|
|
|
|
|
|
|
//theme-switcher
|
|
|
|
.theme-switcher {
|
|
|
|
@apply inline-flex;
|
|
|
|
|
|
|
|
label {
|
|
|
|
@apply bg-border relative inline-block h-4 w-6 cursor-pointer rounded-2xl lg:w-10;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
@apply absolute opacity-0;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
@apply bg-dark absolute -top-1 left-0 flex h-6 w-6 items-center justify-center rounded-full transition-all duration-300 dark:bg-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:checked + label {
|
|
|
|
span {
|
|
|
|
@apply lg:left-4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|