Skip to content

Commit d2dfc20

Browse files
Fix Code Highlighting Styles
1 parent 9a3c7d9 commit d2dfc20

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/styles/shiki-highlight.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
.shiki .highlighted-line {
2+
position: relative;
23
background-color: var(--theme-code-highlight-bg);
3-
border-left: 0.25em solid var(--color-blue);
44
width: 100%;
55
}
66

7+
.shiki .highlighted-line::before {
8+
content: "";
9+
display: block;
10+
position: absolute;
11+
left: 0;
12+
top: 0;
13+
bottom: 0;
14+
width: 0.25em;
15+
background: var(--color-blue);
16+
}
17+
718
.shiki .line {
819
display: inline-block;
920
padding-right: 1em;

0 commit comments

Comments
 (0)