Explorar el Código

fix: anchor scroll offset

Nick hace 5 años
padre
commit
379d58d069
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      client/themes/default/scss/app.scss

+ 13 - 0
client/themes/default/scss/app.scss

@@ -165,6 +165,19 @@
     }
     }
   }
   }
 
 
+  // scroll offset fix
+
+  h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {
+    display: block;
+    content: " ";
+    width: 1px;
+    height: 1px;
+    margin-top: -75px;
+    height: 75px;
+    visibility: hidden;
+    z-index: -1;
+  }
+
   // ---------------------------------
   // ---------------------------------
   // PARAGRAPHS
   // PARAGRAPHS
   // ---------------------------------
   // ---------------------------------