mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-06 00:46:35 +00:00
Adopt --code-font-family (#6997)
This commit is contained in:
parent
e6357e2eef
commit
4b846964be
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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">
|
||||||
|
@ -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;
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,7 @@ class HaPanelDevService extends LocalizeMixin(PolymerElement) {
|
|||||||
|
|
||||||
pre {
|
pre {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
font-family: var(--code-font-family, monospace);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user