2022-10-20 19:51:21 +02:00
|
|
|
|
@tailwind base;
|
|
|
|
|
@tailwind components;
|
|
|
|
|
@tailwind utilities;
|
2022-10-20 23:26:03 +02:00
|
|
|
|
|
2022-10-29 13:20:31 +02:00
|
|
|
|
:focus-visible {
|
|
|
|
|
outline: 6px solid theme(colors.blue.500 / 50%);
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-21 10:20:01 +02:00
|
|
|
|
/* Typography */
|
|
|
|
|
|
2022-10-21 12:10:29 +02:00
|
|
|
|
.prose :is(p, h1, h2, h3, h4, h5, h6, ul, ol, li, pre) {
|
2022-10-20 23:26:03 +02:00
|
|
|
|
@apply mb-4;
|
|
|
|
|
}
|
2022-10-21 11:10:41 +02:00
|
|
|
|
|
2022-10-21 12:10:29 +02:00
|
|
|
|
.prose :is(h1, h2, h3, h4, h5, h6) {
|
|
|
|
|
@apply mt-8;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-21 11:10:41 +02:00
|
|
|
|
.link,
|
|
|
|
|
.prose a {
|
2022-10-27 18:38:09 +02:00
|
|
|
|
@apply text-red-900 hover:text-red-600 dark:text-red-300 dark:hover:text-red-400 border-b-4 border-red-500/25 dark:border-red-200/25;
|
2022-10-21 12:10:29 +02:00
|
|
|
|
transition: color 200ms;
|
2022-10-21 11:10:41 +02:00
|
|
|
|
}
|
|
|
|
|
|
2022-10-21 12:10:29 +02:00
|
|
|
|
: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 {
|
2022-10-24 03:43:56 +02:00
|
|
|
|
@apply text-sm font-bold text-red-800 dark:text-red-300;
|
2022-10-21 12:10:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
: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 {
|
2022-10-24 03:43:56 +02:00
|
|
|
|
@apply bg-gray-100 dark:bg-gray-800;
|
2022-10-21 12:10:29 +02:00
|
|
|
|
border-radius: 0.25em;
|
|
|
|
|
overflow-x: auto;
|
2022-10-21 12:33:42 +02:00
|
|
|
|
padding: 1em;
|
2022-10-24 00:40:58 +02:00
|
|
|
|
position: relative;
|
2022-10-21 12:10:29 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.code-inline,
|
2022-10-21 12:33:42 +02:00
|
|
|
|
code {
|
2022-10-24 03:43:56 +02:00
|
|
|
|
@apply bg-gray-100 dark:bg-gray-800;
|
2022-10-21 12:10:29 +02:00
|
|
|
|
padding: 0.125em 0.25em;
|
|
|
|
|
border-radius: 0.25em;
|
|
|
|
|
font-size: 0.875em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Background */
|
|
|
|
|
|
|
|
|
|
.clip-wedge {
|
2022-10-24 02:14:59 +02:00
|
|
|
|
--wedge-skew: 10vw;
|
|
|
|
|
clip-path: polygon(0 var(--wedge-skew), 100% 0, 100% calc(100% - var(--wedge-skew)), 0% 100% );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen(md) {
|
|
|
|
|
.clip-wedge {
|
|
|
|
|
--wedge-skew: 8vw;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen(lg) {
|
|
|
|
|
.clip-wedge {
|
|
|
|
|
--wedge-skew: 5vw;
|
|
|
|
|
}
|
2022-10-21 11:10:41 +02:00
|
|
|
|
}
|
2022-10-21 12:44:56 +02:00
|
|
|
|
|
|
|
|
|
/* Components */
|
|
|
|
|
|
|
|
|
|
.button {
|
|
|
|
|
padding: 0.5em;
|
|
|
|
|
border-radius: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-24 03:43:56 +02:00
|
|
|
|
.button--opaque {
|
|
|
|
|
@apply bg-white dark:bg-gray-900;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-21 12:44:56 +02:00
|
|
|
|
.button:hover {
|
2022-10-24 03:43:56 +02:00
|
|
|
|
background-color: theme(colors.gray.400 / 25%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Utils */
|
|
|
|
|
|
|
|
|
|
html:not(.dark) .light\:hidden {
|
|
|
|
|
display: none;
|
2022-10-21 12:44:56 +02:00
|
|
|
|
}
|