Skip to content

Commit 2bc0709

Browse files
committed
Increase specificity for mermaid spacing with pre.mermaid selector and !important
1 parent b3c22e2 commit 2bc0709

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/styles/global.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ html {
211211
/* ===== Mermaid Diagram Styling ===== */
212212
/* Apply Blueprint Authority design system to Mermaid's generated SVG elements */
213213

214-
/* Mermaid container spacing */
214+
/* Mermaid container spacing - higher specificity to override defaults */
215+
pre.mermaid,
215216
.mermaid {
216-
margin: 1rem 0;
217-
padding: 1rem 0 0 0;
217+
margin: 1rem 0 !important;
218+
padding: 1rem 0 0 0 !important;
218219
}
219220

220221
/* Node rectangles - add border radius */

0 commit comments

Comments
 (0)