File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ $header-inner-height = 41px
23
23
$heading-padding-vertical = 10px
24
24
$header-height = $header-inner-height + $heading-padding-vertical * 2
25
25
$mobile-header-height = 40px
26
- $heading-link-padding-top = $header-height + $ content-padding-top
27
- $mobile-heading-link-padding-top = $mobile-header-height + $ content-padding-top
26
+ $heading-link-padding-top = $content-padding-top
27
+ $mobile-heading-link-padding-top = $content-padding-top
28
28
$h2-margin-top = 45px
29
29
$h3-margin-top = 52px
Original file line number Diff line number Diff line change 335
335
}
336
336
337
337
function makeHeaderClickable ( link ) {
338
- var wrapper = document . createElement ( 'a' )
339
- wrapper . href = '#' + link . id
338
+ var wrapper = link . querySelector ( 'a' )
340
339
wrapper . setAttribute ( 'data-scroll' , '' )
341
340
link . parentNode . insertBefore ( wrapper , link )
342
341
wrapper . appendChild ( link )
You can’t perform that action at this time.
0 commit comments