Skip to content

Commit 825cb06

Browse files
committed
Make selector more specific and remove duplication
1 parent 4d82701 commit 825cb06

File tree

2 files changed

+7
-4
lines changed

2 files changed

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

273-
// Global classifier class format
274-
// the classifier class is used both inside the Html4 writer tables and the html5 writer definition lists
275-
span.classifier
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
276277
&:before
277278
content: " : "
279+
dl dt span.classifier-delimiter
280+
display: none !important
278281

279282
// The html4 writer outputs the citation and footnotes as a table, and the
280283
// html5 writer outputs these as a definition list. We will use the fairly

0 commit comments

Comments
 (0)