Skip to content

Commit

Permalink
[docs] CSS style improvements (#12546)
Browse files Browse the repository at this point in the history
- increase paragraph line-height to 1.5
- Adapt the border color for all warning/error like admonitions
  • Loading branch information
timhoffm authored Jul 14, 2024
1 parent cbf0b8e commit 0075803
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions doc/_themes/sphinx13/static/sphinx13.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ div.footer a {

p {
margin: 0.8em 0 0.5em 0;
line-height: 1.5;
}

a {
Expand Down Expand Up @@ -451,6 +452,7 @@ p.admonition-title::before {
content: "";
height: 1rem;
left: .5rem;
top: .5rem;
position: absolute;
width: 1rem;
background-color: #5f5f5f;
Expand Down Expand Up @@ -516,9 +518,15 @@ div.warning > p.admonition-title::before {
-webkit-mask-image: var(--icon-warning);
mask-image: var(--icon-warning);
}

div.caution,
div.important,
div.warning {
border: 1px solid #940000;
border-color: var(--colour-warning-fg);
}
div.attention,
div.danger,
div.error {
border-color: var(--colour-error-fg);
}

div.admonition > ul,
Expand Down

0 comments on commit 0075803

Please sign in to comment.