mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Fix codemirror cursor color (#8571)
This commit is contained in:
parent
7449f7e73f
commit
8ec3cbdb33
@ -37,14 +37,17 @@ export const theme = CMEditorView.theme({
|
|||||||
backgroundColor:
|
backgroundColor:
|
||||||
"var(--code-editor-background-color, var(--card-background-color))",
|
"var(--code-editor-background-color, var(--card-background-color))",
|
||||||
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
|
"& ::selection": { backgroundColor: "rgba(var(--rgb-primary-color), 0.3)" },
|
||||||
|
caretColor: "var(--secondary-text-color)",
|
||||||
height: "var(--code-mirror-height, auto)",
|
height: "var(--code-mirror-height, auto)",
|
||||||
maxHeight: "var(--code-mirror-max-height, unset)",
|
maxHeight: "var(--code-mirror-max-height, unset)",
|
||||||
},
|
},
|
||||||
|
|
||||||
"&.cm-focused": { outline: "none" },
|
"&.cm-focused": { outline: "none" },
|
||||||
|
|
||||||
"&.cm-focused .cm-cursor": {
|
"&.cm-focused .cm-cursor": {
|
||||||
borderLeftColor: "#var(--secondary-text-color)",
|
borderLeftColor: "var(--secondary-text-color)",
|
||||||
},
|
},
|
||||||
|
|
||||||
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground": {
|
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground": {
|
||||||
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
|
backgroundColor: "rgba(var(--rgb-primary-color), 0.3)",
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user