2020-04-19 18:07:22 +08:00
|
|
|
$codeBackground: rgba($colorBlack, 0.9);
|
2020-04-18 18:59:17 +08:00
|
|
|
$codeText: #eee;
|
|
|
|
$codeGrey: #616161;
|
|
|
|
$codeRed: #ff6666;
|
|
|
|
$codeOrange: #fd9170;
|
2020-04-18 19:04:02 +08:00
|
|
|
$colorYellow: #ffcb6b;
|
|
|
|
$codeGreen: #b9ea80;
|
2020-04-18 18:59:17 +08:00
|
|
|
$codeBlue: #89ddff;
|
|
|
|
$codeTeal: #80cbc4;
|
|
|
|
$codePurple: #c792ea;
|
2020-04-18 05:35:07 +08:00
|
|
|
|
2020-04-19 18:07:22 +08:00
|
|
|
code[class*="language-"],
|
|
|
|
pre[class*="language-"] {
|
2020-04-18 23:42:32 +08:00
|
|
|
text-align: left;
|
|
|
|
white-space: pre;
|
|
|
|
word-spacing: normal;
|
|
|
|
word-break: normal;
|
|
|
|
word-wrap: normal;
|
|
|
|
hyphens: none;
|
|
|
|
color: inherit;
|
|
|
|
text-shadow: none;
|
|
|
|
font-family: 'JetBrainsMono', monospace;
|
2020-08-12 15:37:15 +08:00
|
|
|
font-size: 0.9rem;
|
2020-04-18 23:42:32 +08:00
|
|
|
line-height: 1.8;
|
|
|
|
tab-size: 2;
|
2020-04-19 02:39:48 +08:00
|
|
|
padding: 0;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
:not(pre) > code[class*="language-"] {
|
2020-04-18 23:42:32 +08:00
|
|
|
white-space: normal;
|
|
|
|
color: $codeText;
|
2020-04-19 18:07:22 +08:00
|
|
|
background: $codeBackground;
|
2020-04-18 23:42:32 +08:00
|
|
|
border-radius: 0.2em;
|
|
|
|
padding: 0.1em;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre > code[class*="language-"] {
|
2020-04-18 23:42:32 +08:00
|
|
|
background: none;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pre[class*="language-"] {
|
2020-04-18 23:42:32 +08:00
|
|
|
overflow: auto;
|
|
|
|
position: relative;
|
|
|
|
color: $codeText;
|
2020-04-19 18:07:22 +08:00
|
|
|
background: $codeBackground;
|
2020-08-12 15:37:15 +08:00
|
|
|
padding: 1.2rem 1.5rem !important;
|
2020-04-18 23:42:32 +08:00
|
|
|
border-radius: 0.5rem;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
2020-04-19 18:07:22 +08:00
|
|
|
pre[class*="language-"].language-css > code,
|
|
|
|
pre[class*="language-"].language-sass > code,
|
|
|
|
pre[class*="language-"].language-scss > code {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeOrange;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[class*="language-"] .namespace {
|
2020-04-18 23:42:32 +08:00
|
|
|
opacity: 0.7;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.atrule {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-name {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-value {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGreen;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.attribute {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGreen;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.boolean {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.builtin {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.cdata {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeTeal;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.char {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeTeal;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.class {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.class-name {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.comment {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGrey;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.constant {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.deleted {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.doctype {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGrey;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.entity {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.function {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.hexcode {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.id {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
|
|
|
font-weight: bold;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.important {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
|
|
|
font-weight: bold;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.inserted {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeTeal;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.keyword {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.number {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeOrange;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.operator {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeBlue;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.prolog {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGrey;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.property {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeTeal;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.pseudo-class {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGreen;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.pseudo-element {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGreen;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.punctuation {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeBlue;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.regex {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $colorYellow;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.selector {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.string {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeGreen;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.symbol {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codePurple;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.tag {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.unit {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeOrange;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.url {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.token.variable {
|
2020-04-18 23:42:32 +08:00
|
|
|
color: $codeRed;
|
2020-08-12 15:37:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.line-highlight {
|
|
|
|
background: rgba($colorWhite, 0.1) !important;
|
|
|
|
padding: 0 0 0.3rem 0;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-04-18 05:35:07 +08:00
|
|
|
}
|