141 lines
2.2 KiB
CSS
141 lines
2.2 KiB
CSS
@tailwind base;
|
||
@tailwind components;
|
||
@tailwind utilities;
|
||
|
||
html {
|
||
font-family: theme("fontFamily.main");
|
||
font-size: theme("fontSize.2xl");
|
||
}
|
||
|
||
body {
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
/* Color scheme */
|
||
|
||
.color-scheme--sync .color-scheme--light-icon {
|
||
display: none;
|
||
}
|
||
|
||
.color-scheme--sync .color-scheme--dark-icon {
|
||
display: block;
|
||
}
|
||
|
||
@media (prefers-color-scheme: dark) {
|
||
.color-scheme--sync .color-scheme--light-icon {
|
||
display: block;
|
||
}
|
||
|
||
.color-scheme--sync .color-scheme--dark-icon {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
.color-scheme--dark .color-scheme--dark-icon,
|
||
.color-scheme--light .color-scheme--light-icon {
|
||
display: none;
|
||
}
|
||
|
||
.color-scheme--dark .color-scheme--light-icon,
|
||
.color-scheme--light .color-scheme--dark-icon {
|
||
display: block;
|
||
}
|
||
|
||
/* Typography */
|
||
|
||
.prose :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, pre) {
|
||
@apply mb-4;
|
||
}
|
||
|
||
.prose :is(h1, h2, h3, h4, h5, h6) {
|
||
@apply mt-8;
|
||
}
|
||
|
||
.link,
|
||
.prose a {
|
||
color: theme("colors.red.900");
|
||
border-bottom: 4px solid theme("colors.red.100");
|
||
transition: color 200ms;
|
||
}
|
||
|
||
.link:hover,
|
||
.prose a:hover {
|
||
color: theme("colors.red.600");
|
||
}
|
||
|
||
.dark .link,
|
||
.dark .prose a {
|
||
color: theme("colors.red.200");
|
||
border-bottom: 4px solid theme("colors.red.800");
|
||
}
|
||
|
||
.dark .link:hover,
|
||
.dark .prose a:hover {
|
||
color: theme("colors.red.400");
|
||
}
|
||
|
||
:is(.list, .prose ul) li {
|
||
position: relative;
|
||
margin-left: 1.5em;
|
||
}
|
||
|
||
:is(.list, .prose ul) li::before {
|
||
content: "–";
|
||
display: inline-block;
|
||
position: absolute;
|
||
width: 1.5em;
|
||
left: -1.5em;
|
||
}
|
||
|
||
.subheading,
|
||
.prose h3 {
|
||
@apply text-sm font-bold;
|
||
color: theme("colors.red.800");
|
||
}
|
||
|
||
:is(.subheading, .prose h3)::before {
|
||
content: "★";
|
||
font-weight: 500;
|
||
margin-right: 0.75em;
|
||
}
|
||
|
||
.subsubheading,
|
||
.prose h4 {
|
||
@apply text-sm;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.code-block,
|
||
pre {
|
||
@apply bg-gray-100;
|
||
border-radius: 0.25em;
|
||
overflow-x: auto;
|
||
padding: 1em;
|
||
}
|
||
|
||
.code-inline,
|
||
code {
|
||
@apply bg-gray-100;
|
||
padding: 0.125em 0.25em;
|
||
border-radius: 0.25em;
|
||
font-size: 0.875em;
|
||
}
|
||
|
||
/* Background */
|
||
|
||
.clip-wedge {
|
||
clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
|
||
}
|
||
|
||
/* Components */
|
||
|
||
.button {
|
||
padding: 0.5em;
|
||
border-radius: 100px;
|
||
}
|
||
|
||
.button:hover {
|
||
background-color: theme("colors.gray.200");
|
||
}
|