83 lines
2.1 KiB
CSS
83 lines
2.1 KiB
CSS
@charset "UTF-8";
|
|
/**
|
|
* prism.js Dark theme for JavaScript, CSS and HTML
|
|
* Based on the slides of the talk “/Reg(exp){2}lained/”
|
|
* @author Lea Verou
|
|
* Copied from https://github.com/PrismJS/prism/blob/master/themes/prism-dark.css
|
|
*/
|
|
[data-theme=dark] {
|
|
--code-c-text: #fff;
|
|
--code-c-bg: #4d4033;
|
|
--code-c-highlight-bg: #5b4a38;
|
|
--code-c-line-number: rgba(255, 255, 255, 0.67);
|
|
}
|
|
[data-theme=dark] div[class*=language-] pre {
|
|
text-shadow: 0 -0.1em 0.2em #000;
|
|
}
|
|
@media print {
|
|
[data-theme=dark] div[class*=language-] pre {
|
|
text-shadow: none;
|
|
}
|
|
}
|
|
[data-theme=dark] div[class*=language-] pre ::selection {
|
|
background: rgba(29, 59, 83, 0.99);
|
|
text-shadow: none;
|
|
}
|
|
[data-theme=dark] .token.comment,
|
|
[data-theme=dark] .token.prolog,
|
|
[data-theme=dark] .token.doctype,
|
|
[data-theme=dark] .token.cdata {
|
|
color: hsl(30, 20%, 50%);
|
|
}
|
|
[data-theme=dark] .token.punctuation {
|
|
opacity: 0.7;
|
|
}
|
|
[data-theme=dark] .token.namespace {
|
|
opacity: 0.7;
|
|
}
|
|
[data-theme=dark] .token.property,
|
|
[data-theme=dark] .token.tag,
|
|
[data-theme=dark] .token.boolean,
|
|
[data-theme=dark] .token.number,
|
|
[data-theme=dark] .token.constant,
|
|
[data-theme=dark] .token.symbol {
|
|
color: hsl(350, 40%, 70%);
|
|
}
|
|
[data-theme=dark] .token.selector,
|
|
[data-theme=dark] .token.attr-name,
|
|
[data-theme=dark] .token.string,
|
|
[data-theme=dark] .token.char,
|
|
[data-theme=dark] .token.builtin,
|
|
[data-theme=dark] .token.inserted {
|
|
color: hsl(75, 70%, 60%);
|
|
}
|
|
[data-theme=dark] .token.operator,
|
|
[data-theme=dark] .token.entity,
|
|
[data-theme=dark] .token.url,
|
|
[data-theme=dark] .language-css .token.string,
|
|
[data-theme=dark] .style .token.string,
|
|
[data-theme=dark] .token.variable {
|
|
color: hsl(40, 90%, 60%);
|
|
}
|
|
[data-theme=dark] .token.atrule,
|
|
[data-theme=dark] .token.attr-value,
|
|
[data-theme=dark] .token.keyword {
|
|
color: hsl(350, 40%, 70%);
|
|
}
|
|
[data-theme=dark] .token.regex,
|
|
[data-theme=dark] .token.important {
|
|
color: #e90;
|
|
}
|
|
[data-theme=dark] .token.important,
|
|
[data-theme=dark] .token.bold {
|
|
font-weight: bold;
|
|
}
|
|
[data-theme=dark] .token.italic {
|
|
font-style: italic;
|
|
}
|
|
[data-theme=dark] .token.entity {
|
|
cursor: help;
|
|
}
|
|
[data-theme=dark] .token.deleted {
|
|
color: #f00;
|
|
} |