Browse Source

added style for RST admonitions

main
Pierre-Antoine Champin 3 years ago
parent
commit
fd70e764b4
  1. 34
      alchemy/static/css/theme.css

34
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;
}
}
}
Loading…
Cancel
Save