mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Update rem to use vars
This commit is contained in:
parent
4750a59719
commit
514b6568e5
@ -428,7 +428,7 @@ class HassioAddonConfig extends LitElement {
|
||||
.header h2 {
|
||||
color: var(--ha-card-header-color, var(--primary-text-color));
|
||||
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;
|
||||
line-height: 48px;
|
||||
padding: 12px 16px 16px;
|
||||
|
@ -101,7 +101,7 @@ export class HaAuthFlow extends LitElement {
|
||||
a.forgot-password {
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
}
|
||||
.space-between {
|
||||
display: flex;
|
||||
|
@ -931,7 +931,7 @@ export class HaDataTable extends LitElement {
|
||||
font-family: Roboto, sans-serif;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
line-height: 1.25rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.0178571429em;
|
||||
@ -1051,7 +1051,7 @@ export class HaDataTable extends LitElement {
|
||||
font-family: Roboto, sans-serif;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
line-height: 1.25rem;
|
||||
font-weight: 400;
|
||||
letter-spacing: 0.0178571429em;
|
||||
@ -1173,7 +1173,7 @@ export class HaDataTable extends LitElement {
|
||||
font-family: Roboto, sans-serif;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
line-height: 1.375rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.0071428571em;
|
||||
|
@ -86,7 +86,7 @@ export class HaDialog extends DialogBase {
|
||||
);
|
||||
--mdc-dialog-box-shadow: var(--dialog-box-shadow, none);
|
||||
--mdc-typography-headline6-font-weight: 400;
|
||||
--mdc-typography-headline6-font-size: 1.574rem;
|
||||
--mdc-typography-headline6-font-size: var(--ha-font-size-xl);
|
||||
}
|
||||
.mdc-dialog__actions {
|
||||
justify-content: var(--justify-action-buttons, flex-end);
|
||||
|
@ -70,7 +70,7 @@ export class HaFormBoolean extends LitElement implements HaFormElement {
|
||||
padding-top: 4px;
|
||||
box-sizing: border-box;
|
||||
color: var(--secondary-text-color);
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
||||
}
|
||||
`;
|
||||
|
@ -12,7 +12,7 @@ class InputHelperText extends LitElement {
|
||||
:host {
|
||||
display: block;
|
||||
color: var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6));
|
||||
font-size: 0.75rem;
|
||||
font-size: var(--ha-font-size-xs);
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
padding-inline-start: 16px;
|
||||
|
@ -61,7 +61,7 @@ export class HaBooleanSelector extends LitElement {
|
||||
padding-top: 4px;
|
||||
box-sizing: border-box;
|
||||
color: var(--secondary-text-color);
|
||||
font-size: 0.875rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
font-weight: var(--mdc-typography-body2-font-weight, 400);
|
||||
}
|
||||
`;
|
||||
|
@ -64,7 +64,7 @@ class OnboardingRestoreBackupNoCloudBackup extends LitElement {
|
||||
text-align: left;
|
||||
}
|
||||
.description {
|
||||
font-size: 1rem;
|
||||
font-size: var(--ha-font-size-m);
|
||||
line-height: 1.5rem;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 32px;
|
||||
|
@ -307,7 +307,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
|
||||
text-align: left;
|
||||
}
|
||||
.description {
|
||||
font-size: 1rem;
|
||||
font-size: var(--ha-font-size-m);
|
||||
line-height: 1.5rem;
|
||||
margin-top: 24px;
|
||||
margin-bottom: 16px;
|
||||
|
@ -15,7 +15,7 @@ export const onBoardingStyles = css`
|
||||
display: block;
|
||||
}
|
||||
p {
|
||||
font-size: 1rem;
|
||||
font-size: var(--ha-font-size-m);
|
||||
line-height: 1.5rem;
|
||||
margin-top: 0;
|
||||
margin-bottom: 32px;
|
||||
|
@ -912,11 +912,11 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
height: 48px;
|
||||
}
|
||||
.network-status div.heading .details {
|
||||
font-size: 1.5rem;
|
||||
font-size: var(--ha-font-size-xl);
|
||||
}
|
||||
|
||||
.network-status small {
|
||||
font-size: 1rem;
|
||||
font-size: var(--ha-font-size-m);
|
||||
}
|
||||
|
||||
ha-list-item {
|
||||
|
@ -206,7 +206,7 @@ class DialogExposeEntity extends LitElement {
|
||||
}
|
||||
.subtitle {
|
||||
color: var(--secondary-text-color);
|
||||
font-size: 1rem;
|
||||
font-size: var(--ha-font-size-m);
|
||||
line-height: normal;
|
||||
}
|
||||
lit-virtualizer {
|
||||
|
@ -324,7 +324,7 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
|
||||
}
|
||||
|
||||
.state {
|
||||
font-size: 0.9rem;
|
||||
font-size: var(--ha-font-size-s);
|
||||
color: var(--secondary-text-color);
|
||||
}
|
||||
`,
|
||||
|
@ -231,22 +231,22 @@ export class HuiClockCard extends LitElement implements LovelaceCard {
|
||||
"hour minute second"
|
||||
"hour minute am-pm";
|
||||
|
||||
font-size: 2rem;
|
||||
font-size: var(--ha-font-size-3xl);
|
||||
font-weight: 500;
|
||||
line-height: 0.8;
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.time-title + .time-parts {
|
||||
font-size: 1.5rem;
|
||||
font-size: var(--ha-font-size-xl);
|
||||
}
|
||||
|
||||
.time-wrapper.size-medium .time-parts {
|
||||
font-size: 3rem;
|
||||
font-size: var(--ha-font-size-5xl);
|
||||
}
|
||||
|
||||
.time-wrapper.size-large .time-parts {
|
||||
font-size: 4rem;
|
||||
font-size: 56px;
|
||||
}
|
||||
|
||||
.time-wrapper.size-medium .time-parts .time-part.second,
|
||||
|
@ -174,7 +174,7 @@ export class HuiHeadingCard extends LitElement implements LovelaceCard {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--ha-heading-card-title-color, var(--primary-text-color));
|
||||
font-size: var(--ha-heading-card-title-font-size, 16px);
|
||||
font-size: var(--ha-heading-card-title-font-size, var(--ha-font-size-l));
|
||||
font-weight: var(--ha-heading-card-title-font-weight, 400);
|
||||
line-height: var(--ha-heading-card-title-line-height, 24px);
|
||||
letter-spacing: 0.1px;
|
||||
|
@ -254,8 +254,8 @@ export class HuiLightCard extends LitElement implements LovelaceCard {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
--name-font-size: 1.2rem;
|
||||
--brightness-font-size: 1.2rem;
|
||||
--name-font-size: var(--ha-font-size-l);
|
||||
--brightness-font-size: var(--ha-font-size-l);
|
||||
}
|
||||
|
||||
.more-info {
|
||||
|
Loading…
x
Reference in New Issue
Block a user