Make code editor font family follow theme (#6958)

This commit is contained in:
Kendell R 2020-09-14 00:39:47 -07:00 committed by GitHub
parent f6eb31bf9d
commit e465ec8835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,7 @@ export class HaCodeEditor extends UpdatingElement {
.CodeMirror { .CodeMirror {
height: var(--code-mirror-height, auto); height: var(--code-mirror-height, auto);
direction: var(--code-mirror-direction, ltr); direction: var(--code-mirror-direction, ltr);
font-family: var(--code-font-family, monospace);
} }
.CodeMirror-scroll { .CodeMirror-scroll {
max-height: var(--code-mirror-max-height, --code-mirror-height); max-height: var(--code-mirror-max-height, --code-mirror-height);