mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-12 20:06:33 +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 {
|
||||
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%;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user