mirror of
https://github.com/SebastianStork/kita.git
synced 2026-01-21 14:31:35 +01:00
93 lines
1.5 KiB
CSS
93 lines
1.5 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
html,
|
|
body {
|
|
@apply h-full;
|
|
}
|
|
|
|
html {
|
|
--bg: transparent;
|
|
--bg-dark: transparent;
|
|
--header: transparent;
|
|
--header-dark: transparent;
|
|
}
|
|
|
|
body {
|
|
-webkit-tap-highlight-color: transparent;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.dark body {
|
|
background: var(--bg-dark);
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
.not-ready * {
|
|
@apply !transition-none;
|
|
}
|
|
|
|
.btn-menu::before,
|
|
.btn-menu::after {
|
|
@apply block h-[2px] w-5 bg-black duration-200 content-[''] dark:invert;
|
|
}
|
|
|
|
.open {
|
|
@apply overflow-hidden;
|
|
}
|
|
|
|
.open .btn-menu::before {
|
|
@apply w-6 translate-y-[5.5px] rotate-45;
|
|
}
|
|
|
|
.open .btn-menu::after {
|
|
@apply w-6 -translate-y-[5.5px] -rotate-45;
|
|
}
|
|
|
|
.nav-wrapper {
|
|
@apply hidden lg:flex;
|
|
}
|
|
|
|
.open .nav-wrapper {
|
|
@apply flex;
|
|
}
|
|
|
|
article {
|
|
@apply text-lg;
|
|
}
|
|
|
|
.header {
|
|
background-color: var(--header);
|
|
}
|
|
|
|
.dark .header {
|
|
background: var(--header-dark);
|
|
}
|
|
|
|
.blur-header {
|
|
@apply bg-black/10 backdrop-blur dark:bg-white/10;
|
|
}
|
|
|
|
.block-bg {
|
|
@apply bg-black/[3%] dark:bg-white/[8%];
|
|
}
|
|
|
|
.block-hover {
|
|
@apply hover:bg-black/[5%] dark:hover:bg-white/[11%];
|
|
}
|
|
|
|
.block-hover-mask {
|
|
@apply hover:bg-black/[2%] dark:hover:bg-white/[3%];
|
|
}
|
|
|
|
.primary-link {
|
|
@apply text-black no-underline hover:opacity-80 dark:text-white;
|
|
}
|
|
|
|
.secondary-link {
|
|
@apply text-[var(--tw-prose-body)] no-underline hover:text-black dark:hover:text-white;
|
|
}
|
|
}
|