| 1 |
@import "./chroma_dark.css"; |
| 2 |
@import "./chroma.css"; |
| 3 |
@import "./highlight.css"; |
| 4 |
|
| 5 |
/* Some contrast ratio fixes as reported by Google Page Speed. */ |
| 6 |
.chroma .c1 { |
| 7 |
@apply text-gray-500; |
| 8 |
} |
| 9 |
|
| 10 |
.dark .chroma .c1 { |
| 11 |
@apply text-gray-400; |
| 12 |
} |
| 13 |
|
| 14 |
.highlight code { |
| 15 |
@apply text-sm/6; |
| 16 |
} |
| 17 |
|
| 18 |
.content { |
| 19 |
@apply prose prose-sm sm:prose-base prose-stone max-w-none dark:prose-invert dark:text-slate-200; |
| 20 |
/* headings */ |
| 21 |
@apply prose-headings:font-semibold; |
| 22 |
/* lead */ |
| 23 |
@apply prose-lead:text-slate-500 prose-lead:text-xl prose-lead:mt-2 sm:prose-lead:mt-4 prose-lead:leading-relaxed dark:prose-lead:text-slate-400; |
| 24 |
/* links */ |
| 25 |
@apply prose-a:text-primary dark:prose-a:text-blue-500 prose-a:hover:text-blue-500 dark:prose-a:hover:text-blue-400 prose-a:underline; |
| 26 |
@apply prose-a:prose-code:underline prose-a:prose-code:hover:text-blue-500 prose-a:prose-code:hover:underline; |
| 27 |
/* pre */ |
| 28 |
@apply prose-pre:text-gray-800 prose-pre:border-1 prose-pre:border-gray-100 prose-pre:bg-light dark:prose-pre:bg-dark dark:prose-pre:ring-1 dark:prose-pre:ring-slate-300/10; |
| 29 |
/* code */ |
| 30 |
@apply prose-code:px-0.5 prose-code:text-gray-600 prose-code:dark:text-gray-300 border-none; |
| 31 |
@apply prose-code:before:hidden prose-code:after:hidden prose-code:font-mono; |
| 32 |
@apply prose-table:prose-th:prose-code:text-white; |
| 33 |
/* tables */ |
| 34 |
@apply prose-table:w-auto prose-table:border-2 prose-table:border-gray-100 prose-table:dark:border-gray-800 prose-table:prose-th:font-bold prose-table:prose-th:bg-blue-500 dark:prose-table:prose-th:bg-blue-500/50 prose-table:prose-th:p-2 prose-table:prose-td:p-2 prose-table:prose-th:text-white; |
| 35 |
/* hr */ |
| 36 |
@apply dark:prose-hr:border-slate-800; |
| 37 |
/* ol */ |
| 38 |
@apply prose-ol:marker:prose dark:prose-ol:marker:text-gray-300; |
| 39 |
/* ul */ |
| 40 |
@apply prose-ul:marker:text-gray-500 dark:prose-ul:marker:text-gray-300; |
| 41 |
} |
| 42 |
|
| 43 |
/* This will not match highlighting inside e.g. the code-toggle shortcode. */ |
| 44 |
/* For more fine grained control of this, see components/shortcodes.css. */ |
| 45 |
.content > .highlight, |
| 46 |
.content dd > .highlight, |
| 47 |
.content li > .highlight { |
| 48 |
@apply border-1 border-gray-200 dark:border-slate-600 mt-6 mb-8; |
| 49 |
} |