Skip to content

Commit

Permalink
style: 调整超链接样式
Browse files Browse the repository at this point in the history
修改超链接hover时颜色与工具栏保持一致
超链接hover时增加下划线
移除目录超链接hover的下划线
修改目的:保持风格统一性,增强页面可读性和美观性
  • Loading branch information
he-weilai committed Jul 14, 2024
1 parent 6b7bb04 commit 487fd71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/sass/themes/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@
}

a {

&:hover {
text-decoration: underline;
}
}

strong {
Expand Down Expand Up @@ -239,6 +241,9 @@

/** 目录 */
.toc {
a:hover {
text-decoration: none;
}
.toc-title {

}
Expand Down
4 changes: 2 additions & 2 deletions src/sass/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $editorBg: #f8fafb;
$previewBg: #f8fafb;
$fontColor: #3f4a56;
$linkColor: #3582fb;
$linkHoverColor: #056bad;
$linkHoverColor: #364fc7;
$borderColor: #dfe6ee;
$toolbarSplitColor: #dfe6ee;
$fullWidthColor: #d71616;
Expand Down Expand Up @@ -66,7 +66,7 @@ $editorKeywordColor: $fontColor;

// 工具栏
// 暗色
$toolbarBgDark: #364fc7;
$toolbarBgDark: $linkHoverColor;
$toolbarShadowDark: $shadow;
$toolbarBtnBgDark: transparent;
$toolbarBtnColorDark: #d7e6fe;
Expand Down

0 comments on commit 487fd71

Please sign in to comment.