hugo-theme-minima/assets/css/syntax.scss

144 lines
1.9 KiB
SCSS
Raw Normal View History

2021-07-18 10:34:01 +02:00
.chroma {
margin: .5em 0;
2023-04-10 15:37:53 +02:00
background-image: var(--back-image);
background-color: var(--code-back);
2022-11-09 13:51:50 +01:00
border-radius: 2px;
}
.chroma code {
color: var(--code-text);
2021-07-18 10:34:01 +02:00
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
2022-04-12 15:43:46 +02:00
.chroma .lntable tbody {
2021-07-18 10:34:01 +02:00
border: 0;
}
2022-04-12 15:43:46 +02:00
.chroma .lntable td:nth-child(2) {
width: 100%;
}
.chroma .lnt,
.chroma .line {
display: block;
line-height: 1.3;
2021-12-09 06:36:53 +01:00
}
2021-07-18 10:34:01 +02:00
/* LineNumbersTable */
.chroma .lnt {
color: var(--code-line-number);
2021-12-09 02:58:29 +01:00
padding-left: .9em;
2021-07-18 10:34:01 +02:00
padding-right: 1em;
text-align: right;
2022-04-12 15:43:46 +02:00
}
.chroma .hl .lnt {
display: inline;
2021-07-18 10:34:01 +02:00
}
/* Keyword */
.chroma .kc,
.chroma .kd,
.chroma .kn,
.chroma .kp,
.chroma .kr,
2021-12-09 02:58:29 +01:00
// .chroma .kt,
2021-07-18 10:34:01 +02:00
.chroma .k,
.chroma .si {
color: var(--code-keyword);
2021-07-18 10:34:01 +02:00
}
.chroma .na {
color: var(--code-attribute);
2021-07-18 10:34:01 +02:00
}
2021-12-09 02:58:29 +01:00
// .chroma .n,
2021-07-18 10:34:01 +02:00
.chroma .nb,
.chroma .bp,
2021-12-09 02:58:29 +01:00
// .chroma .nc,
2021-07-18 10:34:01 +02:00
.chroma .no,
.chroma .nd,
.chroma .ni,
.chroma .ne,
2021-12-09 02:58:29 +01:00
// .chroma .nf,
2021-07-18 10:34:01 +02:00
.chroma .fm,
.chroma .nl,
.chroma .nn {
color: var(--code-keyword);
2021-07-18 10:34:01 +02:00
}
/* NameProperty */
.chroma .py,
.chroma .nt,
.chroma .nv,
.chroma .vc,
.chroma .vg,
.chroma .vi,
.chroma .vm {
color: var(--code-keyword);
2021-07-18 10:34:01 +02:00
}
/* LiteralString */
.chroma .s,
.chroma .sa,
.chroma .sb,
.chroma .sc,
.chroma .dl,
.chroma .sd,
.chroma .s2,
.chroma .se,
.chroma .sh,
.chroma .sx,
.chroma .sr,
.chroma .s1,
2021-12-09 02:58:29 +01:00
.chroma .ss,
.chroma .cpf {
color: var(--code-literal-string);
2021-07-18 10:34:01 +02:00
}
2022-11-08 11:07:48 +01:00
2021-07-18 10:34:01 +02:00
/* LiteralNumber */
.chroma .m,
.chroma .mb,
.chroma .mf,
.chroma .mh,
.chroma .mi,
.chroma .il,
.chroma .mo {
color: var(--code-literal-number);
2021-07-18 10:34:01 +02:00
}
/* Comment */
.chroma .c,
.chroma .ch,
.chroma .cm,
.chroma .c1,
.chroma .cs {
color: var(--code-comment);
2021-07-18 10:34:01 +02:00
}
2021-12-09 02:58:29 +01:00
.chroma .nb,
.chroma .kt {
color: var(--code-builtin-type);
2021-12-09 02:58:29 +01:00
}
.chroma .fm,
.chroma .nf {
color: var(--code-function);
2021-12-09 02:58:29 +01:00
}
.chroma .cp {
color: var(--code-meta);
2021-12-09 02:58:29 +01:00
}
2022-04-12 15:43:46 +02:00
.chroma .hl {
display: block;
background-color: var(--code-highlighted-line);
2022-11-08 11:07:48 +01:00
}