Skip to content

Commit 2195cb3

Browse files
authored
fix: Changed codeblock margin left to be non-zero if has comments (#160)
1 parent 96e218e commit 2195cb3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

assets/css/v2/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,13 @@ blockquote p:last-child {
875875
.highlight-mf {
876876
grid-column: 1 / -1 !important;
877877
position: relative;
878-
margin-left: calc(var(--overflow-gutter-extension) / -2);
878+
margin-left: 0;
879879
width: calc(100% + var(--overflow-gutter-extension));
880880

881+
&:has(.comment) {
882+
margin-left: calc(var(--overflow-gutter-extension) / -1);
883+
}
884+
881885
code {
882886
font-weight: light;
883887
font-family: "JetBrains Mono", monospace;

0 commit comments

Comments
 (0)