|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@import 'variables.scss'; |
|
|
|
|
|
code[class*='language-'], |
|
|
pre[class*='language-'] { |
|
|
font-family: Consolas, Menlo, Monaco, 'Andale Mono WT', 'Andale Mono', |
|
|
'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', |
|
|
'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L', |
|
|
'Courier New', Courier, monospace; |
|
|
font-size: 14px; |
|
|
line-height: 1.375; |
|
|
direction: ltr; |
|
|
text-align: left; |
|
|
white-space: pre; |
|
|
word-spacing: normal; |
|
|
word-break: normal; |
|
|
-moz-tab-size: 4; |
|
|
-o-tab-size: 4; |
|
|
tab-size: 4; |
|
|
-webkit-hyphens: none; |
|
|
-moz-hyphens: none; |
|
|
-ms-hyphens: none; |
|
|
hyphens: none; |
|
|
background: $syntax-bg; |
|
|
color: $syntax-fg; |
|
|
} |
|
|
|
|
|
pre[class*='language-']::-moz-selection, |
|
|
pre[class*='language-'] ::-moz-selection, |
|
|
code[class*='language-']::-moz-selection, |
|
|
code[class*='language-'] ::-moz-selection { |
|
|
text-shadow: none; |
|
|
background: darken($syntax-bg, 8%); |
|
|
} |
|
|
|
|
|
pre[class*='language-']::selection, |
|
|
pre[class*='language-'] ::selection, |
|
|
code[class*='language-']::selection, |
|
|
code[class*='language-'] ::selection { |
|
|
text-shadow: none; |
|
|
background: darken($syntax-bg, 8%); |
|
|
} |
|
|
|
|
|
|
|
|
pre[class*='language-'] { |
|
|
padding: 1em; |
|
|
margin: 0.5em 0; |
|
|
overflow: auto; |
|
|
} |
|
|
|
|
|
|
|
|
:not(pre) > code[class*='language-'] { |
|
|
padding: 0.1em; |
|
|
border-radius: 0.3em; |
|
|
} |
|
|
|
|
|
.token.comment, |
|
|
.token.prolog, |
|
|
.token.doctype, |
|
|
.token.cdata { |
|
|
color: $mono-3; |
|
|
} |
|
|
|
|
|
.token.punctuation { |
|
|
color: #5e6687; |
|
|
} |
|
|
|
|
|
.token.namespace { |
|
|
opacity: 0.7; |
|
|
} |
|
|
|
|
|
.token.operator, |
|
|
.token.boolean, |
|
|
.token.number { |
|
|
color: $hue-6-2; |
|
|
} |
|
|
|
|
|
.token.property { |
|
|
color: $hue-2; |
|
|
} |
|
|
|
|
|
.token.tag { |
|
|
color: $hue-6; |
|
|
} |
|
|
|
|
|
.token.string { |
|
|
color: $hue-4; |
|
|
} |
|
|
|
|
|
.token.function { |
|
|
color: $hue-1; |
|
|
} |
|
|
|
|
|
.token.selector { |
|
|
color: #6679cc; |
|
|
} |
|
|
|
|
|
.token.attr-name { |
|
|
color: $hue-5; |
|
|
} |
|
|
|
|
|
.token.entity, |
|
|
.token.url, |
|
|
.language-css .token.string, |
|
|
.style .token.string { |
|
|
color: $hue-1; |
|
|
} |
|
|
|
|
|
.token.attr-value, |
|
|
.token.keyword, |
|
|
.token.control, |
|
|
.token.directive, |
|
|
.token.unit { |
|
|
color: $hue-3; |
|
|
} |
|
|
|
|
|
.token.statement, |
|
|
.token.regex, |
|
|
.token.atrule { |
|
|
color: $hue-1; |
|
|
} |
|
|
|
|
|
.token.placeholder, |
|
|
.token.variable { |
|
|
color: $hue-2; |
|
|
} |
|
|
|
|
|
.token.deleted { |
|
|
text-decoration: line-through; |
|
|
} |
|
|
|
|
|
.token.inserted { |
|
|
border-bottom: 1px dotted #202746; |
|
|
text-decoration: none; |
|
|
} |
|
|
|
|
|
.token.italic { |
|
|
font-style: italic; |
|
|
} |
|
|
|
|
|
.token.important, |
|
|
.token.bold { |
|
|
font-weight: bold; |
|
|
} |
|
|
|
|
|
.token.important { |
|
|
color: $hue-5; |
|
|
} |
|
|
|
|
|
.token.entity { |
|
|
cursor: help; |
|
|
} |
|
|
|
|
|
pre > code.highlight { |
|
|
outline: 0.4em solid $hue-5; |
|
|
outline-offset: 0.4em; |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.line-numbers .line-numbers-rows { |
|
|
border-right-color: $mono-1; |
|
|
} |
|
|
|
|
|
.line-numbers-rows > span:before { |
|
|
color: $mono-1; |
|
|
} |
|
|
|