Skip to content

Commit

Permalink
Fix some small issues with the style rules
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 19, 2021
1 parent 53d54bb commit f2a641b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/one-dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ const chalky = "#e5c07b",
export const oneDarkTheme = EditorView.theme({
"&": {
color: ivory,
backgroundColor: background,
"& ::selection": {backgroundColor: selection},
backgroundColor: background
},

".cm-content": {
caretColor: cursor
},

"&.cm-focused .cm-cursor": {borderLeftColor: cursor},
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground": {backgroundColor: selection},
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, ::selection": {backgroundColor: selection},

".cm-panels": {backgroundColor: darkBackground, color: ivory},
".cm-panels.cm-panels-top": {borderBottom: "2px solid black"},
Expand All @@ -57,7 +59,6 @@ export const oneDarkTheme = EditorView.theme({
color: stone,
border: "none"
},
".cm-lineNumbers .cm-gutterElement": {color: "inherit"},

".cm-foldPlaceholder": {
backgroundColor: "transparent",
Expand Down

0 comments on commit f2a641b

Please sign in to comment.