File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,13 @@ $info = #1C90F3
19
19
20
20
$radius = 2px
21
21
$content-padding-top = 30px
22
+
23
+ // header settings
22
24
$header-inner-height = 41px
23
25
$heading-padding-vertical = 10px
24
26
$header-height = $header-inner-height + $heading-padding-vertical * 2
25
27
$mobile-header-height = 40px
28
+ // prevent headers from being covered by the top nav upon navigation
26
29
$heading-link-padding-top = $header-height + $content-padding-top
27
30
$mobile-heading-link-padding-top = $mobile-header-height + $content-padding-top
28
31
$h2-margin-top = 45px
Original file line number Diff line number Diff line change 337
337
var wrapper = link . querySelector ( 'a' )
338
338
wrapper . setAttribute ( 'data-scroll' , '' )
339
339
340
+ // transform DOM structure from
341
+ // `<h2><a></a>Header</a>` to <h2><a>Header</a></h2>`
342
+ // to make the link clickable
340
343
var nodes = link . childNodes
341
344
for ( var i = 0 ; i < nodes . length ; i ++ ) {
342
345
var node = nodes [ i ]
You can’t perform that action at this time.
0 commit comments