Skip to content

Commit 2c1008b

Browse files
committed
fix: Added back borders for multi-line but removed margins
1 parent 7d1f469 commit 2c1008b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

assets/css/v2/style.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,8 +875,13 @@ blockquote {
875875
/* solid 3px drop shadow */
876876
box-shadow: 3px 3px 0px var(--color-shadow);
877877

878-
&:has(.code-block) .highlight-v2 {
879-
/* Remove border from codeblocks in callouts */
878+
&:has(.code-block) .code-block:not(:has(.single-line)) {
879+
/* Removes negative margins from multi-line codeblocks */
880+
margin: 0;
881+
}
882+
883+
&:has(.code-block) .code-block:has(.single-line) .highlight-v2.single-line {
884+
/* Remove border from single line codeblocks in callouts */
880885
border: none;
881886
}
882887
}

0 commit comments

Comments
 (0)