2021-08-24 15:29:19 +03:00
|
|
|
|
/* PrismJS 1.24.1
|
|
|
|
|
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+actionscript+apacheconf+applescript+bash+c+csharp+cpp+cmake+coffeescript+csp+css-extras+diff+django+docker+elixir+elm+erlang+fsharp+flow+git+go+graphql+haml+handlebars+haskell+http+java+json+kotlin+latex+less+llvm+makefile+markdown+markup-templating+nasm+objectivec+ocaml+perl+php+php-extras+powershell+processing+pug+python+r+jsx+tsx+reason+ruby+rust+sass+scss+scheme+sql+stylus+swift+textile+toml+twig+typescript+vim+visual-basic+wasm+yaml&plugins=line-highlight+line-numbers+jsonp-highlight+highlight-keywords+command-line+toolbar+copy-to-clipboard */
|
2019-01-28 03:11:02 +03:00
|
|
|
|
/**
|
|
|
|
|
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
|
|
|
|
|
* Based on https://github.com/chriskempson/tomorrow-theme
|
|
|
|
|
* @author Rose Pritchard
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
code[class*="language-"],
|
|
|
|
|
pre[class*="language-"] {
|
2021-08-24 15:29:19 +03:00
|
|
|
|
color: #ccc;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
background: none;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
|
|
|
font-size: 1em;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
text-align: left;
|
|
|
|
|
white-space: pre;
|
|
|
|
|
word-spacing: normal;
|
|
|
|
|
word-break: normal;
|
|
|
|
|
word-wrap: normal;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
-moz-tab-size: 4;
|
|
|
|
|
-o-tab-size: 4;
|
|
|
|
|
tab-size: 4;
|
|
|
|
|
|
|
|
|
|
-webkit-hyphens: none;
|
|
|
|
|
-moz-hyphens: none;
|
|
|
|
|
-ms-hyphens: none;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
hyphens: none;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
|
pre[class*="language-"] {
|
2021-08-24 15:29:19 +03:00
|
|
|
|
padding: 1em;
|
|
|
|
|
margin: .5em 0;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:not(pre) > code[class*="language-"],
|
|
|
|
|
pre[class*="language-"] {
|
2021-08-24 15:29:19 +03:00
|
|
|
|
background: #2d2d2d;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
|
padding: .1em;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
border-radius: .3em;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
white-space: normal;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.token.comment,
|
|
|
|
|
.token.block-comment,
|
|
|
|
|
.token.prolog,
|
|
|
|
|
.token.doctype,
|
|
|
|
|
.token.cdata {
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
|
color: #ccc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.tag,
|
|
|
|
|
.token.attr-name,
|
|
|
|
|
.token.namespace,
|
|
|
|
|
.token.deleted {
|
|
|
|
|
color: #e2777a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.function-name {
|
|
|
|
|
color: #6196cc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.boolean,
|
|
|
|
|
.token.number,
|
|
|
|
|
.token.function {
|
|
|
|
|
color: #f08d49;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
|
.token.class-name,
|
|
|
|
|
.token.constant,
|
|
|
|
|
.token.symbol {
|
|
|
|
|
color: #f8c555;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
|
.token.important,
|
|
|
|
|
.token.atrule,
|
|
|
|
|
.token.keyword,
|
|
|
|
|
.token.builtin {
|
|
|
|
|
color: #cc99cd;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.string,
|
|
|
|
|
.token.char,
|
|
|
|
|
.token.attr-value,
|
|
|
|
|
.token.regex,
|
|
|
|
|
.token.variable {
|
|
|
|
|
color: #7ec699;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.operator,
|
|
|
|
|
.token.entity,
|
|
|
|
|
.token.url {
|
|
|
|
|
color: #67cdcc;
|
|
|
|
|
}
|
2020-11-16 02:00:41 +03:00
|
|
|
|
|
2019-01-28 03:11:02 +03:00
|
|
|
|
.token.important,
|
|
|
|
|
.token.bold {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
|
|
|
|
.token.italic {
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.token.entity {
|
|
|
|
|
cursor: help;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.token.inserted {
|
|
|
|
|
color: green;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre[data-line] {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 1em 0 1em 3em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
padding: inherit 0;
|
|
|
|
|
margin-top: 1em; /* Same as .prism’s padding-top */
|
|
|
|
|
|
|
|
|
|
background: hsla(24, 20%, 50%,.08);
|
|
|
|
|
background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));
|
|
|
|
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight:before,
|
|
|
|
|
.line-highlight[data-end]:after {
|
|
|
|
|
content: attr(data-start);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: .4em;
|
|
|
|
|
left: .6em;
|
|
|
|
|
min-width: 1em;
|
|
|
|
|
padding: 0 .5em;
|
|
|
|
|
background-color: hsla(24, 20%, 50%,.4);
|
|
|
|
|
color: hsl(24, 20%, 95%);
|
|
|
|
|
font: bold 65%/1.5 sans-serif;
|
|
|
|
|
text-align: center;
|
|
|
|
|
vertical-align: .3em;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
text-shadow: none;
|
|
|
|
|
box-shadow: 0 1px white;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-highlight[data-end]:after {
|
|
|
|
|
content: attr(data-end);
|
|
|
|
|
top: auto;
|
|
|
|
|
bottom: .4em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-numbers .line-highlight:before,
|
|
|
|
|
.line-numbers .line-highlight:after {
|
|
|
|
|
content: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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, .2);
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-28 03:11:02 +03:00
|
|
|
|
pre[class*="language-"].line-numbers {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-left: 3.8em;
|
|
|
|
|
counter-reset: linenumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre[class*="language-"].line-numbers > code {
|
|
|
|
|
position: relative;
|
|
|
|
|
white-space: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
border-right: 1px solid #999;
|
|
|
|
|
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
user-select: none;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
|
2019-01-28 03:11:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.line-numbers-rows > span {
|
|
|
|
|
display: block;
|
|
|
|
|
counter-increment: linenumber;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line-numbers-rows > span:before {
|
|
|
|
|
content: counter(linenumber);
|
|
|
|
|
color: #999;
|
|
|
|
|
display: block;
|
|
|
|
|
padding-right: 0.8em;
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.command-line-prompt {
|
|
|
|
|
border-right: 1px solid #999;
|
2020-01-06 11:31:18 +03:00
|
|
|
|
display: block;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
float: left;
|
|
|
|
|
font-size: 100%;
|
|
|
|
|
letter-spacing: -1px;
|
|
|
|
|
margin-right: 1em;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
2020-01-06 11:31:18 +03:00
|
|
|
|
}
|
2019-01-28 03:11:02 +03:00
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.command-line-prompt > span:before {
|
|
|
|
|
color: #999;
|
|
|
|
|
content: ' ';
|
2020-01-06 11:31:18 +03:00
|
|
|
|
display: block;
|
|
|
|
|
padding-right: 0.8em;
|
|
|
|
|
}
|
2019-01-28 03:11:02 +03:00
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.command-line-prompt > span[data-user]:before {
|
|
|
|
|
content: "[" attr(data-user) "@" attr(data-host) "] $";
|
|
|
|
|
}
|
2019-01-29 20:59:47 +03:00
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.command-line-prompt > span[data-user="root"]:before {
|
|
|
|
|
content: "[" attr(data-user) "@" attr(data-host) "] #";
|
|
|
|
|
}
|
2019-01-29 20:59:47 +03:00
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
.command-line-prompt > span[data-prompt]:before {
|
|
|
|
|
content: attr(data-prompt);
|
2019-01-28 03:11:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
div.code-toolbar {
|
|
|
|
|
position: relative;
|
2020-01-06 11:31:18 +03:00
|
|
|
|
}
|
|
|
|
|
|
2019-01-28 03:11:02 +03:00
|
|
|
|
div.code-toolbar > .toolbar {
|
|
|
|
|
position: absolute;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
top: .3em;
|
|
|
|
|
right: .2em;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
transition: opacity 0.3s ease-in-out;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.code-toolbar:hover > .toolbar {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
/* 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 {
|
2019-01-28 03:11:02 +03:00
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > a {
|
2019-01-28 03:11:02 +03:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > button {
|
2019-01-28 03:11:02 +03:00
|
|
|
|
background: none;
|
|
|
|
|
border: 0;
|
|
|
|
|
color: inherit;
|
|
|
|
|
font: inherit;
|
|
|
|
|
line-height: normal;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
padding: 0;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
-webkit-user-select: none; /* for button */
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > a,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > button,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > span {
|
2019-01-28 03:11:02 +03:00
|
|
|
|
color: #bbb;
|
|
|
|
|
font-size: .8em;
|
2021-08-24 15:29:19 +03:00
|
|
|
|
padding: 0 .5em;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
background: #f5f2f0;
|
|
|
|
|
background: rgba(224, 224, 224, 0.2);
|
|
|
|
|
box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);
|
2021-08-24 15:29:19 +03:00
|
|
|
|
border-radius: .5em;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-24 15:29:19 +03:00
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > a:hover,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > a:focus,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > button:hover,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > button:focus,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > span:hover,
|
|
|
|
|
div.code-toolbar > .toolbar > .toolbar-item > span:focus {
|
|
|
|
|
color: inherit;
|
2019-01-28 03:11:02 +03:00
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|