Update line-height

This commit is contained in:
Wendelin 2025-04-28 17:33:26 +02:00
parent 335b876fec
commit fd279ea2b4
No known key found for this signature in database
123 changed files with 183 additions and 179 deletions

View File

@ -86,9 +86,9 @@ class HcLayout extends LitElement {
.card-header { .card-header {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
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-normal);
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: var(--ha-font-size-5xl); font-size: var(--ha-font-size-5xl);
line-height: 56px; line-height: var(--ha-line-height-normal);
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-semibold); font-weight: var(--ha-font-weight-semibold);
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

@ -169,7 +169,7 @@ class HassioHardwareDialog extends LitElement {
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

@ -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-normal);
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

@ -293,7 +293,7 @@ export class StateHistoryCharts extends LitElement {
.info { .info {
text-align: center; text-align: center;
line-height: 60px; line-height: var(--ha-line-height-expanded);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }

View File

@ -634,7 +634,7 @@ export class StatisticsChart extends LitElement {
} }
.info { .info {
text-align: center; text-align: center;
line-height: 60px; line-height: var(--ha-line-height-expanded);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
`; `;

View File

@ -932,7 +932,7 @@ export class HaDataTable extends LitElement {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
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;
@ -1052,7 +1052,7 @@ export class HaDataTable extends LitElement {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
line-height: 1.25rem; line-height: var(--ha-line-height-normal);
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;
@ -1174,7 +1174,7 @@ export class HaDataTable extends LitElement {
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
line-height: 1.375rem; line-height: var(--ha-line-height-normal);
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
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-normal);
} }
.time-ago, .time-ago,

View File

@ -98,7 +98,7 @@ export class HaBadge extends LitElement {
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
line-height: 10px; line-height: var(--ha-line-height-condensed);
letter-spacing: 0.1px; letter-spacing: 0.1px;
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
@ -106,7 +106,7 @@ export class HaBadge extends LitElement {
font-size: var(--ha-font-size-badge, var(--ha-font-size-s)); font-size: var(--ha-font-size-badge, var(--ha-font-size-s));
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
line-height: 16px; 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);
} }

View File

@ -406,7 +406,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-normal);
} }
`; `;
} }

View File

