Skip to content

Commit

Permalink
fix: 调整深色模式下编辑器样式
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiuChen committed Oct 11, 2023
1 parent 7676306 commit 635aaf5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ defineExpose({
</script>

<style lang="less">
@import '@/style/scrollbar.less';
body.dark {
// 鼠标光标颜色
.CodeMirror-cursor {
Expand All @@ -78,6 +80,10 @@ body.dark {
color: #f9fafb;
}
.cm-variable-2 {
color: #f9fafb;
}
.bytemd-split {
border-color: #4b5563;
}
Expand All @@ -89,5 +95,9 @@ body.dark {
.bytemd-toolbar-icon:hover {
background-color: var(--text-bg-color-lighter);
}
.bytemd-preview {
background: var(--text-color);
}
}
</style>

0 comments on commit 635aaf5

Please sign in to comment.