mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
swipe
This commit is contained in:
@@ -25,3 +25,4 @@
|
||||
@import './actionsheet.css';
|
||||
@import './quantity.css';
|
||||
@import './progress.css';
|
||||
@import './swipe.css';
|
||||
|
24
packages/zanui-css/src/swipe.css
Normal file
24
packages/zanui-css/src/swipe.css
Normal file
@@ -0,0 +1,24 @@
|
||||
@component-namespace zan {
|
||||
@b swipe {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@b swipe-item {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user