318 lines
5 KiB
Text
318 lines
5 KiB
Text
/* 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 {
|
|
background-color: #373738;
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: 1;
|
|
box-shadow: 0 2px 4px 0 rgba(50,50,93,.3);
|
|
border-radius: 10px;
|
|
margin-bottom: 30px;
|
|
|
|
&[data-lang]::after {
|
|
content: attr(data-lang-label);
|
|
display: inline-block;
|
|
background: #ffffff;
|
|
color: #000000;
|
|
position: absolute;
|
|
top: 15px;
|
|
padding: 5px 10px;
|
|
border-radius: 15px;
|
|
font-size: 10px;
|
|
.func-end(10px);
|
|
opacity: 0.95;
|
|
}
|
|
|
|
&[data-lang="bash"]::after {
|
|
background: #2b2626;
|
|
color: #fff;
|
|
}
|
|
|
|
&[data-lang="javascript"]::after {
|
|
background: #fff054;
|
|
color: #333232;
|
|
}
|
|
|
|
&[data-lang="html"]::after {
|
|
background: #ff895b;
|
|
color: #ffffff;
|
|
}
|
|
|
|
&[data-lang="php"]::after {
|
|
background: #6182bb;
|
|
color: #ffffff;
|
|
}
|
|
|
|
&[data-lang="nodejs"]::after {
|
|
background: #8cc500;
|
|
color: #373738;
|
|
}
|
|
|
|
&[data-lang="ruby"]::after {
|
|
background: #fc3f48;
|
|
color: #ffffff;
|
|
}
|
|
|
|
&[data-lang="python"]::after {
|
|
background: #3873a2;
|
|
color: #ffffff;
|
|
}
|
|
|
|
&[data-lang="go"]::after {
|
|
background: #00add8;
|
|
color: #ffffff;
|
|
}
|
|
|
|
&[data-lang="dart"]::after {
|
|
background: #035698;
|
|
color: #2bb1f0;
|
|
}
|
|
|
|
.tag {
|
|
color: inherit!important;
|
|
background: transparent!important;
|
|
padding: inherit!important;
|
|
font-size: inherit!important;
|
|
}
|
|
|
|
.copy {
|
|
cursor: pointer;
|
|
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;
|
|
transition: bottom .3s, opacity .3s;
|
|
|
|
&::before {
|
|
.func-padding-end(5px);
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
.copy {
|
|
transition: bottom .3s, opacity .3s;
|
|
opacity: 0.90;
|
|
bottom: 16px;
|
|
}
|
|
}
|
|
|
|
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 {
|
|
background: #39393c;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
top: -20px;
|
|
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;
|
|
}
|
|
|