mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge pull request #755 from readthedocs/fix-752
Scope autodoc styling to .class and .data for Sphinx 2.0
This commit is contained in:
commit
f237820d2c
@ -11,6 +11,8 @@ New Features
|
|||||||
Fixes
|
Fixes
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
* Fix definition lists looking different with Sphinx 2.0+
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -323,6 +323,8 @@
|
|||||||
// This makes me terribly unhappy and makes this code very nesty. Unfortunately I've seen hand-written docs
|
// This makes me terribly unhappy and makes this code very nesty. Unfortunately I've seen hand-written docs
|
||||||
// that output similar, but not quite the same nesting so this is really the best we can do.
|
// that output similar, but not quite the same nesting so this is really the best we can do.
|
||||||
dl:not(.docutils)
|
dl:not(.docutils)
|
||||||
|
// In Sphinx 2.0+ most DLs no longer contain .docutils, needs tighter scoping using next line
|
||||||
|
&.class, &.data
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
// This would be the equivilant of a .. class::
|
// This would be the equivilant of a .. class::
|
||||||
dt
|
dt
|
||||||
|
Loading…
Reference in New Issue
Block a user