Adopt --code-font-family (#6997)

This commit is contained in:
Kendell R 2020-09-21 00:56:42 -07:00 committed by GitHub
parent e6357e2eef
commit 4b846964be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 22 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class HassioAddonConfig extends LitElement {
} }
iron-autogrow-textarea { iron-autogrow-textarea {
width: 100%; width: 100%;
font-family: monospace; font-family: var(--code-font-family, monospace);
} }
.syntaxerror { .syntaxerror {
color: var(--error-color); color: var(--error-color);

View File

@ -72,6 +72,7 @@ class HaMarkdown extends LitElement {
padding: 16px; padding: 16px;
overflow: auto; overflow: auto;
line-height: 1.45; line-height: 1.45;
font-family: var(--code-font-family, monospace);
} }
ha-markdown-element h2 { ha-markdown-element h2 {
font-size: 1.5em; font-size: 1.5em;

View File

@ -83,6 +83,7 @@ class MQTTDiscoveryPayload extends LitElement {
font-size: 0.9em; font-size: 0.9em;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
font-family: var(--code-font-family, monospace);
} }
`; `;
} }

View File

@ -174,6 +174,7 @@ class MQTTMessages extends LitElement {
margin: 0; margin: 0;
padding-left: 4px; padding-left: 4px;
padding-right: 4px; padding-right: 4px;
font-family: var(--code-font-family, monospace);
} }
`; `;
} }

View File

@ -155,6 +155,9 @@ class MqttSubscribeCard extends LitElement {
font-size: 80%; font-size: 80%;
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
pre {
font-family: var(--code-font-family, monospace);
}
`; `;
} }
} }

View File

@ -10,6 +10,9 @@ class ZwaveLogDialog extends EventsMixin(PolymerElement) {
static get template() { static get template() {
return html` return html`
<style include="ha-style-dialog"> <style include="ha-style-dialog">
pre {
font-family: var(--code-font-family, monospace);
}
</style> </style>
<ha-paper-dialog id="pwaDialog" with-backdrop="" opened="{{_opened}}"> <ha-paper-dialog id="pwaDialog" with-backdrop="" opened="{{_opened}}">
<h2>OpenZwave internal logfile</h2> <h2>OpenZwave internal logfile</h2>

View File

@ -29,6 +29,10 @@ class ZwaveUsercodes extends PolymerElement {
padding-right: 24px; padding-right: 24px;
padding-bottom: 24px; padding-bottom: 24px;
} }
pre {
font-family: var(--code-font-family, monospace);
}
</style> </style>
<div class="content"> <div class="content">
<ha-card header="Node user codes"> <ha-card header="Node user codes">

View File

@ -203,6 +203,7 @@ class DialogSystemLogDetail extends LitElement {
} }
pre { pre {
margin-bottom: 0; margin-bottom: 0;
font-family: var(--code-font-family, monospace);
} }
.heading { .heading {
display: flex; display: flex;

View File

@ -143,6 +143,9 @@ class EventSubscribeCard extends LitElement {
.event:last-child { .event:last-child {
border-bottom: 0; border-bottom: 0;
} }
pre {
font-family: var(--code-font-family, monospace);
}
`; `;
} }
} }

View File

@ -75,6 +75,7 @@ class HaPanelDevService extends LocalizeMixin(PolymerElement) {
pre { pre {
margin: 0; margin: 0;
font-family: var(--code-font-family, monospace);
} }
h1 { h1 {

View File

@ -50,6 +50,9 @@ export class HuiErrorCard extends LitElement implements LovelaceCard {
user-select: text; user-select: text;
cursor: default; cursor: default;
} }
pre {
font-family: var(--code-font-family, monospace);
}
`; `;
} }
} }