2021-09-03 01:48:41 +02:00
|
|
|
|
/* PrismJS 1.24.0
|
|
|
|
|
https://prismjs.com/download.html?#themes=prism-okaidia&languages=markup+css+clike+javascript+apacheconf+aspnet+bash+c+csharp+cpp+coffeescript+dart+docker+elm+git+go+graphql+handlebars+haskell+http+ignore+java+json+kotlin+less+markdown+markup-templating+nginx+php+powershell+ruby+rust+sass+scss+sql+swift+typescript+wasm+yaml&plugins=line-highlight+line-numbers+toolbar+copy-to-clipboard */
|
2021-05-10 20:56:20 +02:00
|
|
|
|
/**
|
|
|
|
|
* okaidia theme for JavaScript, CSS and HTML
|
|
|
|
|
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
|
|
|
|
* @author ocodia
|
|
|
|
|
*/
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
code[class*='language-'],
|
|
|
|
|
pre[class*='language-'] {
|
|
|
|
|
color: #f8f8f2;
|
|
|
|
|
background: none;
|
|
|
|
|
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
|
|
|
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
|
|
|
font-size: 1em;
|
|
|
|
|
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;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Code blocks */
|
2021-09-03 01:48:41 +02:00
|
|
|
|
pre[class*='language-'] {
|
|
|
|
|
padding: 1em;
|
|
|
|
|
margin: 0.5em 0;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
border-radius: 0.3em;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
:not(pre) > code[class*='language-'],
|
|
|
|
|
pre[class*='language-'] {
|
|
|
|
|
background: #272822;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Inline code */
|
2021-09-03 01:48:41 +02:00
|
|
|
|
:not(pre) > code[class*='language-'] {
|
|
|
|
|
padding: 0.1em;
|
|
|
|
|
border-radius: 0.3em;
|
|
|
|
|
white-space: normal;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
|
.token.prolog,
|
|
|
|
|
.token.doctype,
|
|
|
|
|
.token.cdata {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #8292a2;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.punctuation {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #f8f8f2;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
.token.namespace {
|
|
|
|
|
opacity: 0.7;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
|
.token.tag,
|
|
|
|
|
.token.constant,
|
|
|
|
|
.token.symbol,
|
|
|
|
|
.token.deleted {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #f92672;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.boolean,
|
|
|
|
|
.token.number {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #ae81ff;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
|
.token.attr-name,
|
|
|
|
|
.token.string,
|
|
|
|
|
.token.char,
|
|
|
|
|
.token.builtin,
|
|
|
|
|
.token.inserted {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #a6e22e;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.operator,
|
|
|
|
|
.token.entity,
|
|
|
|
|
.token.url,
|
|
|
|
|
.language-css .token.string,
|
|
|
|
|
.style .token.string,
|
|
|
|
|
.token.variable {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #f8f8f2;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.atrule,
|
|
|
|
|
.token.attr-value,
|
2021-09-03 01:48:41 +02:00
|
|
|
|
.token.function,
|
|
|
|
|
.token.class-name {
|
|
|
|
|
color: #e6db74;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.keyword {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #66d9ef;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.regex,
|
|
|
|
|
.token.important {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #fd971f;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.important,
|
|
|
|
|
.token.bold {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
font-weight: bold;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
.token.italic {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
font-style: italic;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.entity {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
cursor: help;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre[data-line] {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
position: relative;
|
|
|
|
|
padding: 1em 0 1em 3em;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
padding: inherit 0;
|
|
|
|
|
margin-top: 1em; /* Same as .prism’s padding-top */
|
2021-05-10 20:56:20 +02:00
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
background: hsla(24, 20%, 50%, 0.08);
|
|
|
|
|
background: linear-gradient(to right, hsla(24, 20%, 50%, 0.1) 70%, hsla(24, 20%, 50%, 0));
|
2021-05-10 20:56:20 +02:00
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
pointer-events: none;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
line-height: inherit;
|
|
|
|
|
white-space: pre;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
|
.line-highlight {
|
|
|
|
|
/*
|
|
|
|
|
* This will prevent browsers from replacing the background color with white.
|
|
|
|
|
* It's necessary because the element is layered on top of the displayed code.
|
|
|
|
|
*/
|
|
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
|
|
color-adjust: exact;
|
|
|
|
|
}
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight:before,
|
|
|
|
|
.line-highlight[data-end]:after {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
content: attr(data-start);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0.4em;
|
|
|
|
|
left: 0.6em;
|
|
|
|
|
min-width: 1em;
|
|
|
|
|
padding: 0 0.5em;
|
|
|
|
|
background-color: hsla(24, 20%, 50%, 0.4);
|
|
|
|
|
color: hsl(24, 20%, 95%);
|
|
|
|
|
font: bold 65%/1.5 sans-serif;
|
|
|
|
|
text-align: center;
|
|
|
|
|
vertical-align: 0.3em;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
box-shadow: 0 1px white;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight[data-end]:after {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
content: attr(data-end);
|
|
|
|
|
top: auto;
|
|
|
|
|
bottom: 0.4em;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
.line-numbers .line-highlight:before,
|
|
|
|
|
.line-numbers .line-highlight:after {
|
|
|
|
|
content: none;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
pre[id].linkable-line-numbers span.line-numbers-rows {
|
|
|
|
|
pointer-events: all;
|
|
|
|
|
}
|
|
|
|
|
pre[id].linkable-line-numbers span.line-numbers-rows > span:before {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
pre[id].linkable-line-numbers span.line-numbers-rows > span:hover:before {
|
|
|
|
|
background-color: rgba(128, 128, 128, 0.2);
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
pre[class*='language-'].line-numbers {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-left: 3.8em;
|
|
|
|
|
counter-reset: linenumber;
|
|
|
|
|
}
|
2021-05-10 20:56:20 +02:00
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
pre[class*='language-'].line-numbers > code {
|
|
|
|
|
position: relative;
|
|
|
|
|
white-space: inherit;
|
|
|
|
|
}
|
2021-05-10 20:56:20 +02:00
|
|
|
|
|
2021-09-03 01:48:41 +02:00
|
|
|
|
.line-numbers .line-numbers-rows {
|
|
|
|
|
position: absolute;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
top: 0;
|
|
|
|
|
font-size: 100%;
|
|
|
|
|
left: -3.8em;
|
|
|
|
|
width: 3em; /* works for line-numbers below 1000 lines */
|
|
|
|
|
letter-spacing: -1px;
|
|
|
|
|
border-right: 1px solid #999;
|
|
|
|
|
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-numbers-rows > span {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
display: block;
|
|
|
|
|
counter-increment: linenumber;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-numbers-rows > span:before {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
content: counter(linenumber);
|
|
|
|
|
color: #999;
|
|
|
|
|
display: block;
|
|
|
|
|
padding-right: 0.8em;
|
|
|
|
|
text-align: right;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
2021-09-03 01:48:41 +02:00
|
|
|
|
|
2021-05-10 20:56:20 +02:00
|
|
|
|
div.code-toolbar {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
position: relative;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0.3em;
|
|
|
|
|
right: 0.2em;
|
|
|
|
|
transition: opacity 0.3s ease-in-out;
|
|
|
|
|
opacity: 0;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar:hover > .toolbar {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
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;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar .toolbar-item {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
display: inline-block;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar a {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
cursor: pointer;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar button {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
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;
|
2021-05-10 20:56:20 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar > .toolbar a,
|
|
|
|
|
div.code-toolbar > .toolbar button,
|
|
|
|
|
div.code-toolbar > .toolbar span {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: #bbb;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
padding: 0 0.5em;
|
|
|
|
|
background: #f5f2f0;
|
|
|
|
|
background: rgba(224, 224, 224, 0.2);
|
|
|
|
|
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2);
|
|
|
|
|
border-radius: 0.5em;
|
2021-05-10 20:56:20 +02: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,
|
|
|
|
|
div.code-toolbar > .toolbar span:hover,
|
|
|
|
|
div.code-toolbar > .toolbar span:focus {
|
2021-09-03 01:48:41 +02:00
|
|
|
|
color: inherit;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|