From 038f4c12e32dcf5e1cc2d6341a98782cb9a7a6cc Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Tue, 14 Mar 2023 14:39:44 -0400 Subject: Utilities/Sphinx: Add hanging indent to version notes Tweak HTML styling of version-{added,changed} notes to include a hanging indent. This makes it more obvious what text is part of such a note in cases where the note is lengthy (especially if more than one paragraph), rather than the relevant text blending into the surrounding prose. --- Utilities/Sphinx/static/cmake.css | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Utilities') diff --git a/Utilities/Sphinx/static/cmake.css b/Utilities/Sphinx/static/cmake.css index 41a74f5ac5..6303cb1cde 100644 --- a/Utilities/Sphinx/static/cmake.css +++ b/Utilities/Sphinx/static/cmake.css @@ -45,6 +45,17 @@ div.sphinxsidebarwrapper { white-space: nowrap; } +/* Add hanging indent to version-{added,changed} content. */ +div .versionadded > *, +div .versionchanged > * { + padding-left: 2em; +} + +div.versionadded > :first-child, +div.versionchanged > :first-child { + text-indent: -2em; +} + /* Remove unwanted margin in case list item contains a div-wrapping directive like `.. versionadded` or `.. deprecated`. */ dd > :first-child > p { -- cgit v1.2.1