Skip to content

Commit

Permalink
style: dark mode of editor
Browse files Browse the repository at this point in the history
  • Loading branch information
YangFong committed Aug 24, 2024
1 parent 3ebceb8 commit 1fc5a2e
Showing 1 changed file with 8 additions and 65 deletions.
73 changes: 8 additions & 65 deletions src/assets/less/theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@
.container {
background-color: @nightBgColor;

.el-main {
background-color: @nightBgColor;
}

.CodeMirror {
caret-color: @nightFontColor;
color: @nightFontColor;
background-color: @nightCodeMirrorColor;
box-shadow: inset 0 0 0 1px rgba(100, 37, 37, 0.102);

.CodeMirror-cursor {
border-left: 1px solid @nightLineColor;
}

.CodeMirror-activeline-background {
background-color: #3e3e3e!important;
}
}

.output_night {
Expand Down Expand Up @@ -64,67 +68,6 @@
color: @nightLinkTextColor;
}

// .el-button {
// color: @nightWhiteColor;
// background-color: @nightCodeMirrorColor;
// border: 1px solid transparent;
// }

// .el-button.is-plain:focus,
// .el-button.is-plain:hover {
// background: @nightButtonBg;
// color: @nightWhiteColor;
// border: 1px solid @nightWhiteColor;

// i {
// color: @nightWhiteColor;
// }
// }

// .insert__dialog,
// .about__dialog,
// .reset__dialog,
// .upload__dialog {
// .el-dialog {
// background-color: @nightBgColor;
// }

// .el-dialog__body {
// color: @nightWhiteColor;
// }

// .el-dialog__title,
// .el-form-item__label {
// color: @nightWhiteColor;
// }

// .el-tabs__item {
// color: @nightActiveCodeMirrorColor;
// }

// .el-tabs__nav-wrap::after {
// background-color: @nightLineColor;
// }

// .is-active {
// color: @nightWhiteColor;
// }

// .el-upload-dragger {
// background-color: @nightButtonBg;
// }
// }

// :deep(
// .el-icon-upload,
// .el-icon-download,
// .el-icon-refresh,
// .el-icon-s-grid,
// .el-icon-document
// ) {
// color: @nightWhiteColor;
// }

::-webkit-scrollbar {
background-color: @nightCodeMirrorColor;
}
Expand Down

0 comments on commit 1fc5a2e

Please sign in to comment.