Skip to content

Commit 8ef93fc

Browse files
authored
Remove border from codeblocks in callouts (#190)
* fix: Remove border from codeblocks in callouts * fix: Added back borders for multi-line but removed margins
1 parent db3660e commit 8ef93fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

assets/css/v2/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,16 @@ blockquote {
898898

899899
/* solid 3px drop shadow */
900900
box-shadow: 3px 3px 0px var(--color-shadow);
901+
902+
&:has(.code-block) .code-block:not(:has(.single-line)) {
903+
/* Removes negative margins from multi-line codeblocks */
904+
margin: 0;
905+
}
906+
907+
&:has(.code-block) .code-block:has(.single-line) .highlight-v2.single-line {
908+
/* Remove border from single line codeblocks in callouts */
909+
border: none;
910+
}
901911
}
902912

903913
blockquote.note {

0 commit comments

Comments
 (0)