2021-11-23 15:53:25 +00:00
|
|
|
@mixin chroma_base {
|
|
|
|
.chroma {
|
|
|
|
color: var(--code-font-color);
|
|
|
|
}
|
|
|
|
.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 20:16:14 +00:00
|
|
|
overflow: auto;
|
|
|
|
max-height: var(--code-max-height);
|
2021-11-23 15:53:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* LineTable */
|
|
|
|
.chroma .lntable {
|
2022-06-10 20:16:14 +00:00
|
|
|
border: $border-1 solid var(--code-accent-color);
|
|
|
|
border-radius: $border-radius;
|
2021-11-23 15:53:25 +00:00
|
|
|
border-spacing: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
2022-06-10 20:16:14 +00:00
|
|
|
max-height: var(--code-max-height);
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
pre.chroma {
|
|
|
|
max-height: none;
|
|
|
|
border-radius: 0;
|
2023-02-16 09:38:45 +00:00
|
|
|
margin: 0;
|
2022-06-10 20:16:14 +00:00
|
|
|
}
|
2021-11-23 15:53:25 +00:00
|
|
|
}
|
2022-06-10 20:16:14 +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-23 15:53:25 +00:00
|
|
|
}
|
|
|
|
.chroma .lntable td:nth-child(2) {
|
|
|
|
width: 100%;
|
2023-02-16 09:38:45 +00:00
|
|
|
margin-left: $padding-32;
|
2021-11-23 15:53:25 +00:00
|
|
|
}
|
|
|
|
}
|