2018-06-29 17:15:16 +08:00
|
|
|
/**
|
|
|
|
* Darcula theme
|
|
|
|
*
|
|
|
|
* Adapted from a theme based on:
|
|
|
|
* IntelliJ Darcula Theme (https://github.com/bulenkov/Darcula)
|
|
|
|
*
|
|
|
|
* @author Alexandre Paradis <service.paradis@gmail.com>
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
color: #a9b7c6;
|
|
|
|
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
|
|
|
direction: ltr;
|
|
|
|
text-align: left;
|
|
|
|
white-space: pre;
|
|
|
|
word-spacing: normal;
|
|
|
|
word-break: 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 {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: inherit;
|
|
|
|
background: rgba(33,66,131,.85);
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
|
|
|
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: inherit;
|
|
|
|
background: rgba(33,66,131,.85);
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
pre[class*="language-"] {
|
|
|
|
padding: 1em;
|
|
|
|
margin: .5em 0;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre) > code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
background: #2b2b2b;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
padding: .1em;
|
|
|
|
border-radius: .3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.cdata {
|
|
|
|
color: #808080;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.delimiter,
|
|
|
|
.token.boolean,
|
|
|
|
.token.keyword,
|
|
|
|
.token.selector,
|
|
|
|
.token.important,
|
|
|
|
.token.atrule {
|
|
|
|
color: #cc7832;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.operator,
|
|
|
|
.token.punctuation,
|
|
|
|
.token.attr-name {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #a9b7c6;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.tag,
|
|
|
|
.token.tag .punctuation,
|
|
|
|
.token.doctype,
|
|
|
|
.token.builtin {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #e8bf6a;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity,
|
|
|
|
.token.number,
|
|
|
|
.token.symbol {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #6897bb;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
.token.constant,
|
|
|
|
.token.variable {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #9876aa;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.string,
|
|
|
|
.token.char {
|
|
|
|
color: #6a8759;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-value,
|
|
|
|
.token.attr-value .punctuation {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #a5c261;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
.token.attr-value .punctuation:first-child {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #a9b7c6;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.url {
|
|
|
|
color: #287bde;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.function {
|
|
|
|
color: #ffc66d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.regex {
|
2019-10-08 09:57:05 +08:00
|
|
|
background: #364135;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.inserted {
|
2019-10-08 09:57:05 +08:00
|
|
|
background: #294436;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.deleted {
|
2019-10-08 09:57:05 +08:00
|
|
|
background: #484a4a;
|
2018-06-29 17:15:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*code.language-css .token.punctuation {
|
|
|
|
color: #cc7832;
|
|
|
|
}*/
|
|
|
|
|
|
|
|
code.language-css .token.property,
|
|
|
|
code.language-css .token.property + .token.punctuation {
|
|
|
|
color: #a9b7c6;
|
|
|
|
}
|
|
|
|
|
|
|
|
code.language-css .token.id {
|
|
|
|
color: #ffc66d;
|
|
|
|
}
|
|
|
|
|
|
|
|
code.language-css .token.selector > .token.class,
|
|
|
|
code.language-css .token.selector > .token.attribute,
|
|
|
|
code.language-css .token.selector > .token.pseudo-class,
|
|
|
|
code.language-css .token.selector > .token.pseudo-element {
|
|
|
|
color: #ffc66d;
|
2019-10-08 09:57:05 +08:00
|
|
|
}
|