@94ai/nf-theme-oem 3.3.51 → 3.3.55

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.
package/lib/nf-audio.scss CHANGED
@@ -1,10 +1,15 @@
1
- //
2
- .nf-audio-strip{
1
+ .nf-audio {
3
2
  box-sizing: border-box;
4
3
  display: flex;
5
4
  justify-content: flex-start;
6
5
  align-items: center;
7
- .nf-fast{
6
+ &.background {
7
+ > .nf-audio-body {
8
+ background: #F5F7FA;
9
+ }
10
+ }
11
+
12
+ > .nf-audio-fast {
8
13
  box-sizing: border-box;
9
14
  display: inline-block;
10
15
  width: 48px;
@@ -16,13 +21,16 @@
16
21
  position: relative;
17
22
  cursor: pointer;
18
23
  transition: background 0.3s ease-in-out;
19
- &:hover{
24
+
25
+ &:hover {
20
26
  background: #ebeef5;
21
27
  }
28
+
22
29
  &:active {
23
30
  background: #dcdfe6;
24
31
  }
25
- .nf-fast-icon{
32
+
33
+ .nf-audio-fast-icon {
26
34
  position: absolute;
27
35
  margin-top: 50%;
28
36
  margin-left: 55%;
@@ -34,258 +42,432 @@
34
42
  background-size: contain;
35
43
  }
36
44
  }
37
- }
38
- .nf-audio {
39
- display: flex;
40
- align-items: center;
41
- padding: 7px 16px;
42
- background: #F5F7FA;
43
- border-radius: 24px;
44
-
45
- .play{
46
- display: inline-block;
47
- width: 24px;
48
- height: 24px;
49
- border-radius: 50%;
50
- cursor: pointer;
51
- &:hover{
52
- background: #ebeef5;
53
- }
54
- &:active {
55
- background: #dcdfe6;
56
- }
57
- >span{
58
- display: block;
59
- height: 100%;
60
- }
61
- .pause-icon{
62
- font-size: 24px;
63
- color: #1177FF;
64
- }
65
- .play-icon{
66
- font-size: 24px;
67
- color: #1177FF;
68
- }
69
- }
70
- .time {
45
+
46
+ > .nf-audio-body {
71
47
  display: flex;
72
- justify-content: space-between;
73
- color: #000000D9;
74
- font-size: 14px;
75
- height: 22px;
76
- line-height: 22px;
77
- margin: 0 8px;
78
- }
79
- .progress{
80
- width: 140px;
81
- height: 6px;
82
- background: #DCDFE6;
83
- border-radius: 4px;
84
- margin:0 10px 0 8px;
85
- cursor: pointer;
86
- .currentProgress {
87
- position: relative;
88
- height: 100%;
89
- width: 0;
90
- background-color: #1177FF;
91
- border-radius: 3px;
92
- transition: width 0.1s ease;
93
-
94
- .circle {
95
- display: inline-block;
96
- position: absolute;
97
- right: 0px;
98
- top: 50%;
99
- transform: translateY(-50%);
100
- width: 2px;
101
- height: 22px;
102
- background-color: #1177FF;
48
+ align-items: center;
49
+ padding: 7px 16px;
50
+ border-radius: 24px;
51
+ // 播放
52
+ > .nf-audio-play {
53
+ display: inline-block;
54
+ width: 30px;
55
+ height: 30px;
56
+ border-radius: 50%;
57
+ cursor: pointer;
58
+ text-align: center;
59
+ line-height: 30px;
60
+
61
+ &:hover {
62
+ background: #ebeef5;
63
+ }
64
+
65
+ &:active {
66
+ background: #dcdfe6;
67
+ }
68
+
69
+ > .nf-audio-pause-icon, > .nf-audio-play-icon {
70
+ font-size: 24px;
71
+ color: #1177FF;
103
72
  }
104
73
  }
105
- }
106
- .nf-volume-panel {
107
- position: relative;
108
- margin-right: 5px;
109
- .volume {
110
- font-size: 24px;
111
- color: #1177FF;
112
- background-repeat: no-repeat;
113
- background-position: center;
74
+
75
+ > .nf-audio-time {
76
+ display: flex;
77
+ justify-content: space-between;
78
+ color: #000000D9;
79
+ font-size: 14px;
80
+ height: 22px;
81
+ line-height: 22px;
82
+ margin: 0 8px;
114
83
  }
115
- .volume-mute {
116
- font-size: 24px;
117
- color: #1177FF;
118
- background-repeat: no-repeat;
119
- background-position: center;
84
+
85
+ > .nf-audio-pre, > .nf-audio-next {
86
+ color: #C7C7C9;
87
+ font-size: 13px;
120
88
  }
121
- .volumeOption {
89
+
90
+
91
+ > .nf-audio-progress-container {
92
+ width: 140px;
93
+ height: 6px;
94
+ background: #DCDFE6;
95
+ border-radius: 4px;
96
+ margin: 0 10px 0 8px;
122
97
  cursor: pointer;
98
+
99
+ > .nf-audio-progress-current {
100
+ position: relative;
101
+ height: 100%;
102
+ width: 0;
103
+ background-color: #1177FF;
104
+ border-radius: 3px;
105
+ transition: width 0.1s ease;
106
+
107
+ > .nf-audio-progress-bar {
108
+ display: inline-block;
109
+ position: absolute;
110
+ right: 0px;
111
+ top: 50%;
112
+ transform: translateY(-50%);
113
+ width: 2px;
114
+ height: 22px;
115
+ background-color: #1177FF;
116
+ }
117
+ }
123
118
  }
124
- .el-slider__runway{
125
- .el-slider__button-wrapper{
119
+
120
+ // 音量条
121
+ > .nf-audio-volume-tool {
122
+ cursor: pointer;
123
+ position: relative;
124
+ z-index: 1;
125
+ padding: 5px;
126
+ border-radius: 50%;
127
+ margin-right: 5px;
128
+
129
+ &:hover {
130
+ background: #ebeef5;
131
+ }
132
+
133
+ &:active {
134
+ background: #dcdfe6;
135
+ }
136
+
137
+ &::before {
138
+ content: "";
139
+ position: absolute;
140
+ left: 0;
141
+ bottom: 0;
126
142
  width: 34px;
127
- height: 34px;
128
- left: -14.5px;
143
+ height: 0;
144
+ background: #EBEEF5;
145
+ border-radius: 16px;
146
+ transition: height .2s ease-in-out;
147
+ z-index: -1;
129
148
  }
130
- .el-slider__bar{
131
- background-color: #1177FF;
149
+
150
+ &.nf-audio-tool-show::before {
151
+ height: 120px;
132
152
  }
133
- .el-slider__button{
134
- border: 1px solid #1177FF;
153
+
154
+ .nf-audio-volume-unmute, .nf-audio-volume-mute {
155
+ font-size: 24px;
156
+ color: #1177FF;
157
+ background-repeat: no-repeat;
158
+ background-position: center;
159
+ }
160
+
161
+ .nf-audio-volume-popper {
162
+ position: absolute;
163
+ top: -75px;
164
+ left: 50%;
165
+ transform: translateX(-50%);
166
+ z-index: 100;
167
+ border-radius: 16px;
168
+ padding: 12px 6px 6px;
169
+
170
+ .el-slider__runway {
171
+ .el-slider__bar {
172
+ background-color: #1177FF;
173
+ }
174
+
175
+ .el-slider__button-wrapper {
176
+ width: 10px;
177
+ height: 10px;
178
+ left: 50%;
179
+ transform: translateX(-50%);
180
+ position: absolute;
181
+
182
+ .el-slider__button {
183
+ border: 1px solid #1177FF;
184
+ width: 100%;
185
+ height: 100%;
186
+ background: #1177FF;
187
+ border-radius: 50%;
188
+ position: absolute;
189
+ left: 50%;
190
+ top: 50%;
191
+ transform: translateX(-50%) translateY(-50%);
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ .nf-audio-slide-fade-enter-active {
198
+ transition: all .5s ease-in-out;
199
+ }
200
+
201
+ .nf-audio-slide-fade-enter, .nf-audio-slide-fade-leave-to, .nf-audio-slide-fade-leave-active {
202
+ opacity: 0;
135
203
  }
136
204
  }
137
- }
138
- .option {
139
- box-sizing: border-box;
140
- display: flex;
141
- justify-content: space-between;
142
- align-items: center;
143
- border-radius: 50%;
144
- cursor: pointer;
145
-
146
- &:hover{
147
- background: #ebeef5;
148
- }
149
- &:active {
150
- background: #dcdfe6;
151
- }
152
- .pre, .next {
205
+
206
+ > .nf-audio-more-btn-box {
207
+ box-sizing: border-box;
153
208
  display: flex;
154
- padding: 0 2px;
209
+ justify-content: space-between;
155
210
  align-items: center;
211
+ border-radius: 50%;
156
212
  cursor: pointer;
213
+
214
+ // 更多浮层
215
+ .nf-audio-popover {
216
+ min-width: 100px;
217
+ padding: 0;
218
+
219
+ .nf-audio-btn-list {
220
+ width: auto;
221
+ font-size: 14px;
222
+
223
+ .nf-audio-btn-item {
224
+ line-height: 35px;
225
+ padding: 0 15px;
226
+ cursor: pointer;
227
+ font-size: 14px;
228
+
229
+ &:hover, &.active {
230
+ background: #F5F7FA;
231
+ }
232
+ }
233
+ }
234
+ }
235
+
236
+ .nf-audio-more-icon-container {
237
+ display: flex;
238
+ font-size: 20px;
239
+ line-height: 1;
240
+ width: 34px;
241
+ height: 34px;
242
+ align-items: center;
243
+ justify-content: center;
244
+ cursor: pointer;
245
+ border-radius: 50%;
246
+
247
+ &:hover {
248
+ background: #ebeef5;
249
+ }
250
+
251
+ &:active {
252
+ background: #dcdfe6;
253
+ }
254
+
255
+ .nf-audio-more-icon {
256
+ color: #1177FF;
257
+ font-size: 24px;
258
+ background-size: 100% 100%;
259
+ }
260
+ }
157
261
  }
158
262
  }
159
- }
160
263
 
161
- .more-btn-box {
162
- .more-icon {
163
- display: flex;
164
- font-size: 20px;
165
- background: #f1f3f4;
166
- line-height: 1;
167
- width: 34px;
168
- height: 34px;
169
- align-items: center;
170
- justify-content: center;
171
- cursor: pointer;
172
- border-radius: 50%;
173
- &:hover{
174
- background: #ebeef5;
175
- }
176
- &:active {
177
- background: #dcdfe6;
264
+ &.mini {
265
+ > .nf-audio-fast {
266
+ width: 38px;
267
+ height: 38px;
268
+ margin-right: 8px;
269
+
270
+ .nf-audio-fast-icon {
271
+ font-size: 16px;
272
+ }
178
273
  }
179
- }
180
- .more-btn{
181
- color: #1177FF;
182
- font-size: 24px;
183
- background-size: 100% 100%;
184
- }
185
- }
186
274
 
187
- .audio-popover {
188
- min-width: 100px;
189
- padding: 0;
275
+ > .nf-audio-body {
276
+ height: 28px;
277
+ padding: 5px 12px;
190
278
 
191
- .audio-btn-list {
192
- width: auto;
193
- .btn-item {
194
- line-height: 35px;
195
- padding: 0 15px;
196
- cursor: pointer;
197
- &:hover,&.active{
198
- background: #F5F7FA;
279
+ // 播放
280
+ > .nf-audio-play {
281
+ width: 28px;
282
+ height: 28px;
283
+ line-height: 28px;
284
+
285
+ > .nf-audio-play-icon, > .nf-audio-pause-icon {
286
+ font-size: 16px;
287
+ }
288
+ }
289
+
290
+ > .nf-audio-time {
291
+ .startTime, .endTime {
292
+ font-size: 12px;
293
+ }
294
+ }
295
+
296
+ > .nf-audio-pre, > .nf-audio-next {
297
+ font-size: 12px;
298
+ }
299
+
300
+ > .nf-audio-progress-container {
301
+ width: 120px;
302
+ height: 4px;
303
+
304
+ .nf-audio-progress-bar {
305
+ height: 16px;
306
+ }
307
+ }
308
+
309
+ > .nf-audio-volume-tool {
310
+ > div {
311
+ width: 18px;
312
+ height: 18px;
313
+ line-height: 18px;
314
+ text-align: center;
315
+
316
+ .nf-audio-volume-unmute, .nf-audio-volume-mute {
317
+ font-size: 16px;
318
+ }
319
+ }
320
+
321
+ &::before {
322
+ width: 28px;
323
+ }
324
+
325
+ .nf-audio-volume-popper {
326
+ padding: 12px 6px 6px;
327
+
328
+ .el-slider__runway {
329
+ margin: 0 6px;
330
+
331
+ .el-slider__bar {
332
+ position: absolute;
333
+ left: 50%;
334
+ transform: translateX(-50%);
335
+ width: 4px;
336
+ }
337
+
338
+ .el-slider__button-wrapper {
339
+ width: 8px;
340
+ height: 8px;
341
+ }
342
+ }
343
+ }
344
+ }
345
+
346
+ > .nf-audio-more-btn-box {
347
+ // 更多
348
+ .nf-audio-more-icon-container {
349
+ width: 28px;
350
+ line-height: 28px;
351
+ height: 28px;
352
+
353
+ .nf-audio-more-icon {
354
+ font-size: 16px;
355
+ }
356
+ }
357
+
358
+ // 更多浮层
359
+ .nf-audio-popover {
360
+
361
+ .nf-audio-btn-list {
362
+ font-size: 12px;
363
+
364
+ .nf-audio-btn-item {
365
+ line-height: 28px;
366
+ padding: 0 12px;
367
+ font-size: 12px;
368
+ }
369
+ }
370
+ }
199
371
  }
200
372
  }
201
373
  }
202
- }
203
- // 音量条
204
- .nf-volume-tool {
205
- cursor: pointer;
206
- position: relative;
207
- z-index: 1;
208
- padding: 5px;
209
- border-radius: 50%;
210
- &:hover{
211
- background: #ebeef5;
212
- }
213
- &:active {
214
- background: #dcdfe6;
215
- }
216
- &::before{
217
- content: "";
218
- position: absolute;
219
- left: 0;
220
- bottom: 0;
221
- width: 34px;
222
- height: 0;
223
- background: #EBEEF5;
224
- border-radius: 16px;
225
- transition: height .2s ease-in-out;
226
- z-index: -1;
227
- }
228
- &.nf-tool-show::before{
229
- height: 120px;
230
- }
231
- .slide-fade-enter-active {
232
- transition: all 1s ease-in-out;
233
- }
234
- .slide-fade-enter, .slide-fade-leave-to .slide-fade-leave-active{
235
- opacity: 0; /* 初始透明度 */
236
- }
237
374
 
375
+ &.disabled {
238
376
 
239
- .nf-popper {
240
- position: absolute;
241
- top: -75px;
242
- left: 50%;
243
- transform: translateX(-50%);
244
- z-index: 100;
245
- border-radius: 16px;
246
- padding: 12px 6px 6px;
247
- }
248
- :deep(.nf-popper){
249
- .el-slider__runway{
250
- margin: 0 8px;
251
- }
252
- .el-slider__button-wrapper{
253
- width: 10px;
254
- height: 10px;
255
- left: 50%;
256
- transform: translateX(-50%);
257
- position: absolute;
258
- .el-slider__button{
259
- width: 100%;
260
- height: 100%;
261
- border: none;
262
- background: #1177FF;
263
- border-radius: 50%;
264
- position: absolute;
265
- left: 50%;
266
- top: 50%;
267
- transform: translateX(-50%) translateY(-50%);
377
+ // 快进
378
+ > .nf-audio-fast {
379
+ background: #F5F7FA;
380
+ cursor: not-allowed;
381
+ // 快进按钮
382
+ .nf-audio-fast-icon {
383
+ cursor: not-allowed;
384
+ color: rgba(0, 0, 0, .3);
268
385
  }
269
386
  }
270
-
271
- .volumePhonic{
272
- .el-slider__bar{
273
- &::before{
274
- content: "";
275
- position: absolute;
276
- top: -6px;
277
- width: 6px;
278
- height: 6px;
279
- border-radius: 50% 50% 0 0;
280
- background: #1177FF;
387
+
388
+ > .nf-audio-body {
389
+ // 播放
390
+ > .nf-audio-play {
391
+ cursor: not-allowed;
392
+
393
+ &:hover {
394
+ background: transparent;
395
+ }
396
+
397
+ &:active {
398
+ background: transparent;
399
+ }
400
+
401
+ > .nf-audio-play-icon, .nf-audio-pause-icon {
402
+ cursor: not-allowed;
403
+ color: rgba(0, 0, 0, .3);
404
+ }
405
+ }
406
+
407
+ // 时间
408
+ > .nf-audio-time {
409
+ color: rgba(0, 0, 0, .3);
410
+ cursor: not-allowed;
411
+ }
412
+
413
+ // 进度
414
+ > .nf-audio-progress-container {
415
+ cursor: not-allowed;
416
+
417
+ > .nf-audio-progress-current {
418
+ cursor: not-allowed;
419
+
420
+ > .nf-audio-progress-bar {
421
+ cursor: not-allowed;
422
+ background: rgba(0, 0, 0, .3);
423
+ }
424
+ }
425
+ }
426
+
427
+ // 音量
428
+ > .nf-audio-volume-tool {
429
+ cursor: not-allowed;
430
+
431
+ &:hover {
432
+ background: transparent;
433
+ }
434
+
435
+ &:active {
436
+ background: transparent;
437
+ }
438
+
439
+ .nf-audio-volume-unmute, .nf-audio-volume-mute {
440
+ cursor: not-allowed;
441
+ color: rgba(0, 0, 0, .3);
442
+ }
443
+ }
444
+
445
+ > .nf-audio-more-btn-box {
446
+
447
+ // 更多
448
+ .nf-audio-more-icon-container {
449
+ cursor: not-allowed;
450
+
451
+ &:hover {
452
+ background: transparent;
453
+ }
454
+
455
+ &:active {
456
+ background: transparent;
457
+ }
458
+
459
+ .nf-audio-more-icon {
460
+ cursor: not-allowed;
461
+ color: rgba(0, 0, 0, .3);
462
+ }
281
463
  }
282
464
  }
283
465
  }
284
466
  }
285
- .fade-enter-active, .fade-leave-active {
286
- transition: opacity 1s ease-in-out;
287
- }
288
- .fade-enter, .fade-leave-to {
289
- opacity: 0;
290
- }
291
- }
467
+ }
468
+
469
+
470
+
471
+
472
+
473
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-theme-oem",
3
- "version": "3.3.51",
3
+ "version": "3.3.55",
4
4
  "description": "oem主题包",
5
5
  "keywords": [
6
6
  "theme",
@@ -30,5 +30,5 @@
30
30
  "build": "gulp --require @esbuild-kit/cjs-loader"
31
31
  },
32
32
  "types": "lib/index.ts",
33
- "gitHead": "d5b493e6b5681b244f3f182b4ffb99f5dd24d63c"
33
+ "gitHead": "cc3f63b52b5840e0550cd66ec9264185a77012f2"
34
34
  }