155 lines
2.9 KiB
CSS
155 lines
2.9 KiB
CSS
|
/**
|
||
|
* base16-prism (https://github.com/chawyehsu/base16-prism)
|
||
|
* @license MIT
|
||
|
*
|
||
|
* prism.js {{scheme-name}} theme for JavaScript, CSS and HTML
|
||
|
* @author {{scheme-author}}
|
||
|
*/
|
||
|
|
||
|
code[class*="language-"],
|
||
|
pre[class*="language-"] {
|
||
|
color: var(--color-fg); /* base05 */
|
||
|
background: var(--color-black);
|
||
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||
|
font-size: 1em;
|
||
|
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 {
|
||
|
color: inherit;
|
||
|
text-shadow: none;
|
||
|
background: var(--color-black-bright); /* base02 */
|
||
|
}
|
||
|
|
||
|
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||
|
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||
|
color: inherit;
|
||
|
text-shadow: none;
|
||
|
background: var(--color-black-bright); /* base02 */
|
||
|
}
|
||
|
|
||
|
@media print {
|
||
|
code[class*="language-"],
|
||
|
pre[class*="language-"] {
|
||
|
text-shadow: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* Code blocks */
|
||
|
pre[class*="language-"] {
|
||
|
padding: 1em;
|
||
|
margin: .5em 0;
|
||
|
overflow: auto;
|
||
|
}
|
||
|
|
||
|
:not(pre) > code[class*="language-"],
|
||
|
pre[class*="language-"] {
|
||
|
background: #{{base00-hex}}; /* base00 */
|
||
|
}
|
||
|
|
||
|
/* Inline code */
|
||
|
:not(pre) > code[class*="language-"] {
|
||
|
padding: .1em;
|
||
|
border-radius: .3em;
|
||
|
white-space: normal;
|
||
|
}
|
||
|
|
||
|
.token.comment,
|
||
|
.token.prolog,
|
||
|
.token.cdata {
|
||
|
color: #{{base03-hex}}; /* base03 */
|
||
|
}
|
||
|
|
||
|
.token.entity,
|
||
|
.language-css .token.string,
|
||
|
.style .token.string {
|
||
|
color: #{{base04-hex}}; /* base04 */
|
||
|
background: #{{base01-hex}}; /* base01 */
|
||
|
}
|
||
|
|
||
|
.token.punctuation {
|
||
|
color: #{{base05-hex}}; /* base05 */
|
||
|
}
|
||
|
|
||
|
.token.variable,
|
||
|
.token.tag,
|
||
|
.token.operator,
|
||
|
.token.deleted {
|
||
|
color: var(--color-blue); /* base08 */
|
||
|
}
|
||
|
|
||
|
.token.property,
|
||
|
.token.number,
|
||
|
.token.boolean,
|
||
|
.token.constant,
|
||
|
.token.url {
|
||
|
color: var(--color-red); /* base09 */
|
||
|
}
|
||
|
|
||
|
.token.class-name,
|
||
|
.token.bold {
|
||
|
color: var(--color-yellow); /* base0A */
|
||
|
}
|
||
|
|
||
|
.token.string,
|
||
|
.token.symbol,
|
||
|
.token.attr-value,
|
||
|
.token.inserted,
|
||
|
.token.atrule {
|
||
|
color: var(--color-cyan); /* base0B */
|
||
|
}
|
||
|
|
||
|
.token.regex,
|
||
|
.token.important {
|
||
|
color: var(--color-cyan-bright); /* base0C */
|
||
|
}
|
||
|
|
||
|
.token.function,
|
||
|
.token.attr-name {
|
||
|
color: var(--color-magenta); /* base0D */
|
||
|
}
|
||
|
|
||
|
.token.keyword,
|
||
|
.token.selector,
|
||
|
.token.italic,
|
||
|
.token.char,
|
||
|
.token.builtin {
|
||
|
color: var(--color-green); /* base0E */
|
||
|
}
|
||
|
|
||
|
.token.doctype {
|
||
|
color: var(--color-magenta-bright); /* base0F */
|
||
|
}
|
||
|
|
||
|
.token.important,
|
||
|
.token.bold {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
.token.italic {
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
.token.entity {
|
||
|
cursor: help;
|
||
|
}
|
||
|
|
||
|
.namespace {
|
||
|
opacity: .7;
|
||
|
}
|
||
|
|