Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1190: Add classifier separation on html4 writer #1192

Merged
merged 7 commits into from Aug 12, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx_rtd_theme/static/css/theme.css

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions src/sass/_theme_rst.sass
Expand Up @@ -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
Expand All @@ -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
Expand Down