Skip to content

Commit

Permalink
Merge pull request #455 from lufego/bug/442/products-list-enhancment
Browse files Browse the repository at this point in the history
Products list broken when img-lazy has an error
  • Loading branch information
lauraluiz authored Dec 1, 2017
2 parents 816e22b + 5b94332 commit f0ce857
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion input/assets/css/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ button {
}

.img-lazy-error {
@include aspect-ratio-in-element(3,4);
height: 40vh;
}

.img-lazy,
Expand Down
4 changes: 0 additions & 4 deletions input/assets/css/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
}
}

@mixin aspect-ratio-in-element($width, $height) {
padding-top: ($height / $width) * 100%;
}

@mixin truncate {
white-space: nowrap;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions input/assets/css/_pop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
}

#pop-product-list {

@media screen and (min-width: 767px) {
float: right;
width: 75%;
Expand Down
5 changes: 4 additions & 1 deletion input/assets/css/_shop-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
.pop-product-image {
position: relative;
overflow: hidden;
margin: 10px;
height: 40vh;

> img,
> picture {
max-width: 100%;
left: 0;
right: 0;
z-index: 10;
max-height: 100%;
padding: 10px;
margin: auto;
}
}

Expand Down

0 comments on commit f0ce857

Please sign in to comment.