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
79 lines (67 loc) · 1.56 KB
/
index.less
File metadata and controls
79 lines (67 loc) · 1.56 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@import '../style/var';
.van-password-input {
position: relative;
margin: @password-input-margin;
user-select: none;
&__info,
&__error-info {
margin-top: @padding-md;
font-size: @password-input-info-font-size;
text-align: center;
}
&__info {
color: @password-input-info-color;
}
&__error-info {
color: @password-input-error-info-color;
}
&__security {
display: flex;
width: 100%;
height: @password-input-height;
&::after {
border-radius: @password-input-border-radius;
}
li {
position: relative;
flex: 1;
height: 100%;
font-size: @password-input-font-size;
line-height: @password-input-height;
text-align: center;
background-color: @password-input-background-color;
}
i {
position: absolute;
top: 50%;
left: 50%;
width: @password-input-dot-size;
height: @password-input-dot-size;
margin: -(@password-input-dot-size / 2) 0 0 -(@password-input-dot-size / 2);
background-color: @password-input-dot-color;
border-radius: 100%;
visibility: hidden;
}
}
&__cursor {
position: absolute;
top: 50%;
left: 50%;
width: @number-keyboard-cursor-width;
height: @number-keyboard-cursor-height;
background-color: @number-keyboard-cursor-color;
transform: translate(-50%, -50%);
animation: @number-keyboard-cursor-animation-duration van-cursor-flicker infinite;
}
}
@keyframes van-cursor-flicker {
from {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}