2021-08-20 23:21:47 +02:00
|
|
|
$ht-code-border-radius: .4em;
|
|
|
|
.highlight {
|
2024-09-27 23:42:36 +02:00
|
|
|
width: 100%;
|
2021-08-20 23:21:47 +02:00
|
|
|
overflow-x: scroll;
|
2023-04-15 19:51:02 +02:00
|
|
|
// border-radius: $ht-code-border-radius;
|
2024-09-27 15:36:01 +02:00
|
|
|
margin-top: 0em;
|
|
|
|
margin-bottom: 0em;
|
2023-04-15 19:51:02 +02:00
|
|
|
-ms-overflow-style: none;
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
2024-09-27 23:42:36 +02:00
|
|
|
font-size: 0.9rem;
|
2023-04-15 19:51:02 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&>.chroma {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&>.chroma .hl {
|
|
|
|
// border-radius: $ht-code-border-radius / 2;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
&::before{
|
|
|
|
content: "> ";
|
2023-04-18 01:29:12 +02:00
|
|
|
// font-family: "Noto Emoji";
|
|
|
|
font-family: inherit;
|
2023-04-15 19:51:02 +02:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
2024-09-27 15:36:01 +02:00
|
|
|
color: #ddd;
|
2023-04-15 19:51:02 +02:00
|
|
|
}
|
|
|
|
}
|
2021-12-11 18:39:47 +01:00
|
|
|
|
2021-08-20 23:21:47 +02:00
|
|
|
&>div.chroma>table.lntable{
|
2023-04-15 19:51:02 +02:00
|
|
|
overflow: initial;
|
|
|
|
// margin: $ht-code-border-radius 0 $ht-code-border-radius 0;
|
2021-08-20 23:21:47 +02:00
|
|
|
& td:first-of-type {
|
|
|
|
& span:not(& span>span) {
|
|
|
|
padding: 0 .75em 0 .5em;
|
|
|
|
}
|
|
|
|
}
|
2023-04-15 19:51:02 +02:00
|
|
|
|
|
|
|
pre {
|
|
|
|
margin-block-start: 0.5em;
|
|
|
|
margin-block-end: 0.5em;
|
|
|
|
}
|
2021-08-20 23:21:47 +02:00
|
|
|
}
|
|
|
|
|
2023-04-15 19:51:02 +02:00
|
|
|
&>.chroma>code {
|
2021-08-20 23:21:47 +02:00
|
|
|
width: max-content;
|
|
|
|
margin-top: .5em;
|
|
|
|
margin-bottom: .5em;
|
|
|
|
margin-left: .5em;
|
2023-04-15 19:51:02 +02:00
|
|
|
|
2021-08-20 23:21:47 +02:00
|
|
|
&>span.hl{
|
|
|
|
margin-left: -.5em;
|
|
|
|
padding-left: .5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-15 19:51:02 +02:00
|
|
|
|
2021-12-11 18:39:47 +01:00
|
|
|
@media screen and (max-width: 760px) {
|
2023-04-18 01:29:12 +02:00
|
|
|
.highlight {
|
2021-12-11 18:39:47 +01:00
|
|
|
width: 90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-30 17:27:55 +01:00
|
|
|
// fix #48 => https://github.com/slashformotion/hugo-tufte/issues/48
|
|
|
|
ul>li>div.highlight {
|
|
|
|
width: 100%;
|
2023-04-15 19:51:02 +02:00
|
|
|
}
|