Merge pull request #755 from readthedocs/fix-752

Scope autodoc styling to .class and .data for Sphinx 2.0
This commit is contained in:
Jesse Tan 2019-07-04 20:02:12 +02:00 committed by GitHub
commit f237820d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 46 deletions

View File

@ -11,6 +11,8 @@ New Features
Fixes
-----
* Fix definition lists looking different with Sphinx 2.0+
Other Changes
--------------

View File

@ -323,6 +323,8 @@
// 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.
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
// This would be the equivilant of a .. class::
dt