From: Zac Dover Date: Thu, 5 Jan 2023 12:25:43 +0000 (+1000) Subject: doc/css: add scroll-margin-top to dt elements X-Git-Tag: v18.1.0~565^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F49637%2Fhead;p=ceph.git doc/css: add scroll-margin-top to dt elements 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 --- diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index c44ccb450b5e..f222ab8acc60 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -1,3 +1,7 @@ +dt { + scroll-margin-top: 3em; +} + ul.simple > li > ul > li:last-child { margin-block-end : 1em; }