mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Revert to 372ecc6
This commit is contained in:
parent
b242c6651a
commit
2cc9d70915
@ -27,10 +27,8 @@ class HaEntityHumidifier extends HaEntityToggle {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult {
|
||||||
const toggle_styles = super.styles;
|
return css`
|
||||||
const humidifier_styles = [
|
|
||||||
css`
|
|
||||||
:host {
|
:host {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@ -55,11 +53,9 @@ class HaEntityHumidifier extends HaEntityToggle {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
`,
|
|
||||||
];
|
${super.styles}
|
||||||
return toggle_styles
|
`;
|
||||||
? toggle_styles.concat(humidifier_styles)
|
|
||||||
: humidifier_styles;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,18 +138,14 @@ export class HaEntityToggle extends LitElement {
|
|||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles(): CSSResult[] {
|
static get styles(): CSSResult {
|
||||||
return [
|
return css`
|
||||||
css`
|
|
||||||
:host {
|
:host {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
min-width: 38px;
|
min-width: 38px;
|
||||||
}
|
}
|
||||||
ha-icon-button {
|
ha-icon-button {
|
||||||
color: var(
|
color: var(--ha-icon-button-inactive-color, var(--primary-text-color));
|
||||||
--ha-icon-button-inactive-color,
|
|
||||||
var(--primary-text-color)
|
|
||||||
);
|
|
||||||
transition: color 0.5s;
|
transition: color 0.5s;
|
||||||
}
|
}
|
||||||
ha-icon-button[state-active] {
|
ha-icon-button[state-active] {
|
||||||
@ -158,8 +154,7 @@ export class HaEntityToggle extends LitElement {
|
|||||||
ha-switch {
|
ha-switch {
|
||||||
padding: 13px 5px;
|
padding: 13px 5px;
|
||||||
}
|
}
|
||||||
`,
|
`;
|
||||||
];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user