mirror of
https://github.com/hanzoai/gallery.git
synced 2026-11-02 15:19:28 +00:00
77 lines
1.2 KiB
SCSS
77 lines
1.2 KiB
SCSS
.swiper {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.swiper-slide {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.swiper-slide img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.swiper-slide {
|
|
width: 50%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.mySwiper2 {
|
|
height: 60vh;
|
|
width: 100%;
|
|
cursor: grab;
|
|
|
|
@include breaks (1120px) {
|
|
height: 50vh;
|
|
|
|
@include breaks (870px) {
|
|
height: 40vh;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mySwiper {
|
|
height: 20vh;
|
|
box-sizing: border-box;
|
|
padding: 20px 0;
|
|
cursor: pointer;
|
|
|
|
@include breaks (1120px) {
|
|
height: 150px;
|
|
|
|
@include breaks (390px) {
|
|
height: 120px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mySwiper .swiper-slide {
|
|
width: 25%;
|
|
height: 100%;
|
|
filter: grayscale(100%);
|
|
}
|
|
|
|
.mySwiper .swiper-slide-thumb-active {
|
|
filter: grayscale(0%);
|
|
}
|
|
|
|
.swiper-slide img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.slider {
|
|
width: 70%;
|
|
|
|
@include breaks (1120px) {
|
|
width: 100%;
|
|
}
|
|
} |