Skip to content

Commit

Permalink
fix(style): global link hover color (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq authored Apr 29, 2020
1 parent 281b1d5 commit 473238f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 21 deletions.
12 changes: 6 additions & 6 deletions assets/css/_mixin/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
[theme=dark] & {
color: if($dark, $global-link-color-dark, $single-link-color-dark);
}
}

&:active,
&:hover {
color: if($light, $global-link-hover-color, $single-link-hover-color);
a:active,
a:hover {
color: if($light, $global-link-hover-color, $single-link-hover-color);

[theme=dark] & {
color: if($dark, $global-link-hover-color-dark, $single-link-hover-color-dark);
}
[theme=dark] & {
color: if($dark, $global-link-hover-color-dark, $single-link-hover-color-dark);
}
}
}
11 changes: 2 additions & 9 deletions assets/css/_mixin/_summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
h6,
p {
font-size: 1rem;
line-height: 1.5;
display: inline;

&::after {
Expand All @@ -66,16 +67,8 @@
}
}

h2,
h3,
h4,
h5,
h6 {
line-height: 2;
}

h2 {
font-size: 1.2rem;
font-size: 1.125rem;
}

@include link(false, true);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/theme.min.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 473238f

Please sign in to comment.