Skip to content

Commit

Permalink
Make .dfhack-tool-summary styles consistent with Sphinx 5+
Browse files Browse the repository at this point in the history
Under Sphinx 5, `topic` nodes now render as `<aside>` elements, and without an
explicit background color
  • Loading branch information
lethosor committed Aug 18, 2022
1 parent 22356e2 commit fe7414b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/styles/dfhack.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,21 @@ span.pre {
overflow-wrap: break-word;
}

div.dfhack-tool-summary {
div.dfhack-tool-summary,
aside.dfhack-tool-summary {
margin: 10px 0;
padding: 10px 15px;
background-color: #EEE;
}

div.dfhack-tool-summary p {
div.dfhack-tool-summary p,
aside.dfhack-tool-summary p {
margin-top: 0;
margin-bottom: 0.5em;
line-height: 1em;
}

div.dfhack-tool-summary p:last-child {
div.dfhack-tool-summary p:last-child,
aside.dfhack-tool-summary p:last-child {
margin-bottom: 0;
}

0 comments on commit fe7414b

Please sign in to comment.