mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-23 17:28:23 +00:00
48 lines
1.3 KiB
CSS
48 lines
1.3 KiB
CSS
:root {
|
|
--shiki-color-text: #414141;
|
|
--shiki-color-background: transparent;
|
|
--shiki-token-constant: #1976d2;
|
|
--shiki-token-string: #22863a;
|
|
--shiki-token-comment: #aaa;
|
|
--shiki-token-keyword: #d32f2f;
|
|
--shiki-token-parameter: #ff9800;
|
|
--shiki-token-function: #6f42c1;
|
|
--shiki-token-string-expression: #22863a;
|
|
--shiki-token-punctuation: #212121;
|
|
--shiki-token-link: #22863a;
|
|
--nextra-shiki-deleted: #f00;
|
|
--nextra-shiki-inserted: #22863a;
|
|
}
|
|
|
|
[data-rehype-pretty-code-fragment] code {
|
|
@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0 text-sm text-black;
|
|
counter-reset: line;
|
|
box-decoration-break: clone;
|
|
}
|
|
[data-rehype-pretty-code-fragment] .line {
|
|
@apply px-4 py-1;
|
|
}
|
|
[data-rehype-pretty-code-fragment] [data-line-numbers] > .line::before {
|
|
counter-increment: line;
|
|
content: counter(line);
|
|
display: inline-block;
|
|
width: 1rem;
|
|
margin-right: 1rem;
|
|
text-align: right;
|
|
color: gray;
|
|
}
|
|
[data-rehype-pretty-code-fragment] .line--highlighted {
|
|
@apply bg-slate-500 bg-opacity-10;
|
|
}
|
|
[data-rehype-pretty-code-fragment] .line-highlighted span {
|
|
@apply relative;
|
|
}
|
|
[data-rehype-pretty-code-fragment] .word--highlighted {
|
|
@apply rounded-md bg-slate-500 bg-opacity-10 p-1;
|
|
}
|
|
[data-rehype-pretty-code-title] {
|
|
@apply mt-4 py-2 px-4 text-sm font-medium;
|
|
}
|
|
[data-rehype-pretty-code-title] + pre {
|
|
@apply mt-0;
|
|
}
|