apply suggestions from code review

This commit is contained in:
Denis Shulyaka 2020-06-18 16:50:49 +03:00
parent 372ecc6557
commit 342f22e6a1

View File

@ -27,35 +27,36 @@ class HaEntityHumidifier extends HaEntityToggle {
`; `;
} }
static get styles(): CSSResult { static get styles(): CSSResult[] {
return css` return [
:host { super.styles,
display: flex; css`
flex-direction: row; :host {
justify-content: center; display: flex;
align-items: center; flex-direction: row;
} justify-content: center;
align-items: center;
}
.target { .target {
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.current { .current {
color: var(--secondary-text-color); color: var(--secondary-text-color);
} }
.state-label { .state-label {
font-weight: bold; font-weight: bold;
text-transform: capitalize; text-transform: capitalize;
} }
.unit { .unit {
display: inline-block; display: inline-block;
direction: ltr; direction: ltr;
} }
`,
${super.styles} ];
`;
} }
} }