mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-16 10:10:40 +00:00
51 lines
1012 B
SCSS
51 lines
1012 B
SCSS
@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 {
|
|
margin: 0;
|
|
width: 100%;
|
|
overflow: auto;
|
|
max-height: var(--code-max-height);
|
|
}
|
|
}
|
|
|
|
/* LineTable */
|
|
.chroma .lntable {
|
|
border: $border-1 solid var(--code-accent-color);
|
|
border-radius: $border-radius;
|
|
border-spacing: 0;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
display: block;
|
|
max-height: var(--code-max-height);
|
|
overflow: auto;
|
|
|
|
pre.chroma {
|
|
max-height: none;
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
.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;
|
|
}
|
|
}
|
|
.chroma .lntable td:nth-child(2) {
|
|
width: 100%;
|
|
margin-left: 2em;
|
|
}
|
|
}
|