234 lines
4.2 KiB
CSS
234 lines
4.2 KiB
CSS
/* PrismJS 1.17.1
|
|
https://prismjs.com/download.html#themes=prism-dark&languages=markup+css+clike+javascript */
|
|
/**
|
|
* prism.js Dark theme for JavaScript, CSS and HTML
|
|
* Based on the slides of the talk “/Reg(exp){2}lained/”
|
|
* @author Lea Verou
|
|
*/
|
|
|
|
code {
|
|
background-color: #403E3E;
|
|
color: #A2A1A1;
|
|
font-size: .875em;
|
|
font-weight: 400;
|
|
padding: .25em .5em .25em;
|
|
border-radius: 2px;
|
|
}
|
|
code[class*="language-"],
|
|
pre[class*="language-"] {
|
|
color: white;
|
|
background: none;
|
|
font-size: 0.813rem;
|
|
font-weight: 400;
|
|
text-align: left;
|
|
white-space: pre;
|
|
word-spacing: normal;
|
|
word-break: normal;
|
|
word-wrap: normal;
|
|
|
|
-moz-tab-size: 4;
|
|
-o-tab-size: 4;
|
|
tab-size: 4;
|
|
|
|
-webkit-hyphens: none;
|
|
-moz-hyphens: none;
|
|
-ms-hyphens: none;
|
|
hyphens: none;
|
|
}
|
|
|
|
@media print {
|
|
code[class*="language-"],
|
|
pre[class*="language-"] {
|
|
text-shadow: none;
|
|
}
|
|
}
|
|
|
|
pre[class*="language-"],
|
|
:not(pre) > code[class*="language-"] {
|
|
background: #343232;
|
|
}
|
|
|
|
/* Code blocks */
|
|
pre[class*="language-"] {
|
|
padding: 2em;
|
|
margin: .5em 0;
|
|
overflow: auto;
|
|
border-radius: 2px;
|
|
line-height: 2;
|
|
}
|
|
|
|
/* Inline code */
|
|
:not(pre) > code[class*="language-"] {
|
|
padding: .15em .2em .05em;
|
|
border-radius: .3em;
|
|
border: .13em solid hsl(30, 20%, 40%);
|
|
white-space: normal;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: hsl(30, 20%, 50%);
|
|
}
|
|
|
|
.token.punctuation {
|
|
opacity: .7;
|
|
}
|
|
|
|
.namespace {
|
|
opacity: .7;
|
|
}
|
|
|
|
.token.property,
|
|
.token.tag,
|
|
.token.boolean,
|
|
.token.number,
|
|
.token.constant,
|
|
.token.symbol {
|
|
color: hsl(350, 40%, 70%);
|
|
}
|
|
|
|
.token.selector,
|
|
.token.attr-name,
|
|
.token.string,
|
|
.token.char,
|
|
.token.builtin,
|
|
.token.inserted {
|
|
color: hsl(75, 70%, 60%);
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string,
|
|
.token.variable {
|
|
color: hsl(40, 90%, 60%);
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.keyword {
|
|
color: hsl(350, 40%, 70%);
|
|
}
|
|
|
|
.token.regex,
|
|
.token.important {
|
|
color: #e90;
|
|
}
|
|
|
|
.token.important,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|
|
|
|
.token.deleted {
|
|
color: red;
|
|
}
|
|
|
|
|
|
.line-numbers .line-numbers-rows {
|
|
background-color: #403E3E !important;
|
|
}
|
|
|
|
.line-numbers-rows > span:before {
|
|
color: #888 !important;
|
|
}
|
|
|
|
.line-highlight {
|
|
background: rgba(21, 21, 21, 0.2) !important;
|
|
background: -webkit-linear-gradient(left, rgba(21, 21, 21, 0.2) 70%, rgba(21, 21, 21, 0)) !important;
|
|
background: linear-gradient(to right, rgba(21, 21, 21, 0.2) 70%, rgba(21, 21, 21, 0)) !important;
|
|
}
|
|
|
|
|
|
div.code-toolbar {
|
|
position: relative;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar {
|
|
position: absolute;
|
|
top: .3em;
|
|
right: .2em;
|
|
transition: opacity 0.3s ease-in-out;
|
|
opacity: 0;
|
|
}
|
|
|
|
div.code-toolbar:hover > .toolbar {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Separate line b/c rules are thrown out if selector is invalid.
|
|
IE11 and old Edge versions don't support :focus-within. */
|
|
div.code-toolbar:focus-within > .toolbar {
|
|
opacity: 1;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar .toolbar-item {
|
|
display: inline-block;
|
|
}
|
|
div.code-toolbar > .toolbar .toolbar-item:not(:first-child){
|
|
margin-left: 10px;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar a {
|
|
cursor: pointer;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar button {
|
|
background: none;
|
|
border: 0;
|
|
color: inherit;
|
|
font: inherit;
|
|
line-height: normal;
|
|
overflow: visible;
|
|
padding: 0;
|
|
-webkit-user-select: none; /* for button */
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar a,
|
|
div.code-toolbar > .toolbar button,
|
|
div.code-toolbar > .toolbar span {
|
|
font-size: .8em;
|
|
padding: .5em 1em;
|
|
background: #f5f2f0;
|
|
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
|
|
border-radius: 2px;
|
|
}
|
|
div.code-toolbar > .toolbar a:not(:first-child),
|
|
div.code-toolbar > .toolbar button:not(:first-child),
|
|
div.code-toolbar > .toolbar span:not(:first-child) {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
div.code-toolbar > .toolbar a:hover,
|
|
div.code-toolbar > .toolbar a:focus,
|
|
div.code-toolbar > .toolbar button:hover,
|
|
div.code-toolbar > .toolbar button:focus,
|
|
div.code-toolbar > .toolbar span:hover,
|
|
div.code-toolbar > .toolbar span:focus {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
color: #333333;
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
.line-numbers-rows > span:before {
|
|
content: counter(linenumber);
|
|
color: #888;
|
|
display: block;
|
|
padding-right: 0.8em;
|
|
text-align: center;
|
|
/*background-color: #403E3E;*/
|
|
}
|