From 882862b095fb0bf6b554c2b11123c608ff68025e Mon Sep 17 00:00:00 2001 From: "O.S.Tezer" Date: Wed, 16 Apr 2014 19:38:08 +0300 Subject: [PATCH] Fix headers staying under the menu when clicked-to-scroll. Docker-DCO-1.1-Signed-off-by: O.S. Tezer (github: ostezer) --- docs/theme/mkdocs/css/base.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/theme/mkdocs/css/base.css b/docs/theme/mkdocs/css/base.css index 1651927cba..932b298eb1 100644 --- a/docs/theme/mkdocs/css/base.css +++ b/docs/theme/mkdocs/css/base.css @@ -37,6 +37,9 @@ h6, } #content h2 { padding: 0.5em 0em 0.3em 0em; + /* Desktop click-to-scroll margin/padding fixes */ + padding-top: 2em !important; + margin-top: -2em !important; } #content h3 { padding: 0.7em 0em 0.3em 0em; @@ -587,6 +590,13 @@ ol.breadcrumb > li:last-child > a { display: none; } + /* Mobile click-to-scroll margin/padding fixes */ + #content h2 { + padding: 0.5em 0em 0.3em 0em; + padding-top: 13.5em !important; + margin-top: -13.5em !important; + } + } /* Container responsiveness fixes to maximise realestate expenditure */