mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Remove paper css tokens
This commit is contained in:
parent
46d82e30ef
commit
141539828f
@ -130,7 +130,7 @@ export class HassioUpdate extends LitElement {
|
|||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
}
|
}
|
||||||
.update-heading {
|
.update-heading {
|
||||||
font-size: var(--paper-font-subhead_-_font-size);
|
font-size: var(--ha-font-size-m);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
|
@ -170,7 +170,7 @@ class HassioHardwareDialog 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);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
|
@ -12,12 +12,11 @@ export const hassioStyle = css`
|
|||||||
h1 {
|
h1 {
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
font-size: var(--ha-font-size-xl);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
letter-spacing: var(--paper-font-headline_-_letter-spacing);
|
line-height: var(--ha-line-height-condensed);
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
padding-inline-start: 8px;
|
padding-inline-start: 8px;
|
||||||
padding-inline-end: initial;
|
padding-inline-end: initial;
|
||||||
|
@ -74,7 +74,7 @@ export 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);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
h1,
|
h1,
|
||||||
h2,
|
h2,
|
||||||
|
@ -25,14 +25,11 @@ export class HuiNotificationItemTemplate extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ha-card .header {
|
ha-card .header {
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-headline_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-headline_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
|
||||||
|
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
padding: 16px 16px 0;
|
padding: 16px 16px 0;
|
||||||
|
@ -630,7 +630,7 @@ export class HAFullCalendar extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fc-icon-x:before {
|
.fc-icon-x:before {
|
||||||
font-family: var(--paper-font-common-base_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
content: "X";
|
content: "X";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1450,7 +1450,7 @@ ${rejected
|
|||||||
--data-table-row-height: 72px;
|
--data-table-row-height: 72px;
|
||||||
}
|
}
|
||||||
.empty {
|
.empty {
|
||||||
--paper-font-headline_-_font-size: 28px;
|
--ha-font-size-xl: 28px;
|
||||||
--mdc-icon-size: 80px;
|
--mdc-icon-size: 80px;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ class MQTTDiscoveryPayload extends LitElement {
|
|||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
padding-inline-start: 4px;
|
padding-inline-start: 4px;
|
||||||
padding-inline-end: 4px;
|
padding-inline-end: 4px;
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ class MQTTMessages extends LitElement {
|
|||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
padding-inline-start: 4px;
|
padding-inline-start: 4px;
|
||||||
padding-inline-end: 4px;
|
padding-inline-end: 4px;
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -1540,14 +1540,11 @@ export class HaConfigDevicePage extends LitElement {
|
|||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-headline_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-headline_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
|
||||||
opacity: var(--dark-primary-opacity);
|
opacity: var(--dark-primary-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,14 +61,11 @@ export class HaConfigSection extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-headline_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-headline_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
|
||||||
opacity: var(--dark-primary-opacity);
|
opacity: var(--dark-primary-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,12 +74,10 @@ export class HaConfigSection extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.intro {
|
.intro {
|
||||||
font-family: var(--paper-font-subhead_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-subhead_-_-webkit-font-smoothing
|
font-weight: var(--ha-font-weight-normal);
|
||||||
);
|
line-height: var(--ha-line-height-normal);
|
||||||
font-weight: var(--paper-font-subhead_-_font-weight);
|
|
||||||
line-height: var(--paper-font-subhead_-_line-height);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
opacity: var(--dark-primary-opacity);
|
opacity: var(--dark-primary-opacity);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
@ -197,7 +197,7 @@ class DialogHardwareAvailable extends LitElement implements HassDialog {
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
line-height: 1.45;
|
line-height: 1.45;
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
font-size: 85%;
|
font-size: 85%;
|
||||||
|
@ -209,7 +209,7 @@ class MqttSubscribeCard extends LitElement {
|
|||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
.panel-dev-mqtt-subscribe-fields {
|
.panel-dev-mqtt-subscribe-fields {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -166,14 +166,11 @@ export class ZHAAddGroupPage extends LitElement {
|
|||||||
return [
|
return [
|
||||||
css`
|
css`
|
||||||
.header {
|
.header {
|
||||||
font-family: var(--paper-font-display1_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-display1_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-2xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-display1_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-display1_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-display1_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-display1_-_line-height);
|
|
||||||
opacity: var(--dark-primary-opacity);
|
opacity: var(--dark-primary-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,14 +293,11 @@ export class ZHAGroupPage extends LitElement {
|
|||||||
--app-header-text-color: var(--sidebar-icon-color);
|
--app-header-text-color: var(--sidebar-icon-color);
|
||||||
}
|
}
|
||||||
.header {
|
.header {
|
||||||
font-family: var(--paper-font-display1_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-display1_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-2xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-display1_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-display1_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-display1_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-display1_-_line-height);
|
|
||||||
opacity: var(--dark-primary-opacity);
|
opacity: var(--dark-primary-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ class DialogSystemLogDetail extends LitElement {
|
|||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
ha-alert {
|
ha-alert {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -795,7 +795,7 @@ class ErrorLogCard extends LitElement {
|
|||||||
|
|
||||||
.error-log {
|
.error-log {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
clear: both;
|
clear: both;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
padding-top: 16px;
|
padding-top: 16px;
|
||||||
|
@ -1196,7 +1196,7 @@ ${rejected
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.empty {
|
.empty {
|
||||||
--paper-font-headline_-_font-size: 28px;
|
--ha-font-size-xl: 28px;
|
||||||
--mdc-icon-size: 80px;
|
--mdc-icon-size: 80px;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
@ -1285,7 +1285,7 @@ ${rejected
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
.empty {
|
.empty {
|
||||||
--paper-font-headline_-_font-size: 28px;
|
--ha-font-size-xl: 28px;
|
||||||
--mdc-icon-size: 80px;
|
--mdc-icon-size: 80px;
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ class EventSubscribeCard extends LitElement {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
}
|
}
|
||||||
ha-card {
|
ha-card {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
@ -284,9 +284,8 @@ ${type === "object"
|
|||||||
|
|
||||||
.content.horizontal {
|
.content.horizontal {
|
||||||
--code-mirror-max-height: calc(
|
--code-mirror-max-height: calc(
|
||||||
100vh - var(--header-height) -
|
100vh - var(--header-height) - (var(--ha-line-height-normal) * 3) -
|
||||||
(var(--paper-font-body1_-_line-height) * 3) - (1em * 2) -
|
(1em * 2) - (max(16px, env(safe-area-inset-top)) * 2) -
|
||||||
(max(16px, env(safe-area-inset-top)) * 2) -
|
|
||||||
(max(16px, env(safe-area-inset-bottom)) * 2) -
|
(max(16px, env(safe-area-inset-bottom)) * 2) -
|
||||||
(var(--ha-card-border-width, 1px) * 2) - 179px
|
(var(--ha-card-border-width, 1px) * 2) - 179px
|
||||||
);
|
);
|
||||||
|
@ -78,7 +78,7 @@ export class HuiErrorBadge extends LitElement implements LovelaceBadge {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
white-space: break-spaces;
|
white-space: break-spaces;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@ export class HuiErrorCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
static styles = css`
|
static styles = css`
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
white-space: break-spaces;
|
white-space: break-spaces;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
@ -199,7 +199,7 @@ export class HuiGlanceCard extends LitElement implements LovelaceCard {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.name {
|
.name {
|
||||||
min-height: var(--paper-font-body1_-_line-height, 20px);
|
min-height: var(--ha-line-height-normal, 20px);
|
||||||
}
|
}
|
||||||
.warning {
|
.warning {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
@ -178,14 +178,11 @@ class HuiPlantStatusCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
--paper-font-headline_-_-webkit-font-smoothing
|
font-size: var(--ha-font-size-xl);
|
||||||
);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
line-height: var(--ha-line-height-condensed);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
|
||||||
letter-spacing: var(--paper-font-headline_-_letter-spacing);
|
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
|
||||||
|
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
|
@ -78,7 +78,7 @@ export class HuiErrorHeadingBadge extends LitElement implements LovelaceBadge {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
font-family: var(--code-font-family, monospace);
|
font-family: var(--ha-font-family-code);
|
||||||
white-space: break-spaces;
|
white-space: break-spaces;
|
||||||
user-select: text;
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ const mainStyles = css`
|
|||||||
/* typography */
|
/* typography */
|
||||||
--ha-font-family-body: Roboto, Noto, sans-serif;
|
--ha-font-family-body: Roboto, Noto, sans-serif;
|
||||||
--ha-font-family-heading: var(--ha-font-family-body);
|
--ha-font-family-heading: var(--ha-font-family-body);
|
||||||
--ha-font-family-code: "Roboto Mono", Consolas, Menlo, monospace;
|
--ha-font-family-code: monospace;
|
||||||
--ha-font-family-longform: ui-sans-serif, system-ui, sans-serif;
|
--ha-font-family-longform: ui-sans-serif, system-ui, sans-serif;
|
||||||
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -42,8 +42,10 @@ const mainStyles = css`
|
|||||||
--ha-line-height-normal: 1.6;
|
--ha-line-height-normal: 1.6;
|
||||||
--ha-line-height-expanded: 2;
|
--ha-line-height-expanded: 2;
|
||||||
|
|
||||||
/* support existing typography */
|
--ha-font-smoothing: antialiased;
|
||||||
--code-font-family: var(--ha-font-family-code);
|
--ha-title-h2-white-space: nowrap;
|
||||||
|
--ha-title-h2-overflow: hidden;
|
||||||
|
--ha-title-h2-text-overflow: ellipsis;
|
||||||
|
|
||||||
/* Vaadin typography */
|
/* Vaadin typography */
|
||||||
--material-h6-font-size: var(--ha-font-size-m);
|
--material-h6-font-size: var(--ha-font-size-m);
|
||||||
@ -51,74 +53,6 @@ const mainStyles = css`
|
|||||||
--material-caption-font-size: var(--ha-font-size-2xs);
|
--material-caption-font-size: var(--ha-font-size-2xs);
|
||||||
--material-button-font-size: var(--ha-font-size-xs);
|
--material-button-font-size: var(--ha-font-size-xs);
|
||||||
|
|
||||||
/* Paper typography Styles */
|
|
||||||
--paper-font-common-base_-_font-family: var(--ha-font-family-body);
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing: antialiased;
|
|
||||||
--paper-font-common-code_-_font-family: var(--ha-font-family-code);
|
|
||||||
--paper-font-common-code_-_-webkit-font-smoothing: antialiased;
|
|
||||||
--paper-font-common-nowrap_-_white-space: nowrap;
|
|
||||||
--paper-font-common-nowrap_-_overflow: hidden;
|
|
||||||
--paper-font-common-nowrap_-_text-overflow: ellipsis;
|
|
||||||
|
|
||||||
--paper-font-display1_-_font-family: var(
|
|
||||||
--paper-font-common-base_-_font-family
|
|
||||||
);
|
|
||||||
--paper-font-display1_-_-webkit-font-smoothing: var(
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing
|
|
||||||
);
|
|
||||||
--paper-font-display1_-_font-size: var(--ha-font-size-2xl);
|
|
||||||
--paper-font-display1_-_font-weight: var(--ha-font-weight-normal);
|
|
||||||
--paper-font-display1_-_letter-spacing: -0.01em;
|
|
||||||
--paper-font-display1_-_line-height: var(--ha-line-height-condensed);
|
|
||||||
|
|
||||||
--paper-font-headline_-_font-family: var(
|
|
||||||
--paper-font-common-base_-_font-family
|
|
||||||
);
|
|
||||||
--paper-font-headline_-_-webkit-font-smoothing: var(
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing
|
|
||||||
);
|
|
||||||
--paper-font-headline_-_font-size: var(--ha-font-size-xl);
|
|
||||||
--paper-font-headline_-_font-weight: var(--ha-font-weight-normal);
|
|
||||||
--paper-font-headline_-_letter-spacing: -0.012em;
|
|
||||||
--paper-font-headline_-_line-height: var(--ha-line-height-condensed);
|
|
||||||
|
|
||||||
--paper-font-title_-_font-family: var(
|
|
||||||
--paper-font-common-base_-_font-family
|
|
||||||
);
|
|
||||||
--paper-font-title_-_-webkit-font-smoothing: var(
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing
|
|
||||||
);
|
|
||||||
--paper-font-title_-_white-space: var(
|
|
||||||
--paper-font-common-nowrap_-_white-space
|
|
||||||
);
|
|
||||||
--paper-font-title_-_overflow: var(--paper-font-common-nowrap_-_overflow);
|
|
||||||
--paper-font-title_-_text-overflow: var(
|
|
||||||
--paper-font-common-nowrap_-_text-overflow
|
|
||||||
);
|
|
||||||
--paper-font-title_-_font-size: var(--ha-font-size-l);
|
|
||||||
--paper-font-title_-_font-weight: var(--ha-font-weight-semibold);
|
|
||||||
--paper-font-title_-_line-height: var(--ha-line-height-normal);
|
|
||||||
|
|
||||||
--paper-font-subhead_-_font-family: var(
|
|
||||||
--paper-font-common-base_-_font-family
|
|
||||||
);
|
|
||||||
--paper-font-subhead_-_-webkit-font-smoothing: var(
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing
|
|
||||||
);
|
|
||||||
--paper-font-subhead_-_font-size: var(--ha-font-size-m);
|
|
||||||
--paper-font-subhead_-_font-weight: var(--ha-font-weight-normal);
|
|
||||||
--paper-font-subhead_-_line-height: var(--ha-line-height-normal);
|
|
||||||
|
|
||||||
--paper-font-body1_-_font-family: var(
|
|
||||||
--paper-font-common-base_-_font-family
|
|
||||||
);
|
|
||||||
--paper-font-body1_-_-webkit-font-smoothing: var(
|
|
||||||
--paper-font-common-base_-_-webkit-font-smoothing
|
|
||||||
);
|
|
||||||
--paper-font-body1_-_font-size: var(--ha-font-size-s);
|
|
||||||
--paper-font-body1_-_font-weight: var(--ha-font-weight-normal);
|
|
||||||
--paper-font-body1_-_line-height: var(--ha-line-height-normal);
|
|
||||||
|
|
||||||
/* component specific */
|
/* component specific */
|
||||||
/* ha-tooltip */
|
/* ha-tooltip */
|
||||||
--ha-tooltip-font-family: var(--ha-font-family-body);
|
--ha-tooltip-font-family: var(--ha-font-family-body);
|
||||||
|
@ -16,11 +16,11 @@ export const buttonLinkStyle = css`
|
|||||||
|
|
||||||
export const haStyle = css`
|
export const haStyle = css`
|
||||||
:host {
|
:host {
|
||||||
font-family: var(--paper-font-body1_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(--paper-font-body1_-_-webkit-font-smoothing);
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
font-size: var(--paper-font-body1_-_font-size);
|
font-size: var(--ha-font-size-s);
|
||||||
font-weight: var(--paper-font-body1_-_font-weight);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
line-height: var(--paper-font-body1_-_line-height);
|
line-height: var(--ha-line-height-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
app-header div[sticky] {
|
app-header div[sticky] {
|
||||||
@ -34,36 +34,36 @@ export const haStyle = css`
|
|||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-family: var(--paper-font-headline_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(--paper-font-headline_-_-webkit-font-smoothing);
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
white-space: var(--paper-font-headline_-_white-space);
|
white-space: var(--paper-font-headline_-_white-space);
|
||||||
overflow: var(--paper-font-headline_-_overflow);
|
overflow: var(--paper-font-headline_-_overflow);
|
||||||
text-overflow: var(--paper-font-headline_-_text-overflow);
|
text-overflow: var(--paper-font-headline_-_text-overflow);
|
||||||
font-size: var(--paper-font-headline_-_font-size);
|
font-size: var(--ha-font-size-xl);
|
||||||
font-weight: var(--paper-font-headline_-_font-weight);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
line-height: var(--paper-font-headline_-_line-height);
|
line-height: var(--ha-line-height-condensed);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-family: var(--paper-font-title_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(--paper-font-title_-_-webkit-font-smoothing);
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
white-space: var(--paper-font-title_-_white-space);
|
white-space: var(--ha-title-h2-white-space);
|
||||||
overflow: var(--paper-font-title_-_overflow);
|
overflow: var(--ha-title-h2-overflow);
|
||||||
text-overflow: var(--paper-font-title_-_text-overflow);
|
text-overflow: var(--ha-title-h2-text-overflow);
|
||||||
font-size: var(--paper-font-title_-_font-size);
|
font-size: var(--ha-font-size-l);
|
||||||
font-weight: var(--paper-font-title_-_font-weight);
|
font-weight: var(--ha-font-weight-semibold);
|
||||||
line-height: var(--paper-font-title_-_line-height);
|
line-height: var(--ha-line-height-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-family: var(--paper-font-subhead_-_font-family);
|
font-family: var(--ha-font-family-body);
|
||||||
-webkit-font-smoothing: var(--paper-font-subhead_-_-webkit-font-smoothing);
|
-webkit-font-smoothing: var(--ha-font-smoothing);
|
||||||
white-space: var(--paper-font-subhead_-_white-space);
|
white-space: var(--paper-font-subhead_-_white-space);
|
||||||
overflow: var(--paper-font-subhead_-_overflow);
|
overflow: var(--paper-font-subhead_-_overflow);
|
||||||
text-overflow: var(--paper-font-subhead_-_text-overflow);
|
text-overflow: var(--paper-font-subhead_-_text-overflow);
|
||||||
font-size: var(--paper-font-subhead_-_font-size);
|
font-size: var(--ha-font-size-m);
|
||||||
font-weight: var(--paper-font-subhead_-_font-weight);
|
font-weight: var(--ha-font-weight-normal);
|
||||||
line-height: var(--paper-font-subhead_-_line-height);
|
line-height: var(--ha-line-height-normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user