Skip to content

Commit

Permalink
change images aspect-ratio: to 5 / 4
Browse files Browse the repository at this point in the history
  • Loading branch information
goldipl committed Jul 12, 2024
1 parent a798a9d commit 78dcaa2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sass/home/_sale_section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,13 @@
height: auto;
border-radius: 20px;
margin-bottom: 13px;
aspect-ratio: 5 / 4;
img {
width: 100%;
height: 100%;
border-radius: 20px;
object-fit: cover;
aspect-ratio: 4 / 5;
aspect-ratio: 5 / 4;
}
}
&__content {
Expand Down
4 changes: 3 additions & 1 deletion sass/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,15 @@ body {
height: auto;
border-radius: 20px;
margin-bottom: 13px;
aspect-ratio: 5/4;
}
.main-2-0 #sale #sale-slider .swiper-wrapper .swiper-slide__img img {
width: 100%;
height: 100%;
border-radius: 20px;
-o-object-fit: cover;
object-fit: cover;
aspect-ratio: 4/5;
aspect-ratio: 5/4;
}
.main-2-0 #sale #sale-slider .swiper-wrapper .swiper-slide__content-top {
margin-bottom: 8px;
Expand Down
Loading

0 comments on commit 78dcaa2

Please sign in to comment.