Files
shadcn-ui/apps/www/styles/mdx.css
shadcn 5e915756d5 feat(www): implement event tracking (#218)
* feat(www): implement event tracking

* fix(www): always show copy button

* fix(www): update align props for copy button
2023-04-20 12:21:50 +04:00

68 lines
1.3 KiB
CSS

[data-theme="light"] {
display: block;
}
[data-theme="dark"] {
display: none;
}
.dark [data-theme="light"] {
display: none;
}
.dark [data-theme="dark"] {
display: block;
}
[data-rehype-pretty-code-fragment] {
@apply relative;
}
[data-rehype-pretty-code-fragment] code {
@apply grid min-w-full break-words rounded-none border-0 bg-transparent p-0;
counter-reset: line;
box-decoration-break: clone;
}
[data-rehype-pretty-code-fragment] .line {
@apply px-4 min-h-[1rem] py-0.5 w-full inline-block;
}
[data-rehype-pretty-code-fragment] [data-line-numbers] .line {
@apply px-2;
}
[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-muted;
}
[data-rehype-pretty-code-fragment] .line-highlighted span {
@apply relative;
}
[data-rehype-pretty-code-fragment] .word--highlighted {
@apply rounded-md bg-muted border-muted border p-1;
}
.dark [data-rehype-pretty-code-fragment] .word--highlighted {
@apply bg-zinc-900;
}
[data-rehype-pretty-code-title] {
@apply mt-2 pt-6 px-4 text-sm font-medium;
}
[data-rehype-pretty-code-title] + pre {
@apply mt-2;
}