|
4 | 4 | {% set theme_sidebar_link = theme_sidebar_link or theme_gray_1 %} |
5 | 5 | {% set theme_anchor_hover_fg = theme_anchor_hover_fg or theme_gray_1 %} |
6 | 6 |
|
7 | | -{% set theme_note_bg = theme_note_bg or theme_gray_2 %} |
8 | 7 | {% set theme_footnote_border = theme_footnote_border or theme_gray_2 %} |
9 | 8 | {% set theme_pre_bg = theme_pre_bg or theme_gray_2 %} |
10 | 9 |
|
| 10 | + |
| 11 | +{# set up admonition styling #} |
| 12 | +{# - basic level #} |
11 | 13 | {% set admonition_xref_bg = theme_admonition_xref_bg or theme_xref_bg %} |
| 14 | +{% set theme_admonition_bg = theme_admonition_bg or theme_gray_2 %} |
| 15 | +{% set theme_note_bg = theme_note_bg or theme_gray_2 %} |
| 16 | +{% set theme_seealso_bg = theme_seealso_bg or theme_gray_2 %} |
| 17 | + |
| 18 | +{# - critical level #} |
| 19 | +{% set theme_danger_bg = theme_danger_bg or theme_pink_1 %} |
| 20 | +{% set theme_danger_border = theme_danger_border or theme_pink_2 %} |
| 21 | +{% set theme_danger_shadow = theme_danger_shadow or theme_pink_3 %} |
| 22 | + |
| 23 | +{% set theme_error_bg = theme_error_bg or theme_pink_1 %} |
| 24 | +{% set theme_error_border = theme_error_border or theme_pink_2 %} |
| 25 | +{% set theme_error_shadow = theme_error_shadow or theme_pink_3 %} |
| 26 | + |
| 27 | +{# - warning level #} |
| 28 | +{% set theme_caution_bg = theme_caution_bg or theme_pink_1 %} |
| 29 | +{% set theme_caution_border = theme_caution_border or theme_pink_2 %} |
| 30 | + |
| 31 | +{% set theme_attention_bg = theme_attention_bg or theme_pink_1 %} |
| 32 | +{% set theme_attention_border = theme_attention_border or theme_pink_2 %} |
12 | 33 |
|
13 | 34 | {% set theme_warn_bg = theme_warn_bg or theme_pink_1 %} |
14 | 35 | {% set theme_warn_border = theme_warn_border or theme_pink_2 %} |
15 | 36 |
|
| 37 | +{# - normal level #} |
| 38 | +{% set theme_important_bg = theme_important_bg or theme_gray_2 %} |
| 39 | +{% set theme_tip_bg = theme_tip_bg or theme_gray_2 %} |
| 40 | +{% set theme_hint_bg = theme_hint_bg or theme_gray_2 %} |
| 41 | + |
| 42 | +{# /set up admonition styling #} |
| 43 | + |
16 | 44 | {% set theme_shadow = theme_shadow or theme_gray_2 %} |
17 | 45 |
|
18 | | -{% set theme_seealso_bg = theme_seealso_bg or theme_gray_2 %} |
19 | 46 |
|
20 | 47 | {% set theme_topic_bg = theme_topic_bg or theme_gray_2 %} |
21 | 48 |
|
@@ -240,8 +267,8 @@ div.body p, div.body dd, div.body li { |
240 | 267 | div.admonition { |
241 | 268 | margin: 20px 0px; |
242 | 269 | padding: 10px 30px; |
243 | | - background-color: {{ theme_warn_bg }}; |
244 | | - border: 1px solid {{ theme_warn_border }}; |
| 270 | + background-color: {{ theme_admonition_bg }}; |
| 271 | + border: 1px solid {{ theme_admonition_border }}; |
245 | 272 | } |
246 | 273 |
|
247 | 274 | div.admonition tt.xref, div.admonition code.xref, div.admonition a tt { |
@@ -275,11 +302,57 @@ dt:target, .highlight { |
275 | 302 | background: {{ theme_highlight_bg }}; |
276 | 303 | } |
277 | 304 |
|
| 305 | +div.warning { |
| 306 | + background-color: {{ theme_warn_bg }}; |
| 307 | + border: 1px solid {{ theme_warn_border }}; |
| 308 | +} |
| 309 | + |
| 310 | +div.danger { |
| 311 | + background-color: {{ theme_danger_bg }}; |
| 312 | + border: 1px solid {{ theme_danger_border }}; |
| 313 | + -moz-box-shadow: 2px 2px 4px {{ theme_danger_shadow }}; |
| 314 | + -webkit-box-shadow: 2px 2px 4px {{ theme_danger_shadow }}; |
| 315 | + box-shadow: 2px 2px 4px {{ theme_danger_shadow }}; |
| 316 | +} |
| 317 | + |
| 318 | +div.error { |
| 319 | + background-color: {{ theme_error_bg }}; |
| 320 | + border: 1px solid {{ theme_error_border }}; |
| 321 | + -moz-box-shadow: 2px 2px 4px {{ theme_error_shadow }}; |
| 322 | + -webkit-box-shadow: 2px 2px 4px {{ theme_error_shadow }}; |
| 323 | + box-shadow: 2px 2px 4px {{ theme_error_shadow }}; |
| 324 | +} |
| 325 | + |
| 326 | +div.caution { |
| 327 | + background-color: {{ theme_caution_bg }}; |
| 328 | + border: 1px solid {{ theme_caution_border }}; |
| 329 | +} |
| 330 | + |
| 331 | +div.attention { |
| 332 | + background-color: {{ theme_attention_bg }}; |
| 333 | + border: 1px solid {{ theme_attention_border }}; |
| 334 | +} |
| 335 | + |
| 336 | +div.important { |
| 337 | + background-color: {{ theme_important_bg }}; |
| 338 | + border: 1px solid {{ theme_important_border }}; |
| 339 | +} |
| 340 | + |
278 | 341 | div.note { |
279 | 342 | background-color: {{ theme_note_bg }}; |
280 | 343 | border: 1px solid {{ theme_note_border }}; |
281 | 344 | } |
282 | 345 |
|
| 346 | +div.tip { |
| 347 | + background-color: {{ theme_tip_bg }}; |
| 348 | + border: 1px solid {{ theme_tip_border }}; |
| 349 | +} |
| 350 | + |
| 351 | +div.hint { |
| 352 | + background-color: {{ theme_hint_bg }}; |
| 353 | + border: 1px solid {{ theme_hint_border }}; |
| 354 | +} |
| 355 | + |
283 | 356 | div.seealso { |
284 | 357 | background-color: {{ theme_seealso_bg }}; |
285 | 358 | border: 1px solid {{ theme_seealso_border }}; |
|
0 commit comments