Add background and border-radius to themeable options for ha-card (#2700)

* Add background and border-radius to themeable options for ha-card

* Change variable names
This commit is contained in:
Thomas Lovén 2019-02-07 22:30:02 +01:00 committed by Paulus Schoutsen
parent d3bdbce0d0
commit 7a16961387

View File

@ -9,9 +9,9 @@ class HaCard extends PolymerElement {
:host { :host {
@apply --paper-material-elevation-1; @apply --paper-material-elevation-1;
display: block; display: block;
border-radius: 2px; border-radius: var(--ha-card-border-radius, 2px);
transition: all 0.3s ease-out; transition: all 0.3s ease-out;
background-color: var(--paper-card-background-color, white); background: var(--ha-card-background, var(--paper-card-background-color, white));
color: var(--primary-text-color); color: var(--primary-text-color);
} }
.header { .header {