Skip to content

Commit 6585eb6

Browse files
Jinjiangchrisvfritz
authored andcommitted
fixed #1249 (#1253)
1 parent 3b3b9b5 commit 6585eb6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

themes/vue/source/css/_settings.styl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $header-inner-height = 41px
2323
$heading-padding-vertical = 10px
2424
$header-height = $header-inner-height + $heading-padding-vertical * 2
2525
$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
2828
$h2-margin-top = 45px
2929
$h3-margin-top = 52px

themes/vue/source/js/common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,7 @@
335335
}
336336

337337
function makeHeaderClickable (link) {
338-
var wrapper = document.createElement('a')
339-
wrapper.href = '#' + link.id
338+
var wrapper = link.querySelector('a')
340339
wrapper.setAttribute('data-scroll', '')
341340
link.parentNode.insertBefore(wrapper, link)
342341
wrapper.appendChild(link)

0 commit comments

Comments
 (0)