Commit 73a09f25 authored by Jonathan Neal's avatar Jonathan Neal
Browse files

Use scroll-margin to offset links when the navigation is sticky

parent 57c890d2
Showing with 2 additions and 16 deletions
+2 -16
......@@ -99,22 +99,8 @@
}
/* Permalink adjustment for sticky nav */
.g-content {
& h1,
& h2,
& h3,
& h4,
& h5,
& h6,
& li {
position: relative;
& .__target-h,
& .__target-lic {
position: absolute;
top: -75px;
}
}
.g-subnav ~ * :target {
scroll-margin-top: calc(64px + 0.5em);
}
/* Web Fonts */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment