]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/css: add scroll-margin-top to dt elements
authorZac Dover <zac.dover@gmail.com>
Thu, 5 Jan 2023 12:25:43 +0000 (22:25 +1000)
committerZac Dover <zac.dover@gmail.com>
Thu, 5 Jan 2023 13:58:27 +0000 (23:58 +1000)
add "scroll-margin-top: em3;" to custom.css so that the header bar
doesn't obscure the text of headwords in glossary.rst. Note that this
applies only to elements in the documentation that are rendered into
HTML with the dt (which stands for "description term" or "description
list") tag. Other modifications will be necessary in order to ensure
that the anchor points of non-dt elements are not obscured by the header
bar.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
doc/_static/css/custom.css

index c44ccb450b5ec6a3a1ecbe697f91f6cd14f23583..f222ab8acc6014bc2f06de08acc14647d9df4bd5 100644 (file)
@@ -1,3 +1,7 @@
+dt { 
+    scroll-margin-top: 3em; 
+}
+
 ul.simple > li > ul > li:last-child {
     margin-block-end : 1em;
 }