2018-02-20 18:00:08 +08:00
|
|
|
/**
|
|
|
|
* atom-dark theme for `prism.js`
|
|
|
|
* Based on Atom's `atom-dark` theme: https://github.com/atom/atom-dark-syntax
|
|
|
|
* @author Joe Gibson (@gibsjose)
|
|
|
|
*/
|
|
|
|
|
|
|
|
code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
color: #c5c8c6;
|
|
|
|
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
2019-10-08 09:57:05 +08:00
|
|
|
font-family: Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace;
|
2018-02-20 18:00:08 +08:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
pre[class*="language-"] {
|
|
|
|
padding: 1em;
|
|
|
|
margin: .5em 0;
|
|
|
|
overflow: auto;
|
|
|
|
border-radius: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre) > code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
background: #1d1f21;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
padding: .1em;
|
|
|
|
border-radius: .3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
|
|
|
color: #7C7C7C;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
color: #c5c8c6;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace {
|
|
|
|
opacity: .7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
.token.keyword,
|
|
|
|
.token.tag {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #96CBFE;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.class-name {
|
|
|
|
color: #FFFFB6;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.boolean,
|
|
|
|
.token.constant {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #99CC99;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.symbol,
|
|
|
|
.token.deleted {
|
|
|
|
color: #f92672;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.number {
|
|
|
|
color: #FF73FD;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
.token.attr-name,
|
|
|
|
.token.string,
|
|
|
|
.token.char,
|
|
|
|
.token.builtin,
|
|
|
|
.token.inserted {
|
|
|
|
color: #A8FF60;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.variable {
|
|
|
|
color: #C6C5FE;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.operator {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #EDEDED;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #FFFFB6;
|
2020-05-22 21:03:08 +08:00
|
|
|
cursor: help;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.url {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #96CBFE;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.language-css .token.string,
|
|
|
|
.style .token.string {
|
|
|
|
color: #87C38A;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.atrule,
|
|
|
|
.token.attr-value {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #F9EE98;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.function {
|
|
|
|
color: #DAD085;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.regex {
|
2019-10-08 09:57:05 +08:00
|
|
|
color: #E9C062;
|
2018-02-20 18:00:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.important {
|
|
|
|
color: #fd971f;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.important,
|
|
|
|
.token.bold {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2020-05-22 21:03:08 +08:00
|
|
|
|
2018-02-20 18:00:08 +08:00
|
|
|
.token.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|