2020-11-18 14:50:32 +08:00
|
|
|
/**
|
|
|
|
* Coldark Theme for Prism.js
|
|
|
|
* Theme variation: Cold
|
|
|
|
* Tested with HTML, CSS, JS, JSON, PHP, YAML, Bash script
|
|
|
|
* @author Armand Philippot <contact@armandphilippot.com>
|
|
|
|
* @homepage https://github.com/ArmandPhilippot/coldark-prism
|
|
|
|
* @license MIT
|
|
|
|
*/
|
|
|
|
code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
color: #111b27;
|
|
|
|
background: none;
|
|
|
|
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
|
|
|
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 {
|
2021-03-22 22:19:48 +08:00
|
|
|
background: #8da1b9;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"]::selection,
|
|
|
|
pre[class*="language-"] ::selection,
|
|
|
|
code[class*="language-"]::selection,
|
|
|
|
code[class*="language-"] ::selection {
|
2021-03-22 22:19:48 +08:00
|
|
|
background: #8da1b9;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
pre[class*="language-"] {
|
|
|
|
padding: 1em;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre) > code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
2021-03-22 22:19:48 +08:00
|
|
|
background: #e3eaf2;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
padding: 0.1em 0.3em;
|
|
|
|
border-radius: 0.3em;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #3c526d;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
color: #111b27;
|
|
|
|
}
|
|
|
|
|
2021-03-22 22:19:48 +08:00
|
|
|
.token.delimiter.important,
|
|
|
|
.token.selector .parent,
|
|
|
|
.token.tag,
|
|
|
|
.token.tag .token.punctuation {
|
|
|
|
color: #006d6d;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-name,
|
|
|
|
.token.boolean,
|
2021-03-22 22:19:48 +08:00
|
|
|
.token.boolean.important,
|
2020-11-18 14:50:32 +08:00
|
|
|
.token.number,
|
|
|
|
.token.constant,
|
|
|
|
.token.selector .token.attribute {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #755f00;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.class-name,
|
|
|
|
.token.key,
|
|
|
|
.token.parameter,
|
|
|
|
.token.property,
|
|
|
|
.token.property-access,
|
|
|
|
.token.variable {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-value,
|
|
|
|
.token.inserted,
|
|
|
|
.token.color,
|
|
|
|
.token.selector .token.value,
|
|
|
|
.token.string,
|
|
|
|
.token.string .token.url-link {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #116b00;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.builtin,
|
|
|
|
.token.keyword-array,
|
|
|
|
.token.package,
|
|
|
|
.token.regex {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #af00af;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.function,
|
|
|
|
.token.selector .token.class,
|
|
|
|
.token.selector .token.id {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #7c00aa;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.atrule .token.rule,
|
|
|
|
.token.combinator,
|
|
|
|
.token.keyword,
|
|
|
|
.token.operator,
|
2021-03-22 22:19:48 +08:00
|
|
|
.token.pseudo-class,
|
|
|
|
.token.pseudo-element,
|
|
|
|
.token.selector,
|
2020-11-18 14:50:32 +08:00
|
|
|
.token.unit {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #a04900;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.deleted,
|
|
|
|
.token.important {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #c22f2e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.keyword-this,
|
|
|
|
.token.this {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.important,
|
|
|
|
.token.keyword-this,
|
|
|
|
.token.this,
|
|
|
|
.token.bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-03-22 22:19:48 +08:00
|
|
|
.token.delimiter.important {
|
|
|
|
font-weight: inherit;
|
|
|
|
}
|
|
|
|
|
2020-11-18 14:50:32 +08:00
|
|
|
.token.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity {
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.title,
|
|
|
|
.language-markdown .token.title .token.punctuation {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2021-03-22 22:19:48 +08:00
|
|
|
.language-markdown .token.blockquote.punctuation {
|
|
|
|
color: #af00af;
|
|
|
|
}
|
|
|
|
|
2020-11-18 14:50:32 +08:00
|
|
|
.language-markdown .token.code {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #006d6d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.hr.punctuation {
|
|
|
|
color: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.url > .token.content {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #116b00;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.url-link {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #755f00;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.list.punctuation {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #af00af;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.language-markdown .token.table-header {
|
|
|
|
color: #111b27;
|
|
|
|
}
|
|
|
|
|
|
|
|
.language-json .token.operator {
|
|
|
|
color: #111b27;
|
|
|
|
}
|
|
|
|
|
2021-03-22 22:19:48 +08:00
|
|
|
.language-scss .token.variable {
|
|
|
|
color: #006d6d;
|
|
|
|
}
|
|
|
|
|
2020-11-18 14:50:32 +08:00
|
|
|
/* overrides color-values for the Show Invisibles plugin
|
|
|
|
* https://prismjs.com/plugins/show-invisibles/
|
|
|
|
*/
|
|
|
|
.token.tab:not(:empty):before,
|
|
|
|
.token.cr:before,
|
|
|
|
.token.lf:before,
|
|
|
|
.token.space:before {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #3c526d;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Toolbar plugin
|
|
|
|
* https://prismjs.com/plugins/toolbar/
|
|
|
|
*/
|
|
|
|
div.code-toolbar > .toolbar a,
|
|
|
|
div.code-toolbar > .toolbar button {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #e3eaf2;
|
|
|
|
background: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar a:hover,
|
|
|
|
div.code-toolbar > .toolbar a:focus,
|
|
|
|
div.code-toolbar > .toolbar button:hover,
|
|
|
|
div.code-toolbar > .toolbar button:focus {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #e3eaf2;
|
|
|
|
background: #005a8eda;
|
2020-11-18 14:50:32 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar span,
|
|
|
|
div.code-toolbar > .toolbar span:hover,
|
|
|
|
div.code-toolbar > .toolbar span:focus {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #e3eaf2;
|
|
|
|
background: #3c526d;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Line Highlight plugin
|
|
|
|
* http://prismjs.com/plugins/line-highlight/
|
|
|
|
*/
|
|
|
|
.line-highlight {
|
2021-03-22 22:19:48 +08:00
|
|
|
background: #8da1b92f;
|
|
|
|
background: linear-gradient(to right, #8da1b92f 70%, #8da1b925);
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.line-highlight:before,
|
|
|
|
.line-highlight[data-end]:after {
|
2021-03-22 22:19:48 +08:00
|
|
|
background-color: #3c526d;
|
|
|
|
color: #e3eaf2;
|
|
|
|
box-shadow: 0 1px #8da1b9;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
|
2021-03-22 22:19:48 +08:00
|
|
|
background-color: #3c526d1f;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Line Numbers plugin
|
|
|
|
* http://prismjs.com/plugins/line-numbers/
|
|
|
|
*/
|
|
|
|
.line-numbers .line-numbers-rows {
|
2021-03-22 22:19:48 +08:00
|
|
|
border-right: 1px solid #8da1b97a;
|
|
|
|
background: #d0dae77a;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers-rows > span:before {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #3c526dda;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Match Braces plugin
|
|
|
|
* https://prismjs.com/plugins/match-braces/
|
|
|
|
*/
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-1,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-5,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-9 {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #755f00;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-2,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-6,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-10 {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #af00af;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-3,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-7,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-11 {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #005a8e;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-4,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-8,
|
|
|
|
.rainbow-braces .token.punctuation.brace-level-12 {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #7c00aa;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Diff Highlight plugin
|
|
|
|
* https://prismjs.com/plugins/diff-highlight/
|
|
|
|
*/
|
|
|
|
pre.diff-highlight > code .token.deleted:not(.prefix),
|
|
|
|
pre > code.diff-highlight .token.deleted:not(.prefix) {
|
2021-03-22 22:19:48 +08:00
|
|
|
background-color: #c22f2e1f;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre.diff-highlight > code .token.inserted:not(.prefix),
|
|
|
|
pre > code.diff-highlight .token.inserted:not(.prefix) {
|
2021-03-22 22:19:48 +08:00
|
|
|
background-color: #116b001f;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* overrides color-values for the Command Line plugin
|
|
|
|
* https://prismjs.com/plugins/command-line/
|
|
|
|
*/
|
|
|
|
.command-line-prompt {
|
2021-03-22 22:19:48 +08:00
|
|
|
border-right: 1px solid #8da1b97a;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.command-line-prompt > span:before {
|
2021-03-22 22:19:48 +08:00
|
|
|
color: #3c526dda;
|
2020-11-18 14:50:32 +08:00
|
|
|
}
|