You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
2.2 KiB
117 lines
2.2 KiB
.s-swiper {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
|
|
&-item {
|
|
display: flex;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
&-item__wrap {
|
|
position: relative;
|
|
overflow: hidden;
|
|
flex: 1;
|
|
box-sizing: border-box;
|
|
transform-origin: center center;
|
|
background: $swiper-background;
|
|
}
|
|
|
|
&::v-deep &-item__image {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
&--3d {
|
|
.s-swiper-item__wrap {
|
|
transition: all $swiper-animation-duration ease-in 0s;
|
|
}
|
|
|
|
&.s-swiper--horizontal .s-swiper-item__wrap {
|
|
transform: scale(.95, .9);
|
|
}
|
|
|
|
&.s-swiper--vertical .s-swiper-item__wrap {
|
|
transform: scale(.9, .95);
|
|
}
|
|
|
|
.s-swiper-item--active .s-swiper-item__wrap {
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
&-indicators {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
|
|
&--horizontal {
|
|
right: 0;
|
|
bottom: 24rpx;
|
|
left: 0;
|
|
|
|
.s-swiper-indicator:nth-child(n+2) {
|
|
margin-left: $swiper-indicator-gutter;
|
|
}
|
|
}
|
|
|
|
&--vertical {
|
|
top: 0;
|
|
right: 24rpx;
|
|
bottom: 0;
|
|
flex-direction: column;
|
|
|
|
.s-swiper-indicator:nth-child(n+2) {
|
|
margin-top: $swiper-indicator-gutter;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-indicator {
|
|
transition: all $swiper-animation-duration ease-in 0s;
|
|
background: $swiper-indicator-color;
|
|
|
|
&--active {
|
|
background: $swiper-indicator-active-color;
|
|
}
|
|
}
|
|
|
|
&-indicators--default &-indicator {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
border-radius: $border-radius-max;
|
|
}
|
|
|
|
&-indicators--round {
|
|
.s-swiper-indicator {
|
|
width: 12rpx;
|
|
height: 12rpx;
|
|
border-radius: $border-radius-max;
|
|
}
|
|
|
|
&.s-swiper-indicators--horizontal .s-swiper-indicator--active {
|
|
width: 28rpx;
|
|
}
|
|
|
|
&.s-swiper-indicators--vertical .s-swiper-indicator--active {
|
|
height: 28rpx;
|
|
}
|
|
}
|
|
|
|
&-indicators--rect {
|
|
&.s-swiper-indicators--horizontal .s-swiper-indicator {
|
|
width: 24rpx;
|
|
height: 4rpx;
|
|
}
|
|
|
|
&.s-swiper-indicators--vertical .s-swiper-indicator {
|
|
width: 4rpx;
|
|
height: 24rpx;
|
|
}
|
|
}
|
|
}
|