-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmonition.css
More file actions
47 lines (40 loc) · 1.31 KB
/
admonition.css
File metadata and controls
47 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.doc .admonitionblock.code-rule {
/* Apply padding-top only for admonitions which only contain a code block */
& td.content:has(div.listingblock) {
padding: 1rem 0 0 0 !important;
}
/* Disable box shadow for code blocks inside code rule admonitions */
& td.content div.listingblock pre.highlight code {
box-shadow: none;
}
/* Don't use uppercase for captions */
& .icon {
text-transform: none;
}
}
/* Adjust styles for the "correct" code style rule usage */
.doc .admonitionblock.code-rule.tip {
/* Change the background color of the "tip" admonition to a light green */
& td.content {
background-color: #e7fbe8;
}
/* Change the background color of the code block to a light green */
& td.content div.listingblock pre.highlight code {
background-color: #e7fbe8;
}
}
/* Adjust styles for the "wrong" code style rule usage */
.doc .admonitionblock.code-rule.warning {
/* Change the color of the "important" admonition back to the default red */
& .icon {
background-color: #e40046;
}
/* Change the background color of the "tip" admonition to a light green */
& td.content {
background-color: #f0d2db;
}
/* Change the background color of the code block to a light green */
& td.content div.listingblock pre.highlight code {
background-color: #f0d2db;
}
}