Skip to content

Commit 060ae6a

Browse files
committed
Style warning boxes and add bottom margin to note boxes
Refs #1064
1 parent 026732f commit 060ae6a

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

static/sass/style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2963,13 +2963,25 @@ p.quote-by-organization {
29632963
div.note {
29642964
background-color: #eee;
29652965
border: 1px solid #cccccc;
2966-
padding: 0.3125em 0.625em; }
2966+
padding: 0.3125em 0.625em;
2967+
margin-bottom: 1.5625em; }
29672968
div.note > p {
29682969
margin-bottom: 0; }
29692970

29702971
p.admonition-title {
29712972
font-weight: bold; }
29722973

2974+
p.admonition-title:after {
2975+
content: ":"; }
2976+
2977+
div.warning {
2978+
background-color: #ffe4e4;
2979+
border: 1px solid #ff6666;
2980+
padding: 0.3125em 0.625em;
2981+
margin-bottom: 1.5625em; }
2982+
div.warning > p {
2983+
margin-bottom: 0; }
2984+
29732985
div.sidebar {
29742986
margin: 0 0 0.5em 1em;
29752987
border: 1px solid #ddddbb;

static/sass/style.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,7 @@ div.note {
21752175
background-color: #eee;
21762176
border: 1px solid #ccc;
21772177
padding: px2em( 5px ) px2em( 10px );
2178+
margin-bottom: px2em( 25px );
21782179
> p {
21792180
margin-bottom: 0;
21802181
}
@@ -2184,6 +2185,20 @@ p.admonition-title {
21842185
font-weight: bold;
21852186
}
21862187

2188+
p.admonition-title:after {
2189+
content: ":";
2190+
}
2191+
2192+
div.warning {
2193+
background-color: #ffe4e4;
2194+
border: 1px solid #f66;
2195+
padding: px2em( 5px ) px2em( 10px );
2196+
margin-bottom: px2em( 25px );
2197+
> p {
2198+
margin-bottom: 0;
2199+
}
2200+
}
2201+
21872202
div.sidebar {
21882203
margin: 0 0 0.5em 1em;
21892204
border: 1px solid #ddb;

0 commit comments

Comments
 (0)