Skip to content

Commit 082479c

Browse files
committed
Fix spacing issue with html4 output
The toctree wrapper can exist outside a section on html4 output. This resolve #1201, a bug introduced with docutils 0.17 support.
1 parent fb065e4 commit 082479c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sphinx_rtd_theme/static/css/theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sass/_theme_rst.sass

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,12 @@
152152
background: transparent !important
153153
border-color: rgba(0, 0, 0, 0.1) !important
154154

155+
// TOC wrapper can be outside a section
156+
.toctree-wrapper ul
157+
@extend .wy-plain-list-disc
158+
155159
.section, section
156-
ul, .toctree-wrapper ul
160+
ul
157161
@extend .wy-plain-list-disc
158162
ol.loweralpha, ol.loweralpha > li
159163
list-style: lower-alpha

0 commit comments

Comments
 (0)