diff options
author | Nikita Nemkin <nikita@nemkin.ru> | 2020-12-01 16:06:19 +0500 |
---|---|---|
committer | Nikita Nemkin <nikita@nemkin.ru> | 2020-12-02 21:00:28 +0500 |
commit | dafcef8b501e6eeb185daeb2ae46086aacd33e0e (patch) | |
tree | 59675036e667f8ab572d60b821de3c48d89ed8d3 /Utilities | |
parent | 6ae216daef08a7e89b44a3f444310854910efd57 (diff) | |
download | cmake-dafcef8b501e6eeb185daeb2ae46086aacd33e0e.tar.gz |
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
Diffstat (limited to 'Utilities')
-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 b082edec8d..029eb1b2fc 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; +} |