mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
57 lines
884 B
CSS
57 lines
884 B
CSS
@import './common/var.css';
|
|
|
|
@component-namespace van {
|
|
@b swipe {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
@e indicators {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
@e indicator {
|
|
width: 5px;
|
|
height: 5px;
|
|
display: inline-block;
|
|
border-radius: 100%;
|
|
background: #999;
|
|
opacity: .8;
|
|
margin: 0 3px;
|
|
z-index: 1;
|
|
|
|
@m active {
|
|
background: $c-orange;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@e items {
|
|
position: relative;
|
|
overflow: hidden;
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
@b swipe-item {
|
|
display: none;
|
|
height: 100%;
|
|
width: 100%;
|
|
text-align: center;
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
&:first-child {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|