2019-12-13 22:34:38 +08:00
|
|
|
@import "./mixins/mixins.scss";
|
|
|
|
|
2019-12-18 17:22:59 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
@include b(code) {
|
|
|
|
[class^=hljs] {
|
2020-02-21 14:59:17 +08:00
|
|
|
color: $--code-text-color;
|
2019-12-18 17:22:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-13 22:34:38 +08:00
|
|
|
@include b(code) {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 14px;
|
2019-12-22 23:19:08 +08:00
|
|
|
font-family: $--n-mono-font-family;
|
|
|
|
code {
|
|
|
|
font-family: $--n-mono-font-family;
|
|
|
|
}
|
2019-12-13 22:34:38 +08:00
|
|
|
[class^=hljs] {
|
2019-12-22 15:50:37 +08:00
|
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier;
|
2019-12-13 22:34:38 +08:00
|
|
|
}
|
|
|
|
&.#{block(light-theme)} {
|
|
|
|
.hljs {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
padding: 0.5em;
|
|
|
|
background: #fafafa;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-comment,
|
|
|
|
.hljs-quote {
|
|
|
|
color: #a0a1a7;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-doctag,
|
|
|
|
.hljs-keyword,
|
|
|
|
.hljs-formula {
|
|
|
|
color: #a626a4;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-section,
|
|
|
|
.hljs-name,
|
|
|
|
.hljs-selector-tag,
|
|
|
|
.hljs-deletion,
|
|
|
|
.hljs-subst {
|
|
|
|
color: #e45649;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-literal {
|
|
|
|
color: #0184bb;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-string,
|
|
|
|
.hljs-regexp,
|
|
|
|
.hljs-addition,
|
|
|
|
.hljs-attribute,
|
|
|
|
.hljs-meta-string {
|
|
|
|
color: #50a14f;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-built_in,
|
|
|
|
.hljs-class .hljs-title {
|
|
|
|
color: #c18401;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-attr,
|
|
|
|
.hljs-variable,
|
|
|
|
.hljs-template-variable,
|
|
|
|
.hljs-type,
|
|
|
|
.hljs-selector-class,
|
|
|
|
.hljs-selector-attr,
|
|
|
|
.hljs-selector-pseudo,
|
|
|
|
.hljs-number {
|
|
|
|
color: #986801;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-symbol,
|
|
|
|
.hljs-bullet,
|
|
|
|
.hljs-link,
|
|
|
|
.hljs-meta,
|
|
|
|
.hljs-selector-id,
|
|
|
|
.hljs-title {
|
|
|
|
color: #4078f2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-emphasis {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-strong {
|
2020-02-27 23:02:58 +08:00
|
|
|
font-weight: $--n-strong-weight;
|
2019-12-13 22:34:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-link {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2019-12-16 19:00:14 +08:00
|
|
|
|
|
|
|
.hljs-function .hljs-params {
|
|
|
|
color: #383a42;
|
|
|
|
}
|
|
|
|
.hljs-function .hljs-params .hljs-typing {
|
|
|
|
color: #383a42;
|
|
|
|
}
|
2019-12-13 22:34:38 +08:00
|
|
|
}
|
|
|
|
&.#{block(dark-theme)} {
|
|
|
|
.hljs {
|
|
|
|
display: block;
|
|
|
|
overflow-x: auto;
|
|
|
|
padding: 0.5em;
|
|
|
|
line-height: 1.3em;
|
|
|
|
color: #abb2bf;
|
|
|
|
background: #282c34;
|
|
|
|
}
|
|
|
|
.hljs-keyword, .hljs-operator {
|
|
|
|
color: #F92672;
|
|
|
|
}
|
|
|
|
.hljs-pattern-match {
|
|
|
|
color: #F92672;
|
|
|
|
}
|
|
|
|
.hljs-pattern-match .hljs-constructor {
|
|
|
|
color: #61aeee;
|
|
|
|
}
|
|
|
|
.hljs-function {
|
|
|
|
color: #61aeee;
|
|
|
|
}
|
|
|
|
.hljs-function .hljs-params {
|
|
|
|
color: #A6E22E;
|
|
|
|
}
|
|
|
|
.hljs-function .hljs-params .hljs-typing {
|
|
|
|
color: #FD971F;
|
|
|
|
}
|
|
|
|
.hljs-module-access .hljs-module {
|
|
|
|
color: #7e57c2;
|
|
|
|
}
|
|
|
|
.hljs-constructor {
|
|
|
|
color: #e2b93d;
|
|
|
|
}
|
|
|
|
.hljs-constructor .hljs-string {
|
|
|
|
color: #9CCC65;
|
|
|
|
}
|
|
|
|
.hljs-comment, .hljs-quote {
|
|
|
|
color: #b18eb1;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.hljs-doctag, .hljs-formula {
|
|
|
|
color: #c678dd;
|
|
|
|
}
|
|
|
|
.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst {
|
|
|
|
color: #e06c75;
|
|
|
|
}
|
|
|
|
.hljs-literal {
|
|
|
|
color: #56b6c2;
|
|
|
|
}
|
|
|
|
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string {
|
|
|
|
color: #98c379;
|
|
|
|
}
|
|
|
|
.hljs-built_in, .hljs-class .hljs-title {
|
|
|
|
color: #e6c07b;
|
|
|
|
}
|
|
|
|
.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number {
|
|
|
|
color: #d19a66;
|
|
|
|
}
|
|
|
|
.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title {
|
|
|
|
color: #61aeee;
|
|
|
|
}
|
|
|
|
.hljs-emphasis {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
.hljs-strong {
|
2020-02-27 23:02:58 +08:00
|
|
|
font-weight: $--n-strong-weight;
|
2019-12-13 22:34:38 +08:00
|
|
|
}
|
|
|
|
.hljs-link {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|