2019-05-09 18:54:39 +12:00
|
|
|
/* PrismJS 1.15.0
|
|
|
|
https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+ruby+markup-templating+php&plugins=line-numbers */
|
|
|
|
/**
|
|
|
|
* okaidia theme for JavaScript, CSS and HTML
|
|
|
|
* Loosely based on Monokai textmate theme by http://www.monokai.nl/
|
|
|
|
* @author ocodia
|
|
|
|
*/
|
|
|
|
|
|
|
|
.ide {
|
2020-02-11 08:30:05 +13:00
|
|
|
background-color: var(--config-prism-background);
|
2019-10-26 11:51:24 +13:00
|
|
|
overflow: hidden;
|
2019-05-09 18:54:39 +12:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(50,50,93,.3);
|
|
|
|
border-radius: 10px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
2019-10-26 11:44:33 +13:00
|
|
|
&[data-lang]::after {
|
2020-01-22 06:28:06 +13:00
|
|
|
content: attr(data-lang-label);
|
2019-10-26 11:44:33 +13:00
|
|
|
display: inline-block;
|
|
|
|
background: #ffffff;
|
|
|
|
color: #000000;
|
|
|
|
position: absolute;
|
2019-10-26 18:54:06 +13:00
|
|
|
top: 15px;
|
2019-10-26 19:07:49 +13:00
|
|
|
padding: 5px 10px;
|
|
|
|
border-radius: 15px;
|
|
|
|
font-size: 10px;
|
2019-10-26 18:48:09 +13:00
|
|
|
.func-end(10px);
|
2019-10-26 19:14:02 +13:00
|
|
|
opacity: 0.95;
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-lang="bash"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-bash);
|
|
|
|
color: var(--config-language-bash-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
2019-10-26 11:58:25 +13:00
|
|
|
&[data-lang="javascript"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-javascript);
|
|
|
|
color: var(--config-language-javascript-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
2019-10-26 18:48:09 +13:00
|
|
|
&[data-lang="html"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-html);
|
|
|
|
color: var(--config-language-html-contrast);
|
2019-10-26 18:48:09 +13:00
|
|
|
}
|
|
|
|
|
2019-10-26 11:44:33 +13:00
|
|
|
&[data-lang="php"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-php);
|
|
|
|
color: var(--config-language-php-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
2020-02-08 19:19:21 +13:00
|
|
|
&[data-lang="nodejs"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-nodejs);
|
|
|
|
color: var(--config-language-nodejs-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-lang="ruby"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-ruby);
|
|
|
|
color: var(--config-language-ruby-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-lang="python"]::after {
|
2020-04-13 09:52:17 +12:00
|
|
|
background: var(--config-language-python);
|
2020-02-12 02:09:44 +13:00
|
|
|
color: var(--config-language-python-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-lang="go"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-go);
|
|
|
|
color: var(--config-language-go-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
&[data-lang="dart"]::after {
|
2020-02-12 02:09:44 +13:00
|
|
|
background: var(--config-language-dart);
|
|
|
|
color: var(--config-language-dart-contrast);
|
2019-10-26 11:44:33 +13:00
|
|
|
}
|
|
|
|
|
2019-10-10 09:14:23 +13:00
|
|
|
.tag {
|
|
|
|
color: inherit!important;
|
|
|
|
background: transparent!important;
|
2019-10-10 09:16:30 +13:00
|
|
|
padding: inherit!important;
|
2019-10-10 09:17:45 +13:00
|
|
|
font-size: inherit!important;
|
2019-10-10 09:14:23 +13:00
|
|
|
}
|
|
|
|
|
2019-05-09 18:54:39 +12:00
|
|
|
.copy {
|
|
|
|
cursor: pointer;
|
2019-10-26 22:28:44 +13:00
|
|
|
content: attr(data-lang);
|
|
|
|
display: inline-block;
|
|
|
|
background: #ffffff;
|
|
|
|
color: #000000;
|
|
|
|
position: absolute;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
bottom: -20px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
border-radius: 15px;
|
|
|
|
font-size: 10px;
|
|
|
|
font-style: normal;
|
|
|
|
.func-start(50%);
|
|
|
|
opacity: 0;
|
2019-10-26 22:33:21 +13:00
|
|
|
transition: bottom .3s, opacity .3s;
|
2020-02-21 09:44:35 +13:00
|
|
|
line-height: normal;
|
2019-10-26 22:28:44 +13:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
.func-padding-end(5px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.copy {
|
2019-10-26 22:33:21 +13:00
|
|
|
transition: bottom .3s, opacity .3s;
|
2019-10-26 22:28:44 +13:00
|
|
|
opacity: 0.90;
|
|
|
|
bottom: 16px;
|
|
|
|
}
|
2019-05-09 18:54:39 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
-webkit-hyphens: none;
|
|
|
|
-moz-hyphens: none;
|
|
|
|
-ms-hyphens: none;
|
|
|
|
hyphens: none;
|
|
|
|
color: #e6ebf1;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 20px;
|
|
|
|
font-size: 13px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
|
|
|
padding-left: 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.light {
|
|
|
|
box-shadow: 0 2px 4px 0 rgba(50,50,93,.1);
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
|
|
|
pre {
|
|
|
|
color: #414770;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
|
|
|
color: #91a2b0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
.token.attr-name,
|
|
|
|
.token.string,
|
|
|
|
.token.char,
|
|
|
|
.token.builtin,
|
|
|
|
.token.inserted {
|
|
|
|
color: #149570;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
color: #414770;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.operator,
|
|
|
|
.token.entity,
|
|
|
|
.token.url,
|
|
|
|
.language-css .token.string,
|
|
|
|
.style .token.string,
|
|
|
|
.token.variable {
|
|
|
|
color: #414770;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers .line-numbers-rows {
|
|
|
|
background: #f2feef;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers-rows > span:before {
|
|
|
|
color: #5dc79e;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.keyword {
|
|
|
|
color: #6772e4;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Code blocks */
|
|
|
|
pre[class*="language-"] {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline code */
|
|
|
|
:not(pre) > code[class*="language-"] {
|
|
|
|
padding: .1em;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment,
|
|
|
|
.token.prolog,
|
|
|
|
.token.doctype,
|
|
|
|
.token.cdata {
|
|
|
|
color: #6b7c93;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.punctuation {
|
|
|
|
color: #f8f8f2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace {
|
|
|
|
opacity: .7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.property,
|
|
|
|
.token.tag,
|
|
|
|
.token.constant,
|
|
|
|
.token.symbol,
|
|
|
|
.token.deleted {
|
|
|
|
color: #f92672;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.boolean,
|
|
|
|
.token.number {
|
|
|
|
color: #f79a59;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.selector,
|
|
|
|
.token.attr-name,
|
|
|
|
.token.string,
|
|
|
|
.token.char,
|
|
|
|
.token.builtin,
|
|
|
|
.token.inserted {
|
|
|
|
color: #3ecf8e;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.operator,
|
|
|
|
.token.entity,
|
|
|
|
.token.url,
|
|
|
|
.language-css .token.string,
|
|
|
|
.style .token.string,
|
|
|
|
.token.variable {
|
|
|
|
color: #f8f8f2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.atrule,
|
|
|
|
.token.attr-value,
|
|
|
|
.token.function,
|
|
|
|
.token.class-name {
|
|
|
|
color: #45b2e8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.keyword {
|
|
|
|
color: #7795f8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.regex,
|
|
|
|
.token.important {
|
|
|
|
color: #fd971f;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.important,
|
|
|
|
.token.bold {
|
|
|
|
//font-weight: bold;
|
|
|
|
}
|
|
|
|
.token.italic {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity {
|
|
|
|
cursor: help;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"].line-numbers {
|
|
|
|
position: relative;
|
|
|
|
padding-left: 60px;
|
|
|
|
counter-reset: linenumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"].line-numbers > code {
|
|
|
|
position: relative;
|
|
|
|
white-space: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers .line-numbers-rows {
|
2020-02-11 08:30:05 +13:00
|
|
|
background: var(--config-prism-numbers);
|
2019-05-09 18:54:39 +12:00
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
top: -20px;
|
2020-02-11 18:17:53 +13:00
|
|
|
bottom: -21px;
|
2019-05-09 18:54:39 +12:00
|
|
|
padding: 20px 0;
|
|
|
|
font-size: 100%;
|
|
|
|
left: -60px;
|
|
|
|
width: 40px; /* works for line-numbers below 1000 lines */
|
|
|
|
letter-spacing: -1px;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers-rows > span {
|
|
|
|
.func-padding-end(5px);
|
|
|
|
pointer-events: none;
|
|
|
|
display: block;
|
|
|
|
counter-increment: linenumber;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line-numbers-rows > span:before {
|
|
|
|
content: counter(linenumber);
|
|
|
|
color: #636365;
|
|
|
|
display: block;
|
|
|
|
padding-right: 0.8em;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|