feat: style monaco editor selection & cursorline

Closes #8
This commit is contained in:
winston 2023-08-22 15:01:10 +02:00
parent fdd8b85780
commit 6bae7a8fed
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481
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";