Use `ha-line-height` css tokens in codebase (#25468)

pull/25476/head
Wendelin 2025-05-15 11:57:17 +02:00 committed by GitHub
parent 5bcbe98f8e
commit d2cc4a624e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
109 changed files with 156 additions and 168 deletions

View File

@ -88,7 +88,7 @@ class HcLayout extends LitElement {
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 32px; line-height: var(--ha-line-height-condensed);
padding: 24px 16px 16px; padding: 24px 16px 16px;
display: block; display: block;
margin: 0; margin: 0;

View File

@ -38,12 +38,12 @@ class PageDescription extends HaMarkdown {
} }
.title { .title {
font-size: 42px; font-size: 42px;
line-height: 56px; line-height: var(--ha-line-height-condensed);
padding-bottom: 8px; padding-bottom: 8px;
} }
.subtitle { .subtitle {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
line-height: 24px; line-height: var(--ha-line-height-normal);
} }
.root { .root {
max-width: 800px; max-width: 800px;

View File

@ -252,12 +252,12 @@ class HaGallery extends LitElement {
.page-footer .header { .page-footer .header {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 28px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
} }
.page-footer .secondary { .page-footer .secondary {
line-height: 23px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
} }

View File

@ -430,7 +430,7 @@ class HassioAddonConfig extends LitElement {
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
padding: 12px 16px 16px; padding: 12px 16px 16px;
display: block; display: block;
margin-block: 0px; margin-block: 0px;

View File

@ -101,7 +101,7 @@ class HassioCardContent extends LitElement {
overflow: hidden; overflow: hidden;
position: relative; position: relative;
height: 2.4em; height: 2.4em;
line-height: 1.2em; line-height: var(--ha-line-height-condensed);
} }
.icon_image img { .icon_image img {
max-height: 40px; max-height: 40px;

View File

@ -354,7 +354,7 @@ class HassioIngressView extends LitElement {
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-condensed);
flex-grow: 1; flex-grow: 1;
} }

View File

@ -94,7 +94,7 @@ export class HaAuthorize extends litLocalizeLiteMixin(LitElement) {
} }
p { p {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-normal);
} }
.card-content { .card-content {
background: var( background: var(

View File

@ -59,7 +59,7 @@ export class HaPickAuthProvider extends LitElement {
text-align: center; text-align: center;
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-normal);
} }
h3:before { h3:before {
border-top: 1px solid var(--divider-color); border-top: 1px solid var(--divider-color);

View File

@ -1016,7 +1016,7 @@ export class HaDataTable extends LitElement {
-moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing); -moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing);
-webkit-font-smoothing: var(--ha-font-smoothing); -webkit-font-smoothing: var(--ha-font-smoothing);
font-size: 0.875rem; font-size: 0.875rem;
line-height: 1.25rem; line-height: var(--ha-line-height-condensed);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
letter-spacing: 0.0178571429em; letter-spacing: 0.0178571429em;
text-decoration: inherit; text-decoration: inherit;
@ -1136,7 +1136,7 @@ export class HaDataTable extends LitElement {
-moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing); -moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing);
-webkit-font-smoothing: var(--ha-font-smoothing); -webkit-font-smoothing: var(--ha-font-smoothing);
font-size: 0.875rem; font-size: 0.875rem;
line-height: 1.25rem; line-height: var(--ha-line-height-condensed);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
letter-spacing: 0.0178571429em; letter-spacing: 0.0178571429em;
text-decoration: inherit; text-decoration: inherit;
@ -1257,8 +1257,8 @@ export class HaDataTable extends LitElement {
font-family: var(--ha-font-family-body); font-family: var(--ha-font-family-body);
-moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing); -moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing);
-webkit-font-smoothing: var(--ha-font-smoothing); -webkit-font-smoothing: var(--ha-font-smoothing);
font-size: 0.875rem; font-size: var(--ha-font-size-s);
line-height: 1.375rem; line-height: var(--ha-line-height-normal);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
letter-spacing: 0.0071428571em; letter-spacing: 0.0071428571em;
text-decoration: inherit; text-decoration: inherit;

View File

@ -108,7 +108,7 @@ class StateInfo extends LitElement {
.name.in-dialog, .name.in-dialog,
:host([secondary-line]) .name { :host([secondary-line]) .name {
line-height: 20px; line-height: var(--ha-line-height-condensed);
} }
.time-ago, .time-ago,

View File

@ -106,7 +106,7 @@ export class HaBadge extends LitElement {
font-size: var(--ha-badge-font-size, var(--ha-font-size-s)); font-size: var(--ha-badge-font-size, var(--ha-font-size-s));
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }

View File

@ -388,7 +388,10 @@ export class HaBaseTimeInput extends LitElement {
var(--mdc-typography-font-family, var(--ha-font-family-body)) var(--mdc-typography-font-family, var(--ha-font-family-body))
); );
font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s)); font-size: var(--mdc-typography-body2-font-size, var(--ha-font-size-s));
line-height: var(--mdc-typography-body2-line-height, 1.25rem); line-height: var(
--mdc-typography-body2-line-height,
var(--ha-line-height-condensed)
);
font-weight: var( font-weight: var(
--mdc-typography-body2-font-weight, --mdc-typography-body2-font-weight,
var(--ha-font-weight-normal) var(--ha-font-weight-normal)
@ -406,7 +409,7 @@ export class HaBaseTimeInput extends LitElement {
} }
ha-input-helper-text { ha-input-helper-text {
padding-top: 8px; padding-top: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
`; `;
} }

View File

@ -92,7 +92,7 @@ export class HaBigNumber extends LitElement {
} }
.value .unit { .value .unit {
font-size: 0.33em; font-size: 0.33em;
line-height: 1.26; line-height: var(--ha-line-height-condensed);
} }
/* Accessibility */ /* Accessibility */
.visually-hidden { .visually-hidden {

View File

@ -43,7 +43,7 @@ export class HaCard extends LitElement {
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
padding: 12px 16px 16px; padding: 12px 16px 16px;
display: block; display: block;
margin-block-start: 0px; margin-block-start: 0px;

View File

@ -21,12 +21,12 @@ export class HaComboBoxItem extends HaMdListItem {
--state-icon-color: var(--secondary-text-color); --state-icon-color: var(--secondary-text-color);
} }
[slot="headline"] { [slot="headline"] {
line-height: 22px; line-height: var(--ha-line-height-normal);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
white-space: nowrap; white-space: nowrap;
} }
[slot="supporting-text"] { [slot="supporting-text"] {
line-height: 18px; line-height: var(--ha-line-height-normal);
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
white-space: nowrap; white-space: nowrap;
} }

View File

@ -54,7 +54,7 @@ export class HaDialogHeader extends LitElement {
} }
.header-title { .header-title {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-condensed);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
} }
.header-subtitle { .header-subtitle {

View File

@ -211,7 +211,7 @@ export class HaFilterBlueprints extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -306,7 +306,7 @@ export class HaFilterCategories extends SubscribeMixin(LitElement) {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -235,7 +235,7 @@ export class HaFilterDevices extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -192,7 +192,7 @@ export class HaFilterDomains extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -249,7 +249,7 @@ export class HaFilterEntities extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -306,7 +306,7 @@ export class HaFilterFloorAreas extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -198,7 +198,7 @@ export class HaFilterIntegrations extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -236,7 +236,7 @@ export class HaFilterLabels extends SubscribeMixin(LitElement) {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -180,7 +180,7 @@ export class HaFilterStates extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -34,7 +34,7 @@ class HaLabel extends LitElement {
align-items: center; align-items: center;
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
vertical-align: middle; vertical-align: middle;
height: 32px; height: 32px;

View File

@ -155,10 +155,10 @@ export class HaMdDialog extends Dialog {
--md-dialog-supporting-text-color: var(--primary-text-color); --md-dialog-supporting-text-color: var(--primary-text-color);
--md-sys-color-scrim: #000000; --md-sys-color-scrim: #000000;
--md-dialog-headline-weight: 400; --md-dialog-headline-weight: var(--ha-font-weight-normal);
--md-dialog-headline-size: 1.574rem; --md-dialog-headline-size: var(--ha-font-size-xl);
--md-dialog-supporting-text-size: 1rem; --md-dialog-supporting-text-size: var(--ha-font-size-m);
--md-dialog-supporting-text-line-height: 1.5rem; --md-dialog-supporting-text-line-height: var(--ha-line-height-normal);
} }
:host([type="alert"]) { :host([type="alert"]) {

View File

@ -156,16 +156,16 @@ export class HaSelectBox extends LitElement {
color: var(--primary-text-color); color: var(--primary-text-color);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-condensed);
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.option .content .text .description { .option .content .text .description {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 13px; font-size: var(--ha-font-size-s);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 16px; line-height: var(--ha-line-height-condensed);
} }
img { img {
position: relative; position: relative;

View File

@ -987,7 +987,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
left: 26px; left: 26px;
border-radius: 10px; border-radius: 10px;
font-size: 0.65em; font-size: 0.65em;
line-height: 2; line-height: var(--ha-line-height-expanded);
padding: 0 4px; padding: 0 4px;
} }

View File

@ -30,7 +30,7 @@ export class HaTextArea extends TextAreaBase {
content: attr(data-value); content: attr(data-value);
margin-top: 23px; margin-top: 23px;
margin-bottom: 9px; margin-bottom: 9px;
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
min-height: 42px; min-height: 42px;
padding: 0px 32px 0 16px; padding: 0px 32px 0 16px;
letter-spacing: var( letter-spacing: var(

View File

@ -692,7 +692,7 @@ export class HaMap extends ReactiveElement {
} }
.marker-cluster span { .marker-cluster span {
line-height: 30px; line-height: var(--ha-line-height-expanded);
} }
`; `;
} }

View File

@ -966,7 +966,7 @@ export class HaMediaPlayerBrowse extends LitElement {
} }
.breadcrumb .title { .breadcrumb .title {
font-size: var(--ha-font-size-4xl); font-size: var(--ha-font-size-4xl);
line-height: 1.2; line-height: var(--ha-line-height-condensed);
font-weight: var(--ha-font-weight-bold); font-weight: var(--ha-font-weight-bold);
margin: 0; margin: 0;
overflow: hidden; overflow: hidden;

View File

@ -36,14 +36,14 @@ export class HaTileInfo extends LitElement {
.primary { .primary {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 20px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.secondary { .secondary {
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.4px; letter-spacing: 0.4px;
color: var(--primary-text-color); color: var(--primary-text-color);
} }

View File

@ -76,13 +76,13 @@ export class HaMoreInfoStateHeader extends LitElement {
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: 36px; font-size: 36px;
line-height: 44px; line-height: var(--ha-line-height-condensed);
} }
.last-changed { .last-changed {
font-style: normal; font-style: normal;
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 24px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.1px; letter-spacing: 0.1px;
padding: 4px 0; padding: 4px 0;
margin-bottom: 20px; margin-bottom: 20px;

View File

@ -531,7 +531,7 @@ class MoreInfoClimate extends LitElement {
.current .label { .current .label {
opacity: 0.8; opacity: 0.8;
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.4px; letter-spacing: 0.4px;
margin-bottom: 4px; margin-bottom: 4px;
} }
@ -539,7 +539,7 @@ class MoreInfoClimate extends LitElement {
.current .value { .current .value {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 28px; line-height: var(--ha-line-height-condensed);
direction: ltr; direction: ltr;
} }
ha-select { ha-select {

View File

@ -234,14 +234,14 @@ class MoreInfoHumidifier extends LitElement {
.current .label { .current .label {
opacity: 0.8; opacity: 0.8;
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.4px; letter-spacing: 0.4px;
margin-bottom: 4px; margin-bottom: 4px;
} }
.current .value { .current .value {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 28px; line-height: var(--ha-line-height-condensed);
direction: ltr; direction: ltr;
} }
`, `,

View File

@ -178,7 +178,7 @@ class MoreInfoLawnMower extends LitElement {
static styles = css` static styles = css`
:host { :host {
line-height: 1.5; line-height: var(--ha-line-height-normal);
} }
.status-subtitle { .status-subtitle {
color: var(--secondary-text-color); color: var(--secondary-text-color);

View File

@ -317,7 +317,7 @@ class MoreInfoVacuum extends LitElement {
static styles = css` static styles = css`
:host { :host {
line-height: 1.5; line-height: var(--ha-line-height-normal);
} }
.status-subtitle { .status-subtitle {
color: var(--secondary-text-color); color: var(--secondary-text-color);

View File

@ -235,7 +235,7 @@ class MoreInfoWaterHeater extends LitElement {
.current .label { .current .label {
opacity: 0.8; opacity: 0.8;
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 16px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.4px; letter-spacing: 0.4px;
margin-bottom: 4px; margin-bottom: 4px;
} }
@ -243,7 +243,7 @@ class MoreInfoWaterHeater extends LitElement {
.current .value { .current .value {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 28px; line-height: var(--ha-line-height-condensed);
direction: ltr; direction: ltr;
} }
`, `,

View File

@ -519,7 +519,7 @@ class MoreInfoWeather extends LitElement {
.state, .state,
.temp-attribute .temp { .temp-attribute .temp {
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
line-height: 1.2; line-height: var(--ha-line-height-condensed);
} }
.attribute { .attribute {

View File

@ -680,7 +680,7 @@ export class MoreInfoDialog extends LitElement {
.title .main { .title .main {
color: var(--primary-text-color); color: var(--primary-text-color);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 24px; line-height: var(--ha-line-height-condensed);
} }
.title .breadcrumb { .title .breadcrumb {

View File

@ -469,7 +469,7 @@ class DialogRestart extends LitElement {
.section { .section {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 20px; line-height: var(--ha-line-height-condensed);
margin: 8px 0 4px 0; margin: 8px 0 4px 0;
padding-left: var(--mdc-list-side-padding, 20px); padding-left: var(--mdc-list-side-padding, 20px);
padding-right: var(--mdc-list-side-padding, 20px); padding-right: var(--mdc-list-side-padding, 20px);

View File

@ -162,14 +162,14 @@ export class CloudStepIntro extends LitElement {
.feature h2 { .feature h2 {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 24px; line-height: var(--ha-line-height-normal);
margin-top: 0; margin-top: 0;
margin-bottom: 8px; margin-bottom: 8px;
} }
.feature p { .feature p {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-condensed);
margin: 0; margin: 0;
} }
`, `,

View File

@ -280,7 +280,7 @@ export class HaVoiceCommandDialog extends LitElement {
); );
--mdc-typography-button-line-height: var( --mdc-typography-button-line-height: var(
--mdc-typography-headline6-line-height, --mdc-typography-headline6-line-height,
2rem var(--ha-line-height-expanded)
); );
--button-height: auto; --button-height: auto;
} }

View File

@ -125,7 +125,7 @@ class HassSubpage extends LitElement {
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-normal);
min-width: 0; min-width: 0;
flex-grow: 1; flex-grow: 1;
overflow-wrap: break-word; overflow-wrap: break-word;

View File

@ -785,23 +785,6 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
left: 0; left: 0;
content: ""; content: "";
} }
.badge {
min-width: 20px;
box-sizing: border-box;
border-radius: 50%;
font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color);
line-height: 20px;
text-align: center;
padding: 0px 4px;
color: var(--text-primary-color);
position: absolute;
right: 0;
inset-inline-end: 0;
inset-inline-start: initial;
top: 4px;
font-size: 0.65em;
}
.center { .center {
display: flex; display: flex;
align-items: center; align-items: center;
@ -825,7 +808,7 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 16px; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 2px; padding: 0px 2px;
color: var(--text-primary-color); color: var(--text-primary-color);

View File

@ -304,7 +304,7 @@ class HassTabsSubpage extends LitElement {
.main-title { .main-title {
flex: 1; flex: 1;
max-height: var(--header-height); max-height: var(--header-height);
line-height: 20px; line-height: var(--ha-line-height-normal);
color: var(--sidebar-text-color); color: var(--sidebar-text-color);
margin: var(--main-title-margin, var(--margin-title)); margin: var(--main-title-margin, var(--margin-title));
} }

View File

@ -200,7 +200,7 @@ class OnboardingCoreConfig extends LitElement {
p { p {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-condensed);
} }
ha-textfield { ha-textfield {

View File

@ -65,7 +65,7 @@ class OnboardingRestoreBackupNoCloudBackup extends LitElement {
} }
.description { .description {
font-size: 1rem; font-size: 1rem;
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
margin-top: 24px; margin-top: 24px;
margin-bottom: 32px; margin-bottom: 32px;
} }

View File

@ -308,7 +308,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
} }
.description { .description {
font-size: 1rem; font-size: 1rem;
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
margin-top: 24px; margin-top: 24px;
margin-bottom: 16px; margin-bottom: 16px;
} }
@ -335,7 +335,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
h2 { h2 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);

View File

@ -7,7 +7,7 @@ export const onBoardingStyles = css`
h1 { h1 {
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 36px; line-height: var(--ha-line-height-condensed);
margin-bottom: 8px; margin-bottom: 8px;
} }
ha-icon-button-arrow-prev { ha-icon-button-arrow-prev {
@ -16,7 +16,7 @@ export const onBoardingStyles = css`
} }
p { p {
font-size: 1rem; font-size: 1rem;
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
margin-top: 0; margin-top: 0;
margin-bottom: 32px; margin-bottom: 32px;
} }

View File

@ -617,7 +617,7 @@ export class HAFullCalendar extends LitElement {
.fc-event { .fc-event {
border-radius: 4px; border-radius: 4px;
line-height: 1.7; line-height: var(--ha-line-height-normal);
cursor: pointer; cursor: pointer;
} }

View File

@ -319,7 +319,7 @@ class PanelCalendar extends LitElement {
); );
--mdc-typography-button-line-height: var( --mdc-typography-button-line-height: var(
--mdc-typography-headline6-line-height, --mdc-typography-headline6-line-height,
2rem var(--ha-line-height-expanded)
); );
--button-height: 40px; --button-height: 40px;
} }

View File

@ -314,7 +314,7 @@ class HaBackupConfigAgents extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
.unencrypted-warning { .unencrypted-warning {
display: flex; display: flex;

View File

@ -122,7 +122,7 @@ class HaBackupAgentsPicker extends LitElement {
gap: 16px; gap: 16px;
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 24px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
span.disabled { span.disabled {

View File

@ -133,7 +133,7 @@ class HaBackupDetailsRestore extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
`; `;
} }

View File

@ -105,7 +105,7 @@ class HaBackupDetailsSummary extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
`; `;
} }

View File

@ -44,7 +44,7 @@ class SupervisorFormfieldLabel extends LitElement {
margin-inline-start: initial; margin-inline-start: initial;
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 24px; line-height: var(--ha-line-height-normal);
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.version { .version {

View File

@ -128,7 +128,7 @@ class HaBackupSummaryCard extends LitElement {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
color: var(--primary-text-color); color: var(--primary-text-color);
margin: 0; margin: 0;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -139,7 +139,7 @@ class HaBackupSummaryCard extends LitElement {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.25px; letter-spacing: 0.25px;
color: var(--secondary-text-color); color: var(--secondary-text-color);
margin: 0; margin: 0;

View File

@ -583,7 +583,7 @@ class DialogBackupOnboarding extends LitElement implements HassDialog {
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
} }
.encryption-key ha-icon-button { .encryption-key ha-icon-button {

View File

@ -317,7 +317,7 @@ class DialogChangeBackupEncryptionKey extends LitElement implements HassDialog {
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
} }
.encryption-key ha-icon-button { .encryption-key ha-icon-button {

View File

@ -235,7 +235,7 @@ class DialogSetBackupEncryptionKey extends LitElement implements HassDialog {
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
} }
.encryption-key ha-icon-button { .encryption-key ha-icon-button {

View File

@ -157,7 +157,7 @@ class DialogShowBackupEncryptionKey extends LitElement implements HassDialog {
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
} }
.encryption-key ha-icon-button { .encryption-key ha-icon-button {

View File

@ -400,7 +400,7 @@ class HaConfigBackupDetails extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
.dot { .dot {
display: block; display: block;

View File

@ -377,7 +377,7 @@ class HaConfigBackupDetails extends LitElement {
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
gap: 8px; gap: 8px;
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
.dot { .dot {
display: block; display: block;

View File

@ -196,7 +196,7 @@ class DialogHardwareAvailable extends LitElement implements HassDialog {
pre { pre {
padding: 16px; padding: 16px;
overflow: auto; overflow: auto;
line-height: 1.45; line-height: var(--ha-line-height-normal);
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
} }
code { code {

View File

@ -317,7 +317,7 @@ class HaConfigInfo extends LitElement {
.header p { .header p {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
margin: 24px; margin: 24px;
} }

View File

@ -1063,20 +1063,18 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
} }
.badge { .badge {
min-width: 20px; min-width: 20px;
box-sizing: border-box; min-height: 20px;
border-radius: 50%; border-radius: 50%;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
background-color: var(--primary-color); background-color: var(--primary-color);
line-height: 20px; display: flex;
text-align: center; align-items: center;
padding: 0px 4px; justify-content: center;
color: var(--text-primary-color); color: var(--text-primary-color);
position: absolute; position: absolute;
right: 0px; right: 0px;
inset-inline-end: 0px;
inset-inline-start: initial;
top: 4px; top: 4px;
font-size: 0.65em; font-size: var(--ha-font-size-s);
} }
.menu-badge-container { .menu-badge-container {
position: relative; position: relative;

View File

@ -618,7 +618,7 @@ class ZWaveJSNodeConfig extends LitElement {
padding-right: 24px; padding-right: 24px;
padding-inline-end: 24px; padding-inline-end: 24px;
padding-inline-start: initial; padding-inline-start: initial;
line-height: 1.5em; line-height: var(--ha-line-height-normal);
} }
.prefix span { .prefix span {

View File

@ -778,7 +778,7 @@ class ErrorLogCard extends LitElement {
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
display: block; display: block;
margin-block-start: 0px; margin-block-start: 0px;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);

View File

@ -268,7 +268,7 @@ export class SystemLogCard extends LitElement {
font-family: var(--ha-card-header-font-family, inherit); font-family: var(--ha-card-header-font-family, inherit);
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 48px; line-height: var(--ha-line-height-expanded);
display: block; display: block;
margin-block-start: 0px; margin-block-start: 0px;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);

View File

@ -832,7 +832,7 @@ export class HassioNetwork extends LitElement {
} }
sl-tab-group { sl-tab-group {
line-height: 24px; line-height: var(--ha-line-height-normal);
} }
sl-tab { sl-tab {
flex: 1; flex: 1;

View File

@ -96,7 +96,7 @@ export class AssistPipelineDetailConfig extends LitElement {
h3 { h3 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }

View File

@ -133,7 +133,7 @@ export class AssistPipelineDetailConversation extends LitElement {
h3 { h3 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }

View File

@ -93,7 +93,7 @@ export class AssistPipelineDetailSTT extends LitElement {
h3 { h3 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }

View File

@ -140,7 +140,7 @@ export class AssistPipelineDetailTTS extends LitElement {
h3 { h3 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }

View File

@ -147,7 +147,7 @@ export class AssistPipelineDetailWakeWord extends LitElement {
h3 { h3 {
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 28px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 4px; margin-bottom: 4px;
} }

View File

@ -128,7 +128,7 @@ export class CloudDiscover extends LitElement {
.header { .header {
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 36px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
max-width: 600px; max-width: 600px;
margin: 0 auto 8px auto; margin: 0 auto 8px auto;
@ -136,7 +136,7 @@ export class CloudDiscover extends LitElement {
@media (min-width: 800px) { @media (min-width: 800px) {
.header { .header {
font-size: var(--ha-font-size-4xl); font-size: var(--ha-font-size-4xl);
line-height: 40px; line-height: var(--ha-line-height-condensed);
margin-bottom: 16px; margin-bottom: 16px;
} }
} }
@ -178,14 +178,14 @@ export class CloudDiscover extends LitElement {
.feature h2 { .feature h2 {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
line-height: 24px; line-height: var(--ha-line-height-normal);
margin-top: 0; margin-top: 0;
margin-bottom: 8px; margin-bottom: 8px;
} }
.feature p { .feature p {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 20px; line-height: var(--ha-line-height-condensed);
margin: 0; margin: 0;
} }
.more { .more {

View File

@ -207,8 +207,8 @@ class DialogExposeEntity extends LitElement {
} }
.subtitle { .subtitle {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: 1rem; font-size: var(--ha-font-size-m);
line-height: normal; line-height: var(--ha-line-height-condensed);
} }
lit-virtualizer { lit-virtualizer {
width: 100%; width: 100%;

View File

@ -424,7 +424,7 @@ export class EntityVoiceSettings extends SubscribeMixin(LitElement) {
.description { .description {
color: var(--secondary-text-color); color: var(--secondary-text-color);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-condensed);
margin-top: 0; margin-top: 0;
margin-bottom: 16px; margin-bottom: 16px;
} }

View File

@ -64,7 +64,7 @@ class EventsList extends LitElement {
li { li {
list-style: none; list-style: none;
line-height: 2em; line-height: var(--ha-line-height-expanded);
} }
a { a {

View File

@ -151,7 +151,7 @@ class PanelDeveloperTools extends LitElement {
} }
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-normal);
flex-grow: 1; flex-grow: 1;
} }
developer-tools-router { developer-tools-router {

View File

@ -520,7 +520,7 @@ class PanelEnergy extends LitElement {
} }
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-normal);
flex-grow: 1; flex-grow: 1;
} }
hui-view-container { hui-view-container {

View File

@ -586,7 +586,7 @@ class HaLogbookRenderer extends LitElement {
position: relative; position: relative;
display: flex; display: flex;
width: 100%; width: 100%;
line-height: 2em; line-height: var(--ha-line-height-expanded);
padding: 8px 16px; padding: 8px 16px;
box-sizing: border-box; box-sizing: border-box;
border-top: 1px solid var(--divider-color); border-top: 1px solid var(--divider-color);
@ -637,7 +637,7 @@ class HaLogbookRenderer extends LitElement {
.secondary { .secondary {
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
line-height: 1.7; line-height: var(--ha-line-height-normal);
} }
.secondary a { .secondary a {
@ -700,7 +700,7 @@ class HaLogbookRenderer extends LitElement {
} }
.narrow .entry { .narrow .entry {
line-height: 1.5; line-height: var(--ha-line-height-normal);
} }
.narrow .icon-message state-badge { .narrow .icon-message state-badge {

View File

@ -6,7 +6,7 @@ export const cardFeatureStyles = css`
--control-select-menu-height: var(--feature-height); --control-select-menu-height: var(--feature-height);
--control-select-menu-border-radius: var(--feature-border-radius); --control-select-menu-border-radius: var(--feature-border-radius);
--control-select-menu-focus-color: var(--feature-color); --control-select-menu-focus-color: var(--feature-color);
line-height: 1.2; line-height: var(--ha-line-height-condensed);
display: block; display: block;
width: 100%; width: 100%;
} }

View File

@ -223,7 +223,7 @@ export class HuiCalendarCard extends LitElement implements LovelaceCard {
.header { .header {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl)); font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
line-height: 1.2; line-height: var(--ha-line-height-condensed);
padding-top: 16px; padding-top: 16px;
padding-left: 8px; padding-left: 8px;
padding-inline-start: 8px; padding-inline-start: 8px;

View File

@ -206,7 +206,7 @@ export class HuiClockCard extends LitElement implements LovelaceCard {
color: var(--primary-text-color); color: var(--primary-text-color);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: 18px; line-height: var(--ha-line-height-condensed);
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -216,12 +216,12 @@ export class HuiClockCard extends LitElement implements LovelaceCard {
.time-wrapper.size-medium .time-title { .time-wrapper.size-medium .time-title {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
line-height: 21px; line-height: var(--ha-line-height-condensed);
} }
.time-wrapper.size-large .time-title { .time-wrapper.size-large .time-title {
font-size: var(--ha-font-size-2xl); font-size: var(--ha-font-size-2xl);
line-height: 28px; line-height: var(--ha-line-height-condensed);
} }
.time-parts { .time-parts {

View File

@ -301,7 +301,7 @@ export class HuiEntityCard extends LitElement implements LovelaceCard {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 28px; line-height: var(--ha-line-height-expanded);
} }
.value { .value {

View File

@ -179,7 +179,10 @@ export class HuiHeadingCard extends LitElement implements LovelaceCard {
--ha-heading-card-title-font-weight, --ha-heading-card-title-font-weight,
var(--ha-font-weight-normal) var(--ha-font-weight-normal)
); );
line-height: var(--ha-heading-card-title-line-height, 24px); line-height: var(
--ha-heading-card-title-line-height,
var(--ha-line-height-normal)
);
letter-spacing: 0.1px; letter-spacing: 0.1px;
--mdc-icon-size: 18px; --mdc-icon-size: 18px;
} }
@ -207,7 +210,10 @@ export class HuiHeadingCard extends LitElement implements LovelaceCard {
--ha-heading-card-subtitle-font-weight, --ha-heading-card-subtitle-font-weight,
var(--ha-font-weight-medium) var(--ha-font-weight-medium)
); );
line-height: var(--ha-heading-card-subtitle-line-height, 20px); line-height: var(
--ha-heading-card-subtitle-line-height,
var(--ha-line-height-condensed)
);
} }
.badges { .badges {
display: flex; display: flex;

View File

@ -211,7 +211,7 @@ export class HuiHumidifierCard extends LitElement implements LovelaceCard {
.title { .title {
width: 100%; width: 100%;
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
line-height: 36px; line-height: var(--ha-line-height-expanded);
padding: 8px 30px 8px 30px; padding: 8px 30px 8px 30px;
margin: 0; margin: 0;
text-align: center; text-align: center;

View File

@ -362,7 +362,7 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
line-height: 40px; line-height: var(--ha-line-height-expanded);
color: var(--ha-picture-card-text-color, white); color: var(--ha-picture-card-text-color, white);
align-self: center; align-self: center;
} }

View File

@ -183,9 +183,7 @@ class HuiPlantStatusCard extends LitElement implements LovelaceCard {
-moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing); -moz-osx-font-smoothing: var(--ha-moz-osx-font-smoothing);
font-size: var(--ha-font-size-2xl); font-size: var(--ha-font-size-2xl);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: var(--ha-line-height-condensed); line-height: var(--ha-line-height-normal);
line-height: 40px;
padding: 8px 16px; padding: 8px 16px;
} }

View File

@ -101,7 +101,7 @@ export abstract class HuiStackCard<T extends StackCardConfig = StackCardConfig>
margin-block-start: 0px; margin-block-start: 0px;
margin-block-end: 0px; margin-block-end: 0px;
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 32px; line-height: var(--ha-line-height-condensed);
display: block; display: block;
padding: 24px 16px 16px; padding: 24px 16px 16px;
} }

View File

@ -369,7 +369,7 @@ export class HuiStatisticCard extends LitElement implements LovelaceCard {
.name { .name {
color: var(--secondary-text-color); color: var(--secondary-text-color);
line-height: 40px; line-height: var(--ha-line-height-expanded);
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);
overflow: hidden; overflow: hidden;
@ -388,7 +388,7 @@ export class HuiStatisticCard extends LitElement implements LovelaceCard {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 28px; line-height: var(--ha-line-height-expanded);
} }
.value { .value {

View File

@ -203,7 +203,7 @@ export class HuiThermostatCard extends LitElement implements LovelaceCard {
.title { .title {
width: 100%; width: 100%;
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
line-height: 36px; line-height: var(--ha-line-height-expanded);
padding: 8px 30px 8px 30px; padding: 8px 30px 8px 30px;
margin: 0; margin: 0;
text-align: center; text-align: center;

View File

@ -536,7 +536,7 @@ class HuiWeatherForecastCard extends LitElement implements LovelaceCard {
.state, .state,
.temp-attribute .temp { .temp-attribute .temp {
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
line-height: 1.2; line-height: var(--ha-line-height-condensed);
} }
.name, .name,

View File

@ -227,7 +227,7 @@ export class HuiCardOptions extends LitElement {
.position-badge { .position-badge {
display: block; display: block;
width: 24px; width: 24px;
line-height: 24px; line-height: var(--ha-line-height-normal);
box-sizing: border-box; box-sizing: border-box;
border-radius: 50%; border-radius: 50%;
font-weight: var(--ha-font-weight-medium); font-weight: var(--ha-font-weight-medium);

View File

@ -510,7 +510,7 @@ export class HuiBadgePicker extends LitElement {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-bold); font-weight: var(--ha-font-weight-bold);
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 20px; line-height: var(--ha-line-height-condensed);
padding: 12px 16px; padding: 12px 16px;
display: block; display: block;
text-align: center; text-align: center;

View File

@ -515,7 +515,7 @@ export class HuiCardPicker extends LitElement {
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
font-weight: var(--ha-font-weight-bold); font-weight: var(--ha-font-weight-bold);
letter-spacing: -0.012em; letter-spacing: -0.012em;
line-height: 20px; line-height: var(--ha-line-height-condensed);
padding: 12px 16px; padding: 12px 16px;
display: block; display: block;
text-align: center; text-align: center;

View File

@ -1033,7 +1033,7 @@ class HUIRoot extends LitElement {
} }
.main-title { .main-title {
margin: var(--margin-title); margin: var(--margin-title);
line-height: 20px; line-height: var(--ha-line-height-normal);
flex-grow: 1; flex-grow: 1;
} }
.action-items { .action-items {

Some files were not shown because too many files have changed in this diff Show More