forked from youzan/vant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.less
More file actions
45 lines (38 loc) · 705 Bytes
/
index.less
File metadata and controls
45 lines (38 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@import '../style/var';
.van-image-preview {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
&__swipe {
height: 100%;
}
&__cover {
position: absolute;
top: 0;
left: 0;
}
&__image {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition-property: transform;
.van-image__loading {
background-color: transparent;
}
}
&__index {
position: absolute;
top: 10px;
left: 50%;
color: @image-preview-index-text-color;
font-size: @image-preview-index-font-size;
transform: translate(-50%, 0);
}
&__overlay {
background-color: @image-preview-overlay-background-color;
}
}