mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 20:36:35 +00:00
Media_player background only shown if there is no album art. (#151)
This commit is contained in:
parent
ab187a7a84
commit
bba2bfabd9
14
src/cards/ha-media_player-card.html
Executable file → Normal file
14
src/cards/ha-media_player-card.html
Executable file → Normal file
@ -19,12 +19,7 @@
|
|||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background-color: white;
|
||||||
background-position: center center;
|
|
||||||
background-image: url(/static/images/card_media_player_bg.png);
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-color: var(--primary-color);
|
|
||||||
|
|
||||||
border-top-left-radius: 2px;
|
border-top-left-radius: 2px;
|
||||||
border-top-right-radius: 2px;
|
border-top-right-radius: 2px;
|
||||||
}
|
}
|
||||||
@ -38,6 +33,13 @@
|
|||||||
transition: padding-top .8s;
|
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 {
|
.banner.content-type-music:before {
|
||||||
padding-top: 100%;
|
padding-top: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user