2021-04-15 01:37:18 -07:00
|
|
|
@import "variables.scss";
|
|
|
|
|
|
|
|
$code-color-lineno: grey;
|
2023-03-11 11:52:49 -08:00
|
|
|
|
|
|
|
:root {
|
|
|
|
--code-color-keyword: black;
|
|
|
|
--code-color-type: black;
|
|
|
|
--code-color-comment: grey;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--code-color-keyword: #{darken(white, 40%)};
|
|
|
|
--code-color-type: #{darken(white, 40%)};
|
|
|
|
--code-color-comment: grey;
|
|
|
|
}
|
|
|
|
}
|
2021-04-15 01:37:18 -07:00
|
|
|
|
|
|
|
.highlight-label {
|
|
|
|
padding: 0.25rem 0.5rem 0.25rem 0.5rem;
|
|
|
|
border: $code-border;
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
a {
|
|
|
|
font-family: $font-code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight-group pre {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
font-family: $font-code;
|
2023-03-11 11:52:49 -08:00
|
|
|
background-color: var(--code-color);
|
2021-04-15 01:37:18 -07:00
|
|
|
border: $code-border;
|
|
|
|
padding: 0 0.25rem 0 0.25rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre code {
|
|
|
|
display: block;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0.5rem;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chroma {
|
|
|
|
.lntable {
|
|
|
|
border-spacing: 0;
|
|
|
|
padding: 0.5rem 0 0.5rem 0;
|
2023-03-11 11:52:49 -08:00
|
|
|
background-color: var(--code-color);
|
2021-04-15 01:37:18 -07:00
|
|
|
border-radius: 0;
|
|
|
|
border: $code-border;
|
|
|
|
display: block;
|
|
|
|
overflow: auto;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
td {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lntd:last-child {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lntr {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lnt {
|
|
|
|
display: block;
|
|
|
|
padding: 0 1rem 0 1rem;
|
|
|
|
color: $code-color-lineno;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hl {
|
|
|
|
display: block;
|
|
|
|
background-color: #fffd99;
|
|
|
|
|
|
|
|
.lnt::before {
|
|
|
|
content: "*";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.kr, .k {
|
|
|
|
font-weight: bold;
|
2023-03-11 11:52:49 -08:00
|
|
|
color: var(--code-color-keyword);
|
2021-04-15 01:37:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.kt {
|
|
|
|
font-weight: bold;
|
2023-03-11 11:52:49 -08:00
|
|
|
color: var(--code-color-type);
|
2021-04-15 01:37:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.c, .c1 {
|
2023-03-11 11:52:49 -08:00
|
|
|
color: var(--code-color-comment);
|
2021-04-15 01:37:18 -07:00
|
|
|
}
|