178 lines
2.8 KiB
CSS
Executable File
178 lines
2.8 KiB
CSS
Executable File
/**
|
|
* Nord Theme Originally by Arctic Ice Studio
|
|
* https://nordtheme.com
|
|
*
|
|
* Ported for PrismJS by Zane Hitchcoxc (@zwhitchcox) and Gabriel Ramos (@gabrieluizramos)
|
|
*/
|
|
|
|
pre.wp-block-code code {
|
|
color: #f8f8f2;
|
|
padding-left: 0;
|
|
border: none;
|
|
overflow-x: initial;
|
|
}
|
|
|
|
code[class*='language-'],
|
|
pre[class*='language-'] {
|
|
color: #f8f8f2;
|
|
background: none;
|
|
font-family: Hack, 'Fira Code', Consolas, Monaco, 'Andale Mono',
|
|
'Ubuntu Mono', monospace;
|
|
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;
|
|
}
|
|
|
|
/* Code blocks */
|
|
pre.wp-block-code {
|
|
background: #2e3440;
|
|
overflow: auto;
|
|
}
|
|
|
|
:where(pre.wp-block-code) {
|
|
padding: 1em;
|
|
margin: 0.5em auto;
|
|
border-radius: 0.3em;
|
|
}
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: #636f88;
|
|
}
|
|
|
|
.token.punctuation {
|
|
color: #81a1c1;
|
|
}
|
|
|
|
.namespace {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.token.property,
|
|
.token.tag,
|
|
.token.constant,
|
|
.token.symbol,
|
|
.token.deleted {
|
|
color: #81a1c1;
|
|
}
|
|
|
|
.token.number {
|
|
color: #b48ead;
|
|
}
|
|
|
|
.token.boolean {
|
|
color: #81a1c1;
|
|
}
|
|
|
|
.token.selector,
|
|
.token.attr-name,
|
|
.token.string,
|
|
.token.char,
|
|
.token.builtin,
|
|
.token.inserted {
|
|
color: #a3be8c;
|
|
}
|
|
|
|
.token.operator,
|
|
.token.entity,
|
|
.token.url,
|
|
.language-css .token.string,
|
|
.style .token.string,
|
|
.token.variable {
|
|
color: #81a1c1;
|
|
}
|
|
|
|
.token.atrule,
|
|
.token.attr-value,
|
|
.token.function,
|
|
.token.class-name {
|
|
color: #88c0d0;
|
|
}
|
|
|
|
.token.keyword {
|
|
color: #81a1c1;
|
|
}
|
|
|
|
.token.regex,
|
|
.token.important {
|
|
color: #ebcb8b;
|
|
}
|
|
|
|
.token.important,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.entity {
|
|
cursor: help;
|
|
}
|
|
|
|
pre.line-numbers {
|
|
position: relative;
|
|
padding-left: 3.8em;
|
|
counter-reset: linenumber;
|
|
}
|
|
|
|
pre.line-numbers > code {
|
|
position: relative;
|
|
/* Padding can be tweaked by themes, but if top padding is off
|
|
/* the line numbers don't align with the row. */
|
|
padding-top: 0 !important;
|
|
}
|
|
|
|
.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: 0;
|
|
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.line-numbers-rows > span {
|
|
pointer-events: none;
|
|
display: block;
|
|
counter-increment: linenumber;
|
|
}
|
|
|
|
.line-numbers-rows > span:before {
|
|
content: counter( linenumber );
|
|
color: #5c6370;
|
|
display: block;
|
|
padding-right: 0.8em;
|
|
text-align: right;
|
|
}
|
|
|
|
.prism-titlename {
|
|
margin: -16px -16px 24px -16px;
|
|
padding: 4px 16px;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
|
|
Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
|
|
font-weight: bold;
|
|
color: #ebcb8b;
|
|
background-color: #383c44;
|
|
}
|