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 {
width: 100%;
font-family: monospace;
font-family: var(--code-font-family, monospace);
}
.syntaxerror {
color: var(--error-color);

View File

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

View File

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

View File

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

View File

@ -155,6 +155,9 @@ class MqttSubscribeCard extends LitElement {
font-size: 80%;
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() {
return html`
<style include="ha-style-dialog">
pre {
font-family: var(--code-font-family, monospace);
}
</style>
<ha-paper-dialog id="pwaDialog" with-backdrop="" opened="{{_opened}}">
<h2>OpenZwave internal logfile</h2>

View File

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

View File

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

View File

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

View File

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

View File

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