Skip to content

Commit

Permalink
fix(item.cover): use background-size:cover to enlarge the picture ins…
Browse files Browse the repository at this point in the history
…ide the div
  • Loading branch information
davinkevin committed Jun 17, 2015
1 parent 7c9295d commit 67a1285
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 53 deletions.
7 changes: 1 addition & 6 deletions src/main/resources/static/app/css/podcastserver.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
border-top-right-radius: 5px;
max-height: 219px;
width: 100%;
background-size: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
padding-left: 0 !important;
Expand All @@ -55,11 +55,6 @@
/*background-position : top center;*/
}
}
@media screen and (max-width: 767px) {
.item-search-list .item-in-list .cover {
background-size: 120%;
}
}
.item-search-list .item-in-list img {
height: 215px;
border-top-left-radius: 5px;
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/static/app/css/podcastserver.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
.item-search-list .search-button{margin-top:20px}
.item-search-list [class^=col-]{padding-right:8px;padding-left:8px}
.item-search-list .item-in-list{padding-top:15px;padding-bottom:0}
.item-search-list .item-in-list .cover{display:flex;justify-content:center;height:215px;border-top-left-radius:5px;border-top-right-radius:5px;max-height:219px;width:100%;background-size:100%;background-repeat:no-repeat;background-position:center center;padding-left:0!important;padding-right:0!important}
.item-search-list .item-in-list .cover{display:flex;justify-content:center;height:215px;border-top-left-radius:5px;border-top-right-radius:5px;max-height:219px;width:100%;background-size:cover;background-repeat:no-repeat;background-position:center center;padding-left:0!important;padding-right:0!important}
@media screen and (min-width:1200px){.item-search-list .item-in-list .cover{height:165px}}
@media screen and (max-width:767px){.item-search-list .item-in-list .cover{background-size:120%}}
.item-search-list .item-in-list img{height:215px;border-top-left-radius:5px;border-top-right-radius:5px;max-height:219px;width:100%;object-fit:cover}
@media screen and (min-width:1200px){.item-search-list .item-in-list img{height:165px}}
.item-search-list .item-in-list .more-button{z-index:100;position:absolute;top:0;right:0}
Expand Down
Loading

0 comments on commit 67a1285

Please sign in to comment.