Media_player background only shown if there is no album art. (#151)

This commit is contained in:
Bjarni Ivarsson 2016-11-02 04:50:06 +01:00 committed by Paulus Schoutsen
parent ab187a7a84
commit bba2bfabd9

14
src/cards/ha-media_player-card.html Executable file → Normal file
View File

@ -19,12 +19,7 @@
.banner {
position: relative;
background-position: center center;
background-image: url(/static/images/card_media_player_bg.png);
background-repeat: no-repeat;
background-color: var(--primary-color);
background-color: white;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
@ -38,6 +33,13 @@
transition: padding-top .8s;
}
.banner.no-cover {
background-position: center center;
background-image: url(/static/images/card_media_player_bg.png);
background-repeat: no-repeat;
background-color: var(--primary-color);
}
.banner.content-type-music:before {
padding-top: 100%;
}