1 Commits

Author SHA1 Message Date
winston
6bae7a8fed feat: style monaco editor selection & cursorline
Closes #8
2023-08-22 15:01:12 +02:00
2 changed files with 20 additions and 0 deletions

19
src/_monaco.scss Normal file
View File

@@ -0,0 +1,19 @@
.monaco-editor {
// selected text
.selected-text {
background-color: $surface0 !important;
}
// line numbers
.margin-view-overlays .line-numbers {
color: $subtext0 !important;
}
.line-numbers.active-line-number {
color: $accent !important;
}
// current / cursor line
.view-overlays .current-line,
.margin-view-overlays .current-line-margin {
background-color: #{if($isDark, color.mix($surface0, $base, 64%), color.mix($mantle, $base, 70%))} !important;
}
}

View File

@@ -285,3 +285,4 @@ $lvl3: if($isDark, $base, $crust);
@import "chroma";
@import "codemirror";
@import "monaco";