diff options
author | Nikita Nemkin <nikita@nemkin.ru> | 2020-12-01 11:06:19 (GMT) |
---|---|---|
committer | Nikita Nemkin <nikita@nemkin.ru> | 2020-12-02 16:00:28 (GMT) |
commit | dafcef8b501e6eeb185daeb2ae46086aacd33e0e (patch) | |
tree | 59675036e667f8ab572d60b821de3c48d89ed8d3 | |
parent | 6ae216daef08a7e89b44a3f444310854910efd57 (diff) | |
download | CMake-dafcef8b501e6eeb185daeb2ae46086aacd33e0e.zip CMake-dafcef8b501e6eeb185daeb2ae46086aacd33e0e.tar.gz CMake-dafcef8b501e6eeb185daeb2ae46086aacd33e0e.tar.bz2 |
Help: Improve styling for versionadded/deprecated directives
Sphinx theme CSS removes top margin for dd > p combination,
but directives add an intervening div and need a separate rule.
Issue: #19715
-rw-r--r-- | Utilities/Sphinx/static/cmake.css | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Utilities/Sphinx/static/cmake.css b/Utilities/Sphinx/static/cmake.css index b082ede..029eb1b 100644 --- a/Utilities/Sphinx/static/cmake.css +++ b/Utilities/Sphinx/static/cmake.css @@ -16,3 +16,9 @@ div.sphinxsidebarwrapper { .literal-block a.reference.internal { background-color: #dfdfdf; } + +/* Remove unwanted margin in case list item contains a div-wrapping + directive like `.. versionadded` or `.. deprecated`. */ +dd > :first-child > p { + margin-top: 0px; +} |