fix(style): global link hover color (#288)

This commit is contained in:
Dillon
2020-04-29 22:26:52 +08:00
committed by GitHub
parent 281b1d5bdb
commit 473238f8ad
8 changed files with 14 additions and 21 deletions

View File

@@ -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';