Skip to content

Commit 7500f33

Browse files
authored
Merge pull request #1192 from readthedocs/nienn/fix-list-classifier-css
Fix #1190: Add classifier separation on html4 writer
2 parents f0e90ac + 2ea3d2a commit 7500f33

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,15 @@
270270
.hlist
271271
width: 100%
272272

273+
// Definition lists term/classifier separator
274+
// Adds a separator for Sphinx > 1.x as a pseudo-element
275+
// and hides the hardcoded separator from Sphinx 1.x
276+
dl dt span.classifier
277+
&:before
278+
content: " : "
279+
dl dt span.classifier-delimiter
280+
display: none !important
281+
273282
// The html4 writer outputs the citation and footnotes as a table, and the
274283
// html5 writer outputs these as a definition list. We will use the fairly
275284
// well supported css `grid` attribute to make these back into a table
@@ -288,9 +297,6 @@
288297
vertical-align: top
289298
// HTML5 writer
290299
html.writer-html5 &
291-
dl dt span.classifier
292-
&:before
293-
content: " : "
294300
dl.footnote,
295301
dl.field-list
296302
display: grid

0 commit comments

Comments
 (0)