Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe7414b

Browse files
committed
Make .dfhack-tool-summary styles consistent with Sphinx 5+
Under Sphinx 5, `topic` nodes now render as `<aside>` elements, and without an explicit background color
1 parent 22356e2 commit fe7414b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

docs/styles/dfhack.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,21 @@ span.pre {
6161
overflow-wrap: break-word;
6262
}
6363

64-
div.dfhack-tool-summary {
64+
div.dfhack-tool-summary,
65+
aside.dfhack-tool-summary {
6566
margin: 10px 0;
6667
padding: 10px 15px;
68+
background-color: #EEE;
6769
}
6870

69-
div.dfhack-tool-summary p {
71+
div.dfhack-tool-summary p,
72+
aside.dfhack-tool-summary p {
7073
margin-top: 0;
7174
margin-bottom: 0.5em;
7275
line-height: 1em;
7376
}
7477

75-
div.dfhack-tool-summary p:last-child {
78+
div.dfhack-tool-summary p:last-child,
79+
aside.dfhack-tool-summary p:last-child {
7680
margin-bottom: 0;
7781
}

0 commit comments

Comments
 (0)