Collapse media cards with no cover

This commit is contained in:
Paulus Schoutsen 2016-04-19 21:38:33 -07:00
parent a21547abfb
commit 49e5cdde46
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,11 @@
width: 100%;
/* removed .25% from 16:9 ratio to fix YT black bars */
padding-top: 56%;
transition: padding-top .8s;
}
.banner.no-cover:before {
padding-top: 91px;
}
.banner > .cover {

View File

@ -45,6 +45,7 @@ export default new Polymer({
return classnames({
banner: true,
'is-off': playerObj.isOff || playerObj.isIdle,
'no-cover': !playerObj.stateObj.attributes.entity_picture,
});
},