@dcloudio/uni-h5 0.0.1-nvue3.3030820220125001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,205 @@
1
+ uni-picker {
2
+ position: relative;
3
+ display: block;
4
+ cursor: pointer;
5
+ }
6
+
7
+ uni-picker[hidden] {
8
+ display: none;
9
+ }
10
+
11
+ uni-picker[disabled] {
12
+ cursor: not-allowed;
13
+ }
14
+
15
+ .uni-picker-container {
16
+ display: none;
17
+ position: fixed;
18
+ left: 0;
19
+ right: 0;
20
+ top: 0;
21
+ bottom: 0;
22
+ box-sizing: border-box;
23
+ z-index: 999;
24
+ font-size: 16px;
25
+ }
26
+
27
+ .uni-picker-container .uni-picker-custom * {
28
+ box-sizing: border-box;
29
+ }
30
+
31
+ .uni-picker-container .uni-picker-custom {
32
+ position: fixed;
33
+ left: 0;
34
+ bottom: 0;
35
+ transform: translate(0, 100%);
36
+ backface-visibility: hidden;
37
+ z-index: 999;
38
+ width: 100%;
39
+ background-color: #efeff4;
40
+ visibility: hidden;
41
+ transition: transform 0.3s, visibility 0.3s;
42
+ }
43
+
44
+ .uni-picker-container .uni-picker-custom.uni-picker-toggle {
45
+ visibility: visible;
46
+ transform: translate(0, 0);
47
+ }
48
+
49
+ .uni-picker-container .uni-picker-content {
50
+ position: relative;
51
+ display: block;
52
+ width: 100%;
53
+ height: 238px;
54
+ background-color: white;
55
+ }
56
+
57
+ .uni-picker-container .uni-picker-item {
58
+ padding: 0;
59
+ height: 34px;
60
+ line-height: 34px;
61
+ text-align: center;
62
+ color: #000;
63
+ text-overflow: ellipsis;
64
+ white-space: nowrap;
65
+ overflow: hidden;
66
+ cursor: pointer;
67
+ }
68
+
69
+ .uni-picker-container .uni-picker-header {
70
+ display: block;
71
+ position: relative;
72
+ text-align: center;
73
+ width: 100%;
74
+ height: 45px;
75
+ background-color: #fff;
76
+ }
77
+
78
+ .uni-picker-container .uni-picker-header:after {
79
+ content: '';
80
+ position: absolute;
81
+ left: 0;
82
+ bottom: 0;
83
+ right: 0;
84
+ height: 1px;
85
+ clear: both;
86
+ border-bottom: 1px solid #e5e5e5;
87
+ color: #e5e5e5;
88
+ transform-origin: 0 100%;
89
+ transform: scaleY(0.5);
90
+ }
91
+
92
+ .uni-picker-container .uni-picker-action {
93
+ display: block;
94
+ max-width: 50%;
95
+ top: 0;
96
+ height: 100%;
97
+ box-sizing: border-box;
98
+ padding: 0 14px;
99
+ font-size: 17px;
100
+ line-height: 45px;
101
+ overflow: hidden;
102
+ cursor: pointer;
103
+ }
104
+
105
+ .uni-picker-container .uni-picker-action.uni-picker-action-cancel {
106
+ float: left;
107
+ color: #888;
108
+ }
109
+
110
+ .uni-picker-container .uni-picker-action.uni-picker-action-confirm {
111
+ float: right;
112
+ color: #007aff;
113
+ }
114
+
115
+ .uni-picker-container .uni-picker-select {
116
+ display: none;
117
+ }
118
+
119
+ .uni-picker-system {
120
+ position: absolute;
121
+ display: none;
122
+ display: block;
123
+ top: 0;
124
+ left: 0;
125
+ width: 100%;
126
+ height: 100%;
127
+ overflow: hidden;
128
+ }
129
+
130
+ .uni-picker-system > .uni-picker-system_input {
131
+ position: absolute;
132
+ border: none;
133
+ height: 100%;
134
+ opacity: 0;
135
+ /* Chrome 无效 */
136
+ cursor: pointer;
137
+ }
138
+
139
+ .uni-picker-system > .uni-picker-system_input.firefox {
140
+ top: 0;
141
+ left: 0;
142
+ width: 100%;
143
+ }
144
+
145
+ .uni-picker-system > .uni-picker-system_input.chrome {
146
+ /* 日历空白位置宽度 32px */
147
+ top: 0;
148
+ left: 0;
149
+ width: 2em;
150
+ font-size: 32px;
151
+ height: 32px;
152
+ }
153
+
154
+ @media screen and (min-width: 500px) and (min-height: 500px) {
155
+ .uni-mask.uni-picker-mask {
156
+ background: none;
157
+ }
158
+ .uni-picker-container .uni-picker-custom {
159
+ width: 300px;
160
+ left: 50%;
161
+ right: auto;
162
+ top: 50%;
163
+ bottom: auto;
164
+ transform: translate(-50%, -50%);
165
+ opacity: 0;
166
+ border-radius: 5px;
167
+ transition: opacity 0.3s, visibility 0.3s;
168
+ box-shadow: 0px 0 20px 5px rgba(0, 0, 0, 0.3);
169
+ }
170
+ .uni-picker-container .uni-picker-header {
171
+ border-radius: 5px 5px 0 0;
172
+ }
173
+ .uni-picker-container .uni-picker-content {
174
+ /* transform 用于解决 Safari overflow 失效的问题 */
175
+ transform: translate(0 0);
176
+ overflow: hidden;
177
+ border-radius: 0 0 5px 5px;
178
+ }
179
+ .uni-picker-container .uni-picker-custom.uni-picker-toggle {
180
+ opacity: 1;
181
+ transform: translate(-50%, -50%);
182
+ }
183
+ .uni-selector-select .uni-picker-header,
184
+ .uni-selector-select .uni-picker-content {
185
+ display: none;
186
+ }
187
+ .uni-selector-select .uni-picker-select {
188
+ display: block;
189
+ max-height: 300px;
190
+ overflow: auto;
191
+ background-color: white;
192
+ border-radius: 5px;
193
+ padding: 6px 0;
194
+ }
195
+ .uni-selector-select .uni-picker-item {
196
+ padding: 0 10px;
197
+ color: #555555;
198
+ }
199
+ .uni-selector-select .uni-picker-item:hover {
200
+ background-color: #f6f6f6;
201
+ }
202
+ .uni-selector-select .uni-picker-item.selected {
203
+ color: #007aff;
204
+ }
205
+ }
@@ -0,0 +1,315 @@
1
+ uni-video {
2
+ width: 300px;
3
+ height: 225px;
4
+ display: inline-block;
5
+ line-height: 0;
6
+ overflow: hidden;
7
+ position: relative;
8
+ }
9
+
10
+ uni-video[hidden] {
11
+ display: none;
12
+ }
13
+
14
+ .uni-video-container {
15
+ width: 100%;
16
+ height: 100%;
17
+ background-color: black;
18
+ display: inline-block;
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ overflow: hidden;
23
+ object-position: inherit;
24
+ }
25
+
26
+ .uni-video-container.uni-video-type-fullscreen {
27
+ position: fixed;
28
+ z-index: 999;
29
+ }
30
+
31
+ .uni-video-video {
32
+ width: 100%;
33
+ height: 100%;
34
+ object-position: inherit;
35
+ }
36
+
37
+ .uni-video-cover {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ bottom: 0;
42
+ width: 100%;
43
+ display: flex;
44
+ flex-direction: column;
45
+ justify-content: center;
46
+ align-items: center;
47
+ background-color: rgba(1, 1, 1, 0.5);
48
+ z-index: 1;
49
+ }
50
+
51
+ .uni-video-slots {
52
+ position: absolute;
53
+ left: 0;
54
+ top: 0;
55
+ width: 100%;
56
+ height: 100%;
57
+ overflow: hidden;
58
+ pointer-events: none;
59
+ }
60
+
61
+ .uni-video-cover-play-button {
62
+ width: 40px;
63
+ height: 40px;
64
+ background-size: 50%;
65
+ background-repeat: no-repeat;
66
+ background-position: 50% 50%;
67
+ cursor: pointer;
68
+ }
69
+
70
+ .uni-video-cover-duration {
71
+ color: #fff;
72
+ font-size: 16px;
73
+ line-height: 1;
74
+ margin-top: 10px;
75
+ }
76
+
77
+ .uni-video-bar {
78
+ height: 44px;
79
+ background-color: rgba(0, 0, 0, 0.5);
80
+ overflow: hidden;
81
+ position: absolute;
82
+ bottom: 0;
83
+ right: 0;
84
+ display: flex;
85
+ display: flex;
86
+ align-items: center;
87
+ align-items: center;
88
+ padding: 0 10px;
89
+ z-index: 0;
90
+ /* 解决全屏后被 video 遮挡的问题 */
91
+ transform: translate3d(0, 0, 0);
92
+ }
93
+
94
+ .uni-video-bar.uni-video-bar-full {
95
+ left: 0;
96
+ }
97
+
98
+ .uni-video-controls {
99
+ display: flex;
100
+ display: flex;
101
+ flex-grow: 1;
102
+ flex-grow: 1;
103
+ margin: 0 8.5px;
104
+ }
105
+
106
+ .uni-video-control-button {
107
+ width: 13px;
108
+ height: 15px;
109
+ padding: 14.5px 12.5px 14.5px 12.5px;
110
+ margin-left: -8.5px;
111
+ box-sizing: content-box;
112
+ cursor: pointer;
113
+ }
114
+
115
+ .uni-video-control-button::after {
116
+ content: '';
117
+ display: block;
118
+ width: 100%;
119
+ height: 100%;
120
+ background-size: 100%;
121
+ background-position: 50% 50%;
122
+ background-repeat: no-repeat;
123
+ }
124
+
125
+ .uni-video-control-button.uni-video-control-button-play::after,
126
+ .uni-video-cover-play-button {
127
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAYAAAAy2w7YAAAAAXNSR0IArs4c6QAAAWhJREFUSA1j+P///0cgBoHjQGzCQCsAtgJB/AMy5wCxGNXtQ9iBwvoA5BUCMQvVLEQxHpNzDSjkRhXLMM3GKrIeKKpEkYVYjcUu+AMo3ALE3GRZiN1MvKKPgbIRJFuG10j8koeA0gZEW4jfLIKyf4EqpgOxMEELCRpFnIJ3QGU5QMyM00LizCFa1SWgSkeslhFtBGkKVwGVy6FYSJp+klR/A6quB2JOkIWMIK0oNlOf8xBoZDE9LAI7nYn6HsBq4l96WHQEaLUpAyiOaASeAM2NgvuPBpaACt82IEYtfKls0UagecpwXyAzqGTRdaA57sjmYrAptAjUsCkGYlYMg9EFyLQI1IiZB8Ti6Obh5JNh0QmgHlOcBuKSIMGi50C18UDMiMssvOJEWPQLqKYbiHnxGkRIkoBF24DyaoTMIEoeh0W3geI+RBlArCI0iz4D+RVAzEasfqLVAQ19AcSg5LoYiKWI1kiiQgCMBLnEEcfDSgAAAABJRU5ErkJggg==');
128
+ }
129
+
130
+ .uni-video-control-button.uni-video-control-button-pause::after {
131
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAAAXNSR0IArs4c6QAAAFlJREFUSA3tksEKACAIQ7X//5zq98wOgQayum8QaGweHhMzG/6OujzKAymn+0LMqivu1XznWmX8/echTIyMyAgTwA72iIwwAexgj8gIE8CO3aMRbDPMaEy5BRGaKcZv8YxRAAAAAElFTkSuQmCC');
132
+ }
133
+
134
+ .uni-video-current-time,
135
+ .uni-video-duration {
136
+ height: 14.5px;
137
+ line-height: 14.5px;
138
+ margin-top: 15px;
139
+ margin-bottom: 14.5px;
140
+ font-size: 12px;
141
+ color: #cbcbcb;
142
+ }
143
+
144
+ .uni-video-progress-container {
145
+ flex-grow: 2;
146
+ flex-grow: 2;
147
+ position: relative;
148
+ }
149
+
150
+ .uni-video-progress {
151
+ height: 2px;
152
+ margin: 21px 12px;
153
+ background-color: rgba(255, 255, 255, 0.4);
154
+ position: relative;
155
+ cursor: pointer;
156
+ }
157
+
158
+ .uni-video-progress-buffered {
159
+ position: absolute;
160
+ left: 0;
161
+ top: 0;
162
+ width: 0;
163
+ height: 100%;
164
+ transition: width 0.1s;
165
+ background-color: rgba(255, 255, 255, 0.8);
166
+ }
167
+
168
+ .uni-video-ball {
169
+ width: 16px;
170
+ height: 16px;
171
+ padding: 14px;
172
+ position: absolute;
173
+ top: -21px;
174
+ box-sizing: content-box;
175
+ left: 0%;
176
+ margin-left: -22px;
177
+ }
178
+
179
+ .uni-video-inner {
180
+ width: 100%;
181
+ height: 100%;
182
+ background-color: #ffffff;
183
+ border-radius: 50%;
184
+ }
185
+
186
+ .uni-video-danmu-button {
187
+ white-space: nowrap;
188
+ line-height: 1;
189
+ padding: 2px 10px;
190
+ border: 1px solid #fff;
191
+ border-radius: 5px;
192
+ font-size: 13px;
193
+ color: #fff;
194
+ margin: 0 8.5px;
195
+ cursor: pointer;
196
+ }
197
+
198
+ .uni-video-danmu-button.uni-video-danmu-button-active {
199
+ border-color: #48c23d;
200
+ color: #48c23d;
201
+ }
202
+
203
+ .uni-video-fullscreen {
204
+ width: 17px;
205
+ height: 17px;
206
+ padding: 8.5px;
207
+ box-sizing: content-box;
208
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAAAAXNSR0IArs4c6QAAAQRJREFUWAnt1d0NwiAQB/CmS7hHX5zFxLF0Ah2hE/lg7BT4PyMJUj6Oyt299BIioZT7ARYG59wLpTXmoXOMGO/QecxtwyWW4o42AupGALkFdX1MkHxE3Q7jIbQPqNthQogpJoZkMLRlsn/gFMQEk4OoY0oQVUwNoobhQFQwgMxUKFkt0C8+Zy61d8SeR5iHWCLOwF/MCb8Tp//ex3QFsE1HlCfKFUX2OijNFMnPKD7k76YcBoL402Zh8B77+MjlXrVvwfglXA32b0MrRgxCE2nBiEJaMOIQLkYFwsGoQWoYVUgJow4pYD4Weq4ayBqfwDYQmnUK0301kITujuawu65/l2B5A4z3Qe+Ut7EBAAAAAElFTkSuQmCC');
209
+ background-size: 50%;
210
+ background-position: 50% 50%;
211
+ background-repeat: no-repeat;
212
+ cursor: pointer;
213
+ }
214
+
215
+ .uni-video-fullscreen.uni-video-type-fullscreen {
216
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAYAAAA6RwvCAAABBElEQVRYhcXWwQ3CMAwF0O+qOzAKQzAAl0pMxQQwQhmGKwcERxbgc4lEVdHUbm3zJR8qJemTo6YByS3JO8kjyQbGkHQpkOz4zcmK8YQ0BWDCkOxL+UDKombMYKwfZAkmDGLFhEIsmHCIFpMC0WDSIHOYVEgNkw6pYPIhE5j/QCoYF0g7eEkPYGej+cX82x/l6aIAIOb9CcrajrjFE/IAQGP1IgIRcYVsVs32+vx+nC9nWq6dAZDhOaPHBEDGh54O4w0pa9oxEZBFmCjIBGb6Qh4JMWGiIWpMBkSFyYLMYjIhNUw7N9GQi2aQiLxJHspjV+rl1hFrRp25uV2MRGQRBsAewPUD/HhJVOOuCzwAAAAASUVORK5CYII=');
217
+ }
218
+
219
+ .uni-video-danmu {
220
+ position: absolute;
221
+ top: 0;
222
+ left: 0;
223
+ bottom: 0;
224
+ width: 100%;
225
+ margin-top: 14px;
226
+ margin-bottom: 44px;
227
+ font-size: 14px;
228
+ line-height: 14px;
229
+ overflow: visible;
230
+ }
231
+
232
+ .uni-video-danmu-item {
233
+ line-height: 1;
234
+ position: absolute;
235
+ color: #ffffff;
236
+ white-space: nowrap;
237
+ left: 100%;
238
+ transform: translatex(0);
239
+ transition-property: left, transform;
240
+ transition-duration: 3s;
241
+ transition-timing-function: linear;
242
+ }
243
+
244
+ .uni-video-toast {
245
+ pointer-events: none;
246
+ position: absolute;
247
+ left: 50%;
248
+ top: 50%;
249
+ transform: translate(-50%, -50%);
250
+ border-radius: 5px;
251
+ background-color: rgba(255, 255, 255, 0.8);
252
+ color: #000000;
253
+ display: none;
254
+ }
255
+
256
+ .uni-video-toast.uni-video-toast-volume {
257
+ width: 100px;
258
+ height: 100px;
259
+ display: block;
260
+ }
261
+
262
+ .uni-video-toast-volume .uni-video-toast-title {
263
+ width: 100%;
264
+ font-size: 12px;
265
+ line-height: 16px;
266
+ text-align: center;
267
+ margin-top: 10px;
268
+ display: block;
269
+ }
270
+
271
+ .uni-video-toast-volume .uni-video-toast-icon {
272
+ fill: #000000;
273
+ width: 50%;
274
+ height: 50%;
275
+ margin-left: 25%;
276
+ display: block;
277
+ }
278
+
279
+ .uni-video-toast-volume .uni-video-toast-value {
280
+ width: 80px;
281
+ height: 5px;
282
+ margin-top: 5px;
283
+ margin-left: 10px;
284
+ }
285
+
286
+ .uni-video-toast-volume
287
+ .uni-video-toast-value
288
+ > .uni-video-toast-value-content {
289
+ overflow: hidden;
290
+ }
291
+
292
+ .uni-video-toast-volume-grids {
293
+ width: 80px;
294
+ height: 5px;
295
+ }
296
+
297
+ .uni-video-toast-volume-grids-item {
298
+ float: left;
299
+ width: 7.1px;
300
+ height: 5px;
301
+ background-color: #000000;
302
+ }
303
+
304
+ .uni-video-toast-volume-grids-item:not(:first-child) {
305
+ margin-left: 1px;
306
+ }
307
+
308
+ .uni-video-toast.uni-video-toast-progress {
309
+ display: block;
310
+ background-color: rgba(0, 0, 0, 0.8);
311
+ color: white;
312
+ font-size: 14px;
313
+ line-height: 18px;
314
+ padding: 6px;
315
+ }
@@ -0,0 +1,7 @@
1
+ uni-web-view {
2
+ position: absolute;
3
+ left: 0;
4
+ right: 0;
5
+ top: 0;
6
+ bottom: 0;
7
+ }