diff options
| author | schererleander <leander@schererleander.de> | 2025-06-26 23:49:19 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-06-26 23:49:19 +0200 |
| commit | af524778849d94413ad3178c64b150c7bc3d653b (patch) | |
| tree | c3b9f7a14617145688257d24524ae629f1c6b4eb /src/index.css | |
| parent | b970fecb331d6eabe8eca96a93a6ecb7605780b8 (diff) | |
chore: styling
Diffstat (limited to 'src/index.css')
| -rw-r--r-- | src/index.css | 59 |
1 files changed, 49 insertions, 10 deletions
diff --git a/src/index.css b/src/index.css index a25df62..fcfe02a 100644 --- a/src/index.css +++ b/src/index.css @@ -1,17 +1,56 @@ - @import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *)); @layer base { - body { @apply bg-white dark:bg-black/95; } - span, p, a, li, code { @apply dark:text-gray-200; } - svg:not(.no-global) { @apply transform duration-200 ease-in-out hover:scale-110 dark:text-gray-200 hover:text-gray-400 hover:dark:text-white;} - h1 { @apply text-4xl font-bold mb-4 dark:text-gray-200; } - h2 { @apply text-2xl font-semibold mb-2 dark:text-gray-200; } - h3 { @apply text-xl font-semibold dark:text-gray-200; } - section > * > a:not(.block):link { @apply underline text-blue-500; } - section > * > a:not(.block):visited { @apply underline text-purple-500; } + body { + @apply bg-white dark:bg-black/95; + } + + span, + p, + a, + li, + code { + @apply dark:text-gray-200; + } + + svg:not(.no-global) { + @apply transform duration-200 ease-in-out hover:scale-110 dark:text-gray-200 hover:text-gray-400 hover:dark:text-white; + } + + h1 { + @apply text-4xl font-bold mb-4 dark:text-gray-200; + } + + h2 { + @apply text-2xl font-semibold mb-2 dark:text-gray-200; + } + + h3 { + @apply text-xl font-semibold dark:text-gray-200; + } + + article>*>p { + @apply mb-4 leading-relaxed; + } + + article>*>ul { + @apply list-disc pl-6 space-y-1; + } + + article>*>*>img { + @apply mx-auto mb-4 w-64 rounded-lg shadow; + } + + p>a:not(.block):link { + @apply underline text-blue-500; + } + + p>a:not(.block):visited { + @apply underline text-purple-500; + } + pre { @apply whitespace-pre overflow-x-auto max-w-full max-h-80 rounded-lg border p-2 my-2 border-neutral-300 dark:border-neutral-800 bg-neutral-100 dark:bg-neutral-900; } @@ -19,4 +58,4 @@ * { transition: background-color 0.25s, color 0.25s, border-color 0.25s; } -}
\ No newline at end of file +} |
