slidev-theme-nxyz
Version:
[](https://www.npmjs.com/package/slidev-theme-nxyz)
201 lines (142 loc) • 2.54 kB
CSS
pre,
code {
@apply select-text text-sm;
}
pre[class*='language-'] {
@apply p-2;
}
:not(pre)>code {
font-size: 0.9em;
background: var(--prism-background);
@apply font-light py-0.5 rounded;
}
:not(pre)>code:before,
:not(pre)>code:after {
content: '`';
opacity: 0.50;
}
:not(pre)>code:before {
margin-right: -0.08em;
}
code[class*="language-"],
pre[class*="language-"] {
color: #000000;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: undefined;
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
text-shadow: none;
background: undefined;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 0em;
margin: 1.033em 0;
overflow: auto;
}
:not(pre)>code[class*="language-"],
pre[class*="language-"] {
background: hsl(0, 0%, 95%);
}
:not(pre)>code[class*="language-"] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
.token.comment {
color: #008000;
}
.token.builtin {
color: #0070C1;
}
.token.number {
color: #098658;
}
.token.variable {
color: #098658;
}
.token.inserted {
color: #098658;
}
.token.operator {
color: #000000;
}
.token.constant {
color: #811F3F;
}
.token.hexcode {
color: #811F3F;
}
.token.regex {
color: #811F3F;
}
.token.char {
color: #811F3F;
}
.token.tag {
color: #800000;
}
.token.attr-name {
color: #E50000;
}
.token.selector {
color: #E50000;
}
.token.property {
color: #E50000;
}
.token.deleted {
color: #A31515;
}
.token.string {
color: #A31515;
}
.token.changed {
color: #0451A5;
}
.token.punctuation {
color: #0451A5;
}
.token.function {
color: #0000FF;
}
.token.keyword {
color: #0000FF;
}
.token.class-name {
color: #267F99;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}