Skip to content

Commit e4ca578

Browse files
committed
make-classifier-class-styles-global
1 parent 231afc5 commit e4ca578

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,6 +270,12 @@
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
276+
&:before
277+
content: " : "
278+
273279
// The html4 writer outputs the citation and footnotes as a table, and the
274280
// html5 writer outputs these as a definition list. We will use the fairly
275281
// well supported css `grid` attribute to make these back into a table
@@ -288,9 +294,6 @@
288294
vertical-align: top
289295
// HTML5 writer
290296
html.writer-html5 &
291-
dl dt span.classifier
292-
&:before
293-
content: " : "
294297
dl.footnote,
295298
dl.field-list
296299
display: grid

0 commit comments

Comments
 (0)