diff options
author | Dillon <dillonzq@outlook.com> | 2020-04-29 17:26:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 17:26:52 +0300 |
commit | 473238f8ad2228a5c013d2275c738789e323420d (patch) | |
tree | 30add83a8d68e1f12e10a34fe51204cae24ce661 /src | |
parent | 281b1d5bdbc445c3b8b996f703bb4162dac0f534 (diff) |
fix(style): global link hover color (#288)
Diffstat (limited to 'src')
-rw-r--r-- | src/js/theme.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/theme.js b/src/js/theme.js index 46a2deb..1d168ad 100644 --- a/src/js/theme.js +++ b/src/js/theme.js @@ -412,7 +412,7 @@ class Theme { const rect = $page.getBoundingClientRect(); $toc.style.left = `${rect.left + rect.width + 20}px`; $toc.style.maxWidth = `${$page.getBoundingClientRect().left - 20}px`; - const $tocLinkElements = $tocCore.getElementsByTagName('a'); + const $tocLinkElements = $tocCore.querySelectorAll('a:first-child'); const $tocLiElements = $tocCore.getElementsByTagName('li'); const $headerLinkElements = document.getElementsByClassName('headerLink'); const headerIsFixed = this.config.headerMode.desktop !== 'normal'; |