summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-14 19:07:08 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-03-14 19:07:18 (GMT)
commitec8dff789f29c1e587e06acf0de53afc4ceecca9 (patch)
tree98598a1e6ff57ddba2bc9b26bcd0e9d5d36e45f1 /Utilities
parente80bc8787eec15d70ff24cac4d3887fc95f4b700 (diff)
parent038f4c12e32dcf5e1cc2d6341a98782cb9a7a6cc (diff)
downloadCMake-ec8dff789f29c1e587e06acf0de53afc4ceecca9.zip
CMake-ec8dff789f29c1e587e06acf0de53afc4ceecca9.tar.gz
CMake-ec8dff789f29c1e587e06acf0de53afc4ceecca9.tar.bz2
Merge topic 'version-hanging-indent'
038f4c12e3 Utilities/Sphinx: Add hanging indent to version notes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8325
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Sphinx/static/cmake.css11
1 files changed, 11 insertions, 0 deletions
diff --git a/Utilities/Sphinx/static/cmake.css b/Utilities/Sphinx/static/cmake.css
index 41a74f5..6303cb1 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 {