2021-05-13 12:05:38 +00:00
|
|
|
@mixin chroma_base {
|
|
|
|
.chroma {
|
2021-07-05 06:42:48 +00:00
|
|
|
color: var(--code-font-color);
|
2021-05-13 12:05:38 +00:00
|
|
|
}
|
|
|
|
.chroma .lntable td:nth-child(2) code .hl {
|
|
|
|
width: auto;
|
|
|
|
margin-left: -0.5em;
|
|
|
|
padding: 0 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.highlight {
|
|
|
|
pre.chroma {
|
|
|
|
width: 100%;
|
2022-06-10 19:44:08 +00:00
|
|
|
overflow: auto;
|
|
|
|
max-height: var(--code-max-height);
|
2021-05-13 12:05:38 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-13 12:57:06 +00:00
|
|
|
|
|
|
|
/* LineTable */
|
|
|
|
.chroma .lntable {
|
2022-06-10 19:44:08 +00:00
|
|
|
border: $border-1 solid var(--code-accent-color);
|
|
|
|
border-radius: $border-radius;
|
2021-11-13 12:57:06 +00:00
|
|
|
border-spacing: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
2022-06-10 19:44:08 +00:00
|
|
|
max-height: var(--code-max-height);
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
pre.chroma {
|
|
|
|
max-height: none;
|
|
|
|
border-radius: 0;
|
2023-02-16 08:01:43 +00:00
|
|
|
margin: 0;
|
2022-06-10 19:44:08 +00:00
|
|
|
}
|
2021-11-13 12:57:06 +00:00
|
|
|
}
|
2022-06-10 19:44:08 +00:00
|
|
|
.chroma .lntable td:first-child {
|
|
|
|
code {
|
|
|
|
background-color: var(--code-accent-color-lite);
|
|
|
|
border-right: $border-1 solid var(--code-accent-color);
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2021-11-13 12:57:06 +00:00
|
|
|
}
|
|
|
|
.chroma .lntable td:nth-child(2) {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 2em;
|
|
|
|
}
|
2021-05-13 12:05:38 +00:00
|
|
|
}
|