Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: 默认主题样式精调 #844

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sass/cherry.scss
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@
}

&:hover {
background: rgba(0, 0, 0, 0.05);
background: #ced4da;

.ch-icon {
color: $toolbarBtnColorLight;
Expand Down
5 changes: 3 additions & 2 deletions src/sass/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
color: #f85353;
background-color: #e5e5e5;
color: #495057;
background-color: #e9ecef;
border: 0.1em solid #ced4da;

[data-inline-code-theme='black'] & {
color: #3f4a56;
Expand Down
15 changes: 13 additions & 2 deletions src/sass/themes/default.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,16 @@
}
}

// 更改编辑区域选中文字区域的背景色
// 覆盖了 codemirror.css 中的默认样式
.CodeMirror-focused .CodeMirror-selected { background: #bac8ff; }
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #bac8ff; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #bac8ff; }


/** 光标focus到空行时联想出的按钮 */
.cherry-floatmenu {

background-color: #e9ecef;
}

.cherry-editor {
Expand Down Expand Up @@ -135,7 +141,9 @@
}

a {

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

strong {
Expand Down Expand Up @@ -233,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: #20304b;
$toolbarBgDark: $linkHoverColor;
$toolbarShadowDark: $shadow;
$toolbarBtnBgDark: transparent;
$toolbarBtnColorDark: #d7e6fe;
Expand Down
Loading