Files
Pichome/static/prismjs/index.css
2024-01-31 01:00:33 +08:00

228 lines
4.4 KiB
CSS

/**
* okaidia theme for JavaScript, CSS and HTML
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
* @author ocodia
*/
code[class*=language-],
pre[class*=language-] {
color: #657b83; /* base00 */
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;
-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 {
background: #073642; /* base02 */
}
pre[class*=language-]::-moz-selection, pre[class*=language-] ::-moz-selection, code[class*=language-]::-moz-selection, code[class*=language-] ::-moz-selection {
background: #073642; /* base02 */
}
pre[class*=language-]::selection, pre[class*=language-] ::selection,
code[class*=language-]::selection, code[class*=language-] ::selection {
background: #073642; /* base02 */
}
/* Code blocks */
pre[class*=language-] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
border-radius: 0.3em;
}
:not(pre) > code[class*=language-],
pre[class*=language-] {
background-color: #fdf6e3; /* base3 */
}
/* Inline code */
:not(pre) > code[class*=language-] {
padding: 0.1em;
border-radius: 0.3em;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #93a1a1; /* base1 */
}
.token.punctuation {
color: #586e75; /* base01 */
}
.token.namespace {
opacity: 0.7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #268bd2; /* blue */
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.url,
.token.inserted {
color: #2aa198; /* cyan */
}
.token.entity {
color: #657b83; /* base00 */
background: #eee8d5; /* base2 */
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #859900; /* green */
}
.token.function,
.token.class-name {
color: #b58900; /* yellow */
}
.token.regex,
.token.important,
.token.variable {
color: #cb4b16; /* orange */
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
html.dark {
/* Code blocks */
/* Inline code */
}
html.dark code[class*=language-],
html.dark pre[class*=language-] {
color: #f8f8f2;
background: none;
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
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;
-ms-hyphens: none;
hyphens: none;
}
html.dark pre[class*=language-] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
border-radius: 0.3em;
}
html.dark :not(pre) > code[class*=language-],
html.dark pre[class*=language-] {
background: #272822;
}
html.dark :not(pre) > code[class*=language-] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
html.dark .token.comment,
html.dark .token.prolog,
html.dark .token.doctype,
html.dark .token.cdata {
color: #8292a2;
}
html.dark .token.punctuation {
color: #f8f8f2;
}
html.dark .token.namespace {
opacity: 0.7;
}
html.dark .token.property,
html.dark .token.tag,
html.dark .token.constant,
html.dark .token.symbol,
html.dark .token.deleted {
color: #f92672;
}
html.dark .token.boolean,
html.dark .token.number {
color: #ae81ff;
}
html.dark .token.selector,
html.dark .token.attr-name,
html.dark .token.string,
html.dark .token.char,
html.dark .token.builtin,
html.dark .token.inserted {
color: #a6e22e;
}
html.dark .token.operator,
html.dark .token.entity,
html.dark .token.url,
html.dark .language-css .token.string,
html.dark .style .token.string,
html.dark .token.variable {
color: #f8f8f2;
}
html.dark .token.atrule,
html.dark .token.attr-value,
html.dark .token.function,
html.dark .token.class-name {
color: #e6db74;
}
html.dark .token.keyword {
color: #66d9ef;
}
html.dark .token.regex,
html.dark .token.important {
color: #fd971f;
}
html.dark .token.important,
html.dark .token.bold {
font-weight: bold;
}
html.dark .token.italic {
font-style: italic;
}
html.dark .token.entity {
cursor: help;
}