From fd70e764b4ee100b4c3fa961336af32a3b88f20a Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Sun, 28 Apr 2019 16:09:36 +0200 Subject: [PATCH] added style for RST admonitions --- alchemy/static/css/theme.css | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/alchemy/static/css/theme.css b/alchemy/static/css/theme.css index 36fb232..f697282 100644 --- a/alchemy/static/css/theme.css +++ b/alchemy/static/css/theme.css @@ -90,6 +90,38 @@ hr { text-decoration: underline } +.admonition { + border: thin solid gray; + background-color: lightgrey; + padding: .25em .5em; + margin-bottom: 1rem; +} + +.admonition .admonition-title { + font-weight: bold; + background-color: rgba(255,255,255,0.66); + text-align: center; +} + +.admonition p.last { + margin-bottom: 0; +} + +.admonition.important, .admonition.note, .admonition.warning { + border-color: goldenrod; + background-color: lightgoldenrodyellow; +} + +.admonition.attention, .admonition.caution, .admonition.danger, .admonition.error { + border-color: red; + background-color: lightpink; +} + +.admonition.hint, .admonition.tip { + border-color: limegreen; + background-color: palegreen; +} + @media (min-width: 576px) { .header .title { font-size: 3rem; @@ -109,4 +141,4 @@ hr { .teaser header li:not(:last-child) { margin-right: 10px; } -} +} \ No newline at end of file