Skip to content

Commit defe32d

Browse files
committed
Add adjusted admonition styles for code rules
1 parent 5a39358 commit defe32d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/css/admonition.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Apply padding-top only for admonitions which only contain a code block */
2+
.doc .admonitionblock.code-rule td.content:has(div.listingblock) {
3+
padding: 1rem 0 0 0 !important;
4+
}
5+
6+
/* Disable box shadow for code blocks inside code rule admonitions */
7+
.doc .admonitionblock.code-rule td.content div.listingblock pre.highlight code {
8+
box-shadow: none;
9+
}
10+
11+
/* Change color of the "important" admonition back to the default red */
12+
.doc .admonitionblock.code-rule td.icon i.icon-important {
13+
background-color: #e40046;
14+
}

0 commit comments

Comments
 (0)