File tree Expand file tree Collapse file tree 3 files changed +9
-22
lines changed Expand file tree Collapse file tree 3 files changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,11 @@ $info = #1C90F3
19
19
20
20
$radius = 2px
21
21
$content-padding-top = 30px
22
-
23
- // header settings
24
22
$header-inner-height = 41px
25
23
$heading-padding-vertical = 10px
26
24
$header-height = $header-inner-height + $heading-padding-vertical * 2
27
25
$mobile-header-height = 40px
28
- // prevent headers from being covered by the top nav upon navigation
29
- $heading-link-padding-top = $header-height + $content-padding-top
30
- $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
31
28
$h2-margin-top = 45px
32
29
$h3-margin-top = 52px
Original file line number Diff line number Diff line change 52
52
h1
53
53
margin : 0 0 1em
54
54
h2 , h3
55
- pointer-events : none
56
- a
57
- pointer-events : auto
58
- color : $dark
59
55
& :before
60
56
content : ""
61
57
display : block
66
62
margin : $h2-margin-top 0 .8em
67
63
padding-bottom : .7em
68
64
border-bottom : 1px solid $border
65
+ z-index : - 1
69
66
h3
70
67
margin : $h3-margin-top 0 1.2em
71
68
position : relative
69
+ z-index : - 1
72
70
& :after
73
71
content : "#"
74
72
color : $green
Original file line number Diff line number Diff line change 1
1
( function ( ) {
2
+
2
3
initMobileMenu ( )
3
4
if ( PAGE_TYPE ) {
4
5
initVersionSelect ( )
25
26
} )
26
27
}
27
28
28
- function createSourceSearchPath ( query ) {
29
+ function createSourceSearchPath ( query ) {
29
30
query = query
30
31
. replace ( / \( [ ^ \) ] * ?\) / g, '' )
31
32
. replace ( / ( V u e \. ) ( \w + ) / g, '$1$2" OR "$2' )
250
251
}
251
252
}
252
253
if ( last )
253
- setActive ( last . id , ! hoveredOverSidebar )
254
+ setActive ( last . id , ! hoveredOverSidebar )
254
255
}
255
256
256
257
function makeLink ( h ) {
336
337
function makeHeaderClickable ( link ) {
337
338
var wrapper = link . querySelector ( 'a' )
338
339
wrapper . setAttribute ( 'data-scroll' , '' )
339
-
340
- // transform DOM structure from
341
- // `<h2><a></a>Header</a>` to <h2><a>Header</a></h2>`
342
- // to make the link clickable
343
- var nodes = link . childNodes
344
- for ( var i = 0 ; i < nodes . length ; i ++ ) {
345
- var node = nodes [ i ]
346
- if ( node !== wrapper ) {
347
- wrapper . appendChild ( node )
348
- }
349
- }
340
+ link . parentNode . insertBefore ( wrapper , link )
341
+ wrapper . appendChild ( link )
350
342
}
351
343
}
352
344
} ) ( )
You can’t perform that action at this time.
0 commit comments