Skip to content

Commit 4163859

Browse files
committed
Codeblock: Extend highlight to left side
1 parent c763f00 commit 4163859

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

assets/css/v2/style.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,22 @@ a:has(code:not(pre code)) {
18551855
table {
18561856
width: calc(100% + var(--codeblock-horizontal-padding));
18571857
}
1858+
1859+
.lntd:first-child pre code {
1860+
span {
1861+
margin-left: -1rem;
1862+
padding-left: 1rem;
1863+
width: calc(100% + 1rem);
1864+
}
1865+
}
1866+
1867+
pre code .line {
1868+
display: inline;
1869+
}
1870+
1871+
pre code .line.hl {
1872+
display: block;
1873+
}
18581874
}
18591875

18601876
.code-block {
@@ -1955,6 +1971,7 @@ ul .code-block {
19551971
.highlight code .hl {
19561972
width: fit-content;
19571973
min-width: 100%;
1974+
display: block;
19581975
background-color: oklch(var(--color-codeblock-highlight));
19591976
}
19601977

0 commit comments

Comments
 (0)