Merge pull request #1192 from readthedocs/nienn/fix-list-classifier-css

Fix #1190: Add classifier separation on html4 writer
This commit is contained in:
Anthony 2021-08-12 11:29:07 -06:00 committed by GitHub
commit 7500f33645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -270,6 +270,15 @@
.hlist
width: 100%
// Definition lists term/classifier separator
// Adds a separator for Sphinx > 1.x as a pseudo-element
// and hides the hardcoded separator from Sphinx 1.x
dl dt span.classifier
&:before
content: " : "
dl dt span.classifier-delimiter
display: none !important
// The html4 writer outputs the citation and footnotes as a table, and the
// html5 writer outputs these as a definition list. We will use the fairly
// well supported css `grid` attribute to make these back into a table
@ -288,9 +297,6 @@
vertical-align: top
// HTML5 writer
html.writer-html5 &
dl dt span.classifier
&:before
content: " : "
dl.footnote,
dl.field-list
display: grid