Ver Fonte

Fix headers staying under the menu when clicked-to-scroll.

Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
O.S.Tezer há 11 anos atrás
pai
commit
882862b095
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      docs/theme/mkdocs/css/base.css

+ 10 - 0
docs/theme/mkdocs/css/base.css

@@ -37,6 +37,9 @@ h6,
 }
 }
 #content h2 {
 #content h2 {
   padding: 0.5em 0em 0.3em 0em;
   padding: 0.5em 0em 0.3em 0em;
+  /* Desktop click-to-scroll margin/padding fixes */
+  padding-top: 2em !important;
+  margin-top: -2em !important;
 }
 }
 #content h3 {
 #content h3 {
   padding: 0.7em 0em 0.3em 0em;
   padding: 0.7em 0em 0.3em 0em;
@@ -587,6 +590,13 @@ ol.breadcrumb > li:last-child > a {
     display: none;
     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 */
 /* Container responsiveness fixes to maximise realestate expenditure */