Skip to content

Commit

Permalink
Doc styling: reduce vertical space consumption of admonition boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Nov 15, 2023
1 parent 934b444 commit d364133
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,28 @@ div.admonition,
.py div.versionadded,
.py div.versionchanged,
.py div.deprecated {
padding: 1em;
padding: 0.5em 1em;
border-style: solid;
border-width: 0 0 0 0.5rem;
border-color: #cccccc;
background-color: #f3f5f7;
}

div.admonition :first-child,
.py div.versionadded :first-child,
.py div.versionchanged :first-child,
.py div.deprecated :first-child {
margin-top: 0;
}


div.admonition :last-child,
.py div.versionadded :last-child,
.py div.versionchanged :last-child,
.py div.deprecated :last-child {
margin-bottom: 0;
}

div.admonition p.admonition-title {
font-size: 80%;
text-transform: uppercase;
Expand Down

0 comments on commit d364133

Please sign in to comment.