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
| .cl-captcha {
| position: relative;
| width: 100%;
| overflow: hidden;
|
| &__input {
| position: absolute;
| left: -100%;
| height: 100%;
| width: 200%;
| opacity: 0;
| }
|
| &__code {
| display: flex;
| width: 100%;
| }
|
| &__item {
| display: flex;
| justify-content: center;
| align-items: center;
| flex: 1;
| border-radius: 10rpx;
| }
|
| &__value {
| font-size: 40rpx;
| font-weight: 500;
| }
|
| &__cursor {
| height: 40rpx;
| width: 4rpx;
| background-color: #000;
| animation: flash 1s infinite ease;
| }
|
| &.is-border {
| .cl-captcha__item {
| border: 2rpx solid $cl-color-primary;
| }
| }
|
| @keyframes flash {
| 0% {
| opacity: 0.2;
| }
|
| 50% {
| opacity: 0.5;
| }
|
| 100% {
| opacity: 0.2;
| }
| }
| }
|
|