Browse Source

fix(docs): Fix scroll issue when linking to a docs heading

Michael Bromley 5 years ago
parent
commit
67df0c3dd9
1 changed files with 1 additions and 7 deletions
  1. 1 7
      docs/assets/styles/_markdown.scss

+ 1 - 7
docs/assets/styles/_markdown.scss

@@ -62,14 +62,8 @@ $block-border-radius: 4px;
         font-weight: 400;
         line-height: 1.25;
 
-        &[id]:target:before {
-            display: block;
-            content: " ";
-            margin-top: -75px; // Set the Appropriate Height
-            height: 75px; // Set the Appropriate Height
-            visibility: hidden;
-        }
         &[id]:target {
+            scroll-margin-top: 60px;
             text-decoration: underline;
         }
     }