Browse Source

Merge topic 'doc-deprecated-hanging-indent' into release-3.28

b553ac4c2f Utilities/Sphinx: Add hanging indent to deprecation notes

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8976
Brad King 2 years ago
parent
commit
5595976c11
1 changed files with 5 additions and 3 deletions
  1. 5 3
      Utilities/Sphinx/static/cmake.css

+ 5 - 3
Utilities/Sphinx/static/cmake.css

@@ -45,12 +45,14 @@ div.sphinxsidebarwrapper {
   white-space: nowrap;
 }
 
-/* Add hanging indent to version-{added,changed} content. */
-div .versionadded > *,
-div .versionchanged > * {
+/* Add hanging indent to deprecated and version-{added,changed} content. */
+div.deprecated > *,
+div.versionadded > *,
+div.versionchanged > * {
   padding-left: 2em;
 }
 
+div.deprecated > :first-child,
 div.versionadded > :first-child,
 div.versionchanged > :first-child {
   text-indent: -2em;