mirror of
https://github.com/danog/sass-site.git
synced 2024-12-02 17:38:26 +01:00
100 lines
1.5 KiB
SCSS
100 lines
1.5 KiB
SCSS
@use '../functions';
|
|
|
|
/**
|
|
* Based on the GHColors theme by Avi Aryan (http://aviaryan.in)
|
|
* Inspired by Github syntax coloring
|
|
*/
|
|
|
|
code[class*="language-"],
|
|
pre[class*="language-"] {
|
|
background-color: var(--code-background);
|
|
hyphens: none;
|
|
word-spacing: normal;
|
|
word-break: normal;
|
|
tab-size: 4;
|
|
text-align: left;
|
|
}
|
|
|
|
.token table td { padding: functions.sl-px-to-rem(5px); }
|
|
.token table pre { margin: 0; }
|
|
|
|
.token.comment,
|
|
.token.prolog,
|
|
.token.doctype,
|
|
.token.cdata {
|
|
color: var(--code-comment);
|
|
font-style: italic;
|
|
}
|
|
|
|
[class*="language-css"] {
|
|
& .token.comment {
|
|
--code-comment: var(--code-alt);
|
|
}
|
|
}
|
|
|
|
.token.namespace {
|
|
opacity: .7;
|
|
}
|
|
|
|
.token.string,
|
|
.token.attr-value {
|
|
color: var(--code-string);
|
|
}
|
|
|
|
.token.punctuation,
|
|
.token.operator {
|
|
color: #393A34; /* no highlight */
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.entity,
|
|
.token.url,
|
|
.token.symbol,
|
|
.token.number,
|
|
.token.boolean,
|
|
.token.constant,
|
|
.token.property,
|
|
.token.regex,
|
|
.token.inserted {
|
|
color: #990000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
.token.atrule,
|
|
.token.keyword,
|
|
.token.attr-name,
|
|
.language-autohotkey .token.selector {
|
|
color: #000000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.function,
|
|
.token.deleted,
|
|
.language-autohotkey .token.tag {
|
|
color: #9a050f;
|
|
}
|
|
|
|
.token.tag,
|
|
.token.selector,
|
|
.language-autohotkey .token.keyword {
|
|
color: #445588;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.important,
|
|
.token.function,
|
|
.token.bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.token.italic {
|
|
font-style: italic;
|
|
}
|
|
|
|
.token.variable,
|
|
.token[class*="placeholder"] {
|
|
color: var(--code-alt);
|
|
font-weight: normal;
|
|
}
|