Skip to content

Commit

Permalink
CSS away the header instead
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Feb 13, 2019
1 parent a7f2901 commit 2e7ca80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/ha-card.ts
Expand Up @@ -25,7 +25,7 @@ class HaCard extends LitElement {
display: block;
transition: all 0.3s ease-out;
}
.header {
.header:not(:empty) {
-webkit-font-smoothing: antialiased;
font-family: Roboto, Noto, sans-serif;
font-size: 24px;
Expand All @@ -41,9 +41,7 @@ class HaCard extends LitElement {

protected render(): TemplateResult {
return html`
${this.header?
html`<div class="header">${this.header}</div>`:
null}
<div class="header">${this.header}</div>
<slot></slot>
`;
}
Expand Down

0 comments on commit 2e7ca80

Please sign in to comment.