summaryrefslogtreecommitdiff
path: root/Utilities/Sphinx
diff options
context:
space:
mode:
authorNikita Nemkin <nikita@nemkin.ru>2020-12-01 16:06:19 +0500
committerNikita Nemkin <nikita@nemkin.ru>2020-12-02 21:00:28 +0500
commitdafcef8b501e6eeb185daeb2ae46086aacd33e0e (patch)
tree59675036e667f8ab572d60b821de3c48d89ed8d3 /Utilities/Sphinx
parent6ae216daef08a7e89b44a3f444310854910efd57 (diff)
downloadcmake-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/Sphinx')
-rw-r--r--Utilities/Sphinx/static/cmake.css6
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;
+}