@ -59,7 +59,7 @@ export class HaBigNumber extends LitElement {
css` css`
:host { :host {
font-size: 57px; font-size: 57px;
line-height: 1.12; line-height: var(--ha-line-height-condensed);
letter-spacing: -0.25px; letter-spacing: -0.25px;
} }
.value { .value {
@ -87,12 +87,12 @@ export class HaBigNumber extends LitElement {
} }
.value .decimal { .value .decimal {
font-size: 0.42em; font-size: 0.42em;
line-height: 1.33; line-height: var(--ha-line-height-condensed);
min-height: 1.33em; min-height: 1.33em;
} }
.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

@ -41,9 +41,9 @@ export class HaCard extends LitElement {
:host ::slotted(.card-header) { :host ::slotted(.card-header) {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
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, 24px); 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

@ -18,12 +18,12 @@ export class HaComboBoxItem extends HaMdListItem {
border-top: 1px solid var(--divider-color); border-top: 1px solid var(--divider-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

@ -180,7 +180,7 @@ export class HaControlSelectMenu extends SelectBase {
--mdc-icon-size: 20px; --mdc-icon-size: 20px;
--ha-ripple-color: var(--secondary-text-color); --ha-ripple-color: var(--secondary-text-color);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 1.4; line-height: var(--ha-line-height-condensed);
width: auto; width: auto;
color: var(--primary-text-color); color: var(--primary-text-color);
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;

View File

@ -54,12 +54,12 @@ 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-normal);
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
} }
.header-subtitle { .header-subtitle {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-condensed);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
@media all and (min-width: 450px) and (min-height: 500px) { @media all and (min-width: 450px) and (min-height: 500px) {

View File

@ -211,7 +211,7 @@ export class HaFilterBlueprints extends LitElement {
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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

@ -80,7 +80,7 @@ class HaLabelBadge extends LitElement {
/* Make the label as wide as container+border. (parent_borderwidth / font-size) */ /* Make the label as wide as container+border. (parent_borderwidth / font-size) */
left: -0.2em; left: -0.2em;
right: -0.2em; right: -0.2em;
line-height: 1em; line-height: var(--ha-line-height-condensed);
font-size: 0.5em; font-size: 0.5em;
} }
.label-badge .label span { .label-badge .label span {

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-semibold); font-weight: var(--ha-font-weight-semibold);
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

@ -73,7 +73,7 @@ export class HaMarkdown extends LitElement {
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);
} }
h1, h1,

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,7 +156,7 @@ 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-normal);
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -165,7 +165,7 @@ export class HaSelectBox extends LitElement {
color: var(--secondary-text-color); color: var(--secondary-text-color);
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);
} }
img { img {
position: relative; position: relative;

View File

@ -74,7 +74,7 @@ export class HaSettingsRow extends LitElement {
--mdc-typography-body2-font-weight, --mdc-typography-body2-font-weight,
var(--ha-font-weight-normal) var(--ha-font-weight-normal)
); );
line-height: normal; line-height: var(--ha-line-height-normal);
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
.body[two-line] { .body[two-line] {

View File

@ -963,7 +963,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
min-width: 8px; min-width: 8px;
border-radius: 10px; border-radius: 10px;
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
line-height: normal; line-height: var(--ha-line-height-normal);
background-color: var(--accent-color); background-color: var(--accent-color);
padding: 2px 6px; padding: 2px 6px;
color: var(--text-accent-color, var(--text-primary-color)); color: var(--text-accent-color, var(--text-primary-color));
@ -975,7 +975,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

@ -960,7 +960,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-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; 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);
} }
.secondary { .secondary {
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
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: var(--ha-font-size-5xl); font-size: var(--ha-font-size-5xl);
line-height: 44px; line-height: var(--ha-line-height-condensed);
} }
.last-changed { .last-changed {
font-style: normal; font-style: normal;
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
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-2xl); font-size: var(--ha-font-size-2xl);
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
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-2xl); font-size: var(--ha-font-size-2xl);
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
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

@ -177,7 +177,7 @@ class MoreInfoLock extends LitElement {
--control-button-background-color: var(--warning-color); --control-button-background-color: var(--warning-color);
} }
.open-done { .open-done {
line-height: 60px; line-height: var(--ha-line-height-expanded);
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;

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-2xl); font-size: var(--ha-font-size-2xl);
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
line-height: 28px; line-height: var(--ha-line-height-condensed);
direction: ltr; direction: ltr;
} }
`, `,

View File

@ -519,12 +519,12 @@ 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 {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 1; line-height: var(--ha-line-height-condensed);
} }
.name-state { .name-state {

View File

@ -680,13 +680,13 @@ 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 {
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: 16px; line-height: var(--ha-line-height-condensed);
--mdc-icon-size: 16px; --mdc-icon-size: 16px;
padding: 4px; padding: 4px;
margin: -4px; margin: -4px;

View File

@ -469,7 +469,7 @@ class DialogRestart extends LitElement {
.section { .section {
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-normal);
margin: 0; margin: 0;
} }
`, `,

View File

@ -273,7 +273,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

@ -791,7 +791,7 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
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; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 4px; padding: 0px 4px;
color: var(--text-primary-color); color: var(--text-primary-color);
@ -825,7 +825,7 @@ export class HaTabsSubpageDataTable extends KeyboardShortcutMixin(LitElement) {
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xs); font-size: var(--ha-font-size-xs);
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-normal);
} }
ha-textfield { ha-textfield {

View File

@ -65,7 +65,7 @@ class OnboardingRestoreBackupNoCloudBackup extends LitElement {
} }
.description { .description {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
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: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 1.5rem; line-height: var(--ha-line-height-normal);
margin-top: 24px; margin-top: 24px;
margin-bottom: 16px; margin-bottom: 16px;
} }

View File

@ -7,7 +7,7 @@ export const onBoardingStyles = css`
h1 { h1 {
font-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
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: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
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

@ -235,7 +235,7 @@ class DialogCalendarEventDetail extends LitElement {
haStyleDialog, haStyleDialog,
css` css`
state-info { state-info {
line-height: 40px; line-height: var(--ha-line-height-expanded);
} }
ha-svg-icon { ha-svg-icon {
width: 40px; width: 40px;

View File

@ -589,7 +589,7 @@ class DialogCalendarEventEditor extends LitElement {
} }
} }
state-info { state-info {
line-height: 40px; line-height: var(--ha-line-height-expanded);
} }
ha-alert { ha-alert {
display: block; display: block;

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

@ -318,7 +318,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

@ -285,7 +285,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-normal);
} }
.dot { .dot {
display: block; display: block;

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-normal);
} }
`; `;
} }

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-normal);
} }
`; `;
} }

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-2xl); font-size: var(--ha-font-size-2xl);
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-normal);
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-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-normal);
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-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-normal);
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-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-normal);
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-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-normal);
text-align: center; text-align: center;
} }
.encryption-key ha-icon-button { .encryption-key ha-icon-button {

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-condensed);
font-family: var(--ha-font-family-code); font-family: var(--ha-font-family-code);
} }
code { code {

View File

@ -299,7 +299,7 @@ class HaConfigInfo extends LitElement {
.header p { .header p {
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: 28px; line-height: var(--ha-line-height-condensed);
text-align: center; text-align: center;
margin: 24px; margin: 24px;
} }

View File

@ -1067,7 +1067,7 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
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; line-height: var(--ha-line-height-normal);
text-align: center; text-align: center;
padding: 0px 4px; padding: 0px 4px;
color: var(--text-primary-color); color: var(--text-primary-color);

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

@ -776,9 +776,9 @@ class ErrorLogCard extends LitElement {
.card-header { .card-header {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
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, 24px); 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

@ -266,9 +266,9 @@ export class SystemLogCard extends LitElement {
.card-header { .card-header {
color: var(--ha-card-header-color, var(--primary-text-color)); color: var(--ha-card-header-color, var(--primary-text-color));
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, 24px); 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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-xl); font-size: var(--ha-font-size-xl);
line-height: 28px; line-height: var(--ha-line-height-normal);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
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-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
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-weight: var(--ha-font-weight-normal); font-weight: var(--ha-font-weight-normal);
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 20px; line-height: var(--ha-line-height-normal);
margin: 0; margin: 0;
} }
.more { .more {

View File

@ -207,7 +207,7 @@ class DialogExposeEntity extends LitElement {
.subtitle { .subtitle {
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: normal; line-height: var(--ha-line-height-normal);
} }
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-normal);
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

@ -414,7 +414,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

@ -128,7 +128,7 @@ class HuiLockOpenDoorCardFeature
} }
.open-done { .open-done {
font-size: var(--ha-font-size-m); font-size: var(--ha-font-size-m);
line-height: 14px; line-height: var(--ha-line-height-condensed);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

View File

@ -873,7 +873,7 @@ class HuiEnergyDistrubutionCard
justify-content: center; justify-content: center;
text-align: center; text-align: center;
font-size: var(--ha-font-size-s); font-size: var(--ha-font-size-s);
line-height: 12px; line-height: var(--ha-line-height-condensed);
position: relative; position: relative;
text-decoration: none; text-decoration: none;
color: var(--primary-text-color); color: var(--primary-text-color);

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, 24px); font-size: var(--ha-card-header-font-size, 24px);
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 {
@ -233,7 +233,7 @@ export class HuiClockCard extends LitElement implements LovelaceCard {
font-size: var(--ha-font-size-3xl); font-size: var(--ha-font-size-3xl);
font-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
line-height: 0.8; line-height: var(--ha-line-height-condensed);
direction: ltr; direction: ltr;
} }
@ -271,13 +271,13 @@ export class HuiClockCard extends LitElement implements LovelaceCard {
.time-parts .time-part.second { .time-parts .time-part.second {
grid-area: second; grid-area: second;
line-height: 0.9; line-height: var(--ha-line-height-condensed);
opacity: 0.4; opacity: 0.4;
} }
.time-parts .time-part.am-pm { .time-parts .time-part.am-pm {
grid-area: am-pm; grid-area: am-pm;
line-height: 0.9; line-height: var(--ha-line-height-condensed);
opacity: 0.6; opacity: 0.6;
} }

View File

@ -281,7 +281,7 @@ export class HuiEntityCard 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-weight: var(--ha-font-weight-semibold); font-weight: var(--ha-font-weight-semibold);
font-size: var(--ha-font-size-l); font-size: var(--ha-font-size-l);
overflow: hidden; overflow: hidden;
@ -292,7 +292,7 @@ export class HuiEntityCard extends LitElement implements LovelaceCard {
.icon { .icon {
color: var(--state-icon-color); color: var(--state-icon-color);
--state-inactive-color: var(--state-icon-color); --state-inactive-color: var(--state-icon-color);
line-height: 40px; line-height: var(--ha-line-height-expanded);
} }
.info { .info {
@ -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-normal);
} }
.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-semibold) var(--ha-font-weight-semibold)
); );
line-height: var(--ha-heading-card-subtitle-line-height, 20px); line-height: var(
--ha-heading-card-subtitle-line-height,
var(--ha-line-height-normal)
);
} }
.badges { .badges {
display: flex; display: flex;

View File

@ -319,7 +319,7 @@ export class HuiHistoryGraphCard extends LitElement implements LovelaceCard {
} }
.card-header ha-icon-next { .card-header ha-icon-next {
--mdc-icon-button-size: 24px; --mdc-icon-button-size: 24px;
line-height: 24px; line-height: var(--ha-line-height-normal);
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.content { .content {

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