浏览代码

fix: anchor scroll offset

Nick 5 年之前
父节点
当前提交
379d58d069
共有 1 个文件被更改,包括 13 次插入0 次删除
  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
   // ---------------------------------