From dafcef8b501e6eeb185daeb2ae46086aacd33e0e Mon Sep 17 00:00:00 2001 From: Nikita Nemkin Date: Tue, 1 Dec 2020 16:06:19 +0500 Subject: 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 --- Utilities/Sphinx/static/cmake.css | 6 ++++++ 1 file changed, 6 insertions(+) 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; +} -- cgit v0.12