This commit is contained in:
Denis Shulyaka
2020-06-20 22:25:21 +03:00
parent b242c6651a
commit 2cc9d70915
2 changed files with 42 additions and 51 deletions

View File

@@ -138,28 +138,23 @@ export class HaEntityToggle extends LitElement {
}, 2000);
}
static get styles(): CSSResult[] {
return [
css`
:host {
white-space: nowrap;
min-width: 38px;
}
ha-icon-button {
color: var(
--ha-icon-button-inactive-color,
var(--primary-text-color)
);
transition: color 0.5s;
}
ha-icon-button[state-active] {
color: var(--ha-icon-button-active-color, var(--primary-color));
}
ha-switch {
padding: 13px 5px;
}
`,
];
static get styles(): CSSResult {
return css`
:host {
white-space: nowrap;
min-width: 38px;
}
ha-icon-button {
color: var(--ha-icon-button-inactive-color, var(--primary-text-color));
transition: color 0.5s;
}
ha-icon-button[state-active] {
color: var(--ha-icon-button-active-color, var(--primary-color));
}
ha-switch {
padding: 13px 5px;
}
`;
}
}