23 lines
345 B
CSS
23 lines
345 B
CSS
.code {
|
|
@apply my-5;
|
|
@apply relative;
|
|
color: var(--code-fg);
|
|
}
|
|
|
|
.code pre {
|
|
@apply p-5;
|
|
@apply rounded-lg;
|
|
@apply whitespace-pre;
|
|
@apply font-mono;
|
|
background-color: var(--code-bg);
|
|
}
|
|
|
|
.code:before {
|
|
content: attr(data-lang);
|
|
color: var(--lang-color);
|
|
@apply absolute;
|
|
@apply right-3;
|
|
@apply top-2;
|
|
@apply text-xs;
|
|
}
|