cshenfu
2023-06-14 de93aa62c83d6afb9f70cd5a22838375db0a8cbc
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
.flex-auto {
  flex: auto;
}
.bg-transparent {
  background-color: rgba(0,0,0,0.9);
  transition-duration: 0.35s;
}
.l-clipper {
  width: 100vw;
  height: calc(100vh - var(--window-top));
  background-color: rgba(0,0,0,0.9);
  position: fixed;
  top: var(--window-top);
  left: 0;
  z-index: 1;
}
.l-clipper-mask {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.l-clipper__content {
  pointer-events: none;
  position: absolute;
  border: 1rpx solid rgba(255,255,255,0.3);
  box-sizing: border-box;
  box-shadow: rgba(0,0,0,0.5) 0 0 0 80vh;
  background: transparent;
}
.l-clipper__content::before,
.l-clipper__content::after {
  content: '';
  position: absolute;
  border: 1rpx dashed rgba(255,255,255,0.3);
}
.l-clipper__content::before {
  width: 100%;
  top: 33.33%;
  height: 33.33%;
  border-left: none;
  border-right: none;
}
.l-clipper__content::after {
  width: 33.33%;
  left: 33.33%;
  height: 100%;
  border-top: none;
  border-bottom: none;
}
.l-clipper__edge {
  position: absolute;
  width: 34rpx;
  height: 34rpx;
  border: 6rpx solid #fff;
  pointer-events: auto;
}
.l-clipper__edge::before {
  content: '';
  position: absolute;
  width: 40rpx;
  height: 40rpx;
  background-color: transparent;
}
.l-clipper__edge:nth-child(1) {
  left: -6rpx;
  top: -6rpx;
  border-bottom-width: 0 !important;
  border-right-width: 0 !important;
}
.l-clipper__edge:nth-child(1):before {
  top: -50%;
  left: -50%;
}
.l-clipper__edge:nth-child(2) {
  right: -6rpx;
  top: -6rpx;
  border-bottom-width: 0 !important;
  border-left-width: 0 !important;
}
.l-clipper__edge:nth-child(2):before {
  top: -50%;
  left: 50%;
}
.l-clipper__edge:nth-child(3) {
  left: -6rpx;
  bottom: -6rpx;
  border-top-width: 0 !important;
  border-right-width: 0 !important;
}
.l-clipper__edge:nth-child(3):before {
  bottom: -50%;
  left: -50%;
}
.l-clipper__edge:nth-child(4) {
  right: -6rpx;
  bottom: -6rpx;
  border-top-width: 0 !important;
  border-left-width: 0 !important;
}
.l-clipper__edge:nth-child(4):before {
  bottom: -50%;
  left: 50%;
}
.l-clipper-image {
  width: 100%;
  border-style: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: center;
}
.l-clipper-canvas {
  position: fixed;
  z-index: 10;
  left: -200vw;
  top: -200vw;
  pointer-events: none;
}
.l-clipper-tools {
  position: fixed;
  left: 0;
  bottom: 10px;
  width: 100%;
  z-index: 99;
  color: #fff;
}
.l-clipper-tools__btns {
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20rpx 40rpx;
  box-sizing: border-box;
}
.l-clipper-tools__btns .cancel {
  width: 112rpx;
  height: 60rpx;
  text-align: center;
  line-height: 60rpx;
}
.l-clipper-tools__btns .confirm {
  width: 112rpx;
  height: 60rpx;
  line-height: 60rpx;
  background-color: #07c160;
  border-radius: 6rpx;
  text-align: center;
}
.l-clipper-tools__btns image {
  display: block;
  width: 60rpx;
  height: 60rpx;
}
.l-clipper-tools__btns {
  flex-direction: row;
}