From: Zac Dover Date: Fri, 6 Jan 2023 16:24:39 +0000 (+1000) Subject: doc/css: Add scroll-margin-top to h2 html element X-Git-Tag: v17.2.6~237^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=57eed015180c96b0ffe150f10cad702f0d74a54b;p=ceph.git doc/css: Add scroll-margin-top to h2 html element Add "scroll-margin-top: 4em;" to the h2 html element's definition in custom.css. This moves the text under all h2 html elements out of the way of the sticky-header-style top bar, which previously obscured the text. Signed-off-by: Zac Dover (cherry picked from commit af048ca911fcd84e6a73d32999c772f64e95d67f) --- diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index a4778ffa971d..0a2d2078ce75 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -2,6 +2,10 @@ dt { scroll-margin-top: 3em; } +h2 { + scroll-margin-top: 4em; +} + section { scroll-margin-top: 4em; }