@94ai/nf-theme-oem 3.3.53 → 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,59 +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
- &.disabled {
8
- * {
9
- cursor: not-allowed;
10
- }
11
- .more-icon {
12
- background: #FFFFFF!important;
13
- cursor: not-allowed;
14
- .more-btn {
15
- cursor: not-allowed;
16
- color: rgba(0,0,0,.3)!important;
17
- }
18
- }
19
- .play {
20
- background: #FFFFFF!important;
21
- cursor: not-allowed;
22
- .play-icon {
23
- cursor: not-allowed;
24
- color: rgba(0,0,0,.3)!important;
25
- }
26
- }
27
- .nf-fast {
28
- background: #F5F7FA!important;
29
- cursor: not-allowed;
30
- .nf-fast-icon {
31
- cursor: not-allowed;
32
- color: rgba(0,0,0,.3)!important;
33
- }
34
- }
35
- .time {
36
- color: rgba(0,0,0,.3)!important;
37
- cursor: not-allowed;
38
- }
39
- .progress {
40
- cursor: not-allowed;
41
- .circle {
42
- cursor: not-allowed;
43
- background: rgba(0,0,0,.3)!important;
44
- }
45
- }
46
- .nf-volume-tool {
47
- background: #FFFFFF!important;
48
- cursor: not-allowed;
49
- .volume {
50
- cursor: not-allowed;
51
- color: rgba(0,0,0,.3)!important;
52
- }
6
+ &.background {
7
+ > .nf-audio-body {
8
+ background: #F5F7FA;
53
9
  }
54
10
  }
55
11
 
56
- .nf-fast{
12
+ > .nf-audio-fast {
57
13
  box-sizing: border-box;
58
14
  display: inline-block;
59
15
  width: 48px;
@@ -65,13 +21,16 @@
65
21
  position: relative;
66
22
  cursor: pointer;
67
23
  transition: background 0.3s ease-in-out;
68
- &:hover{
24
+
25
+ &:hover {
69
26
  background: #ebeef5;
70
27
  }
28
+
71
29
  &:active {
72
30
  background: #dcdfe6;
73
31
  }
74
- .nf-fast-icon{
32
+
33
+ .nf-audio-fast-icon {
75
34
  position: absolute;
76
35
  margin-top: 50%;
77
36
  margin-left: 55%;
@@ -83,258 +42,432 @@
83
42
  background-size: contain;
84
43
  }
85
44
  }
86
- }
87
- .nf-audio {
88
- display: flex;
89
- align-items: center;
90
- padding: 7px 16px;
91
- background: #F5F7FA;
92
- border-radius: 24px;
93
45
 
94
- .play{
95
- display: inline-block;
96
- width: 24px;
97
- height: 24px;
98
- border-radius: 50%;
99
- cursor: pointer;
100
- &:hover{
101
- background: #ebeef5;
102
- }
103
- &:active {
104
- background: #dcdfe6;
105
- }
106
- >span{
107
- display: block;
108
- height: 100%;
109
- }
110
- .pause-icon{
111
- font-size: 24px;
112
- color: #1177FF;
113
- }
114
- .play-icon{
115
- font-size: 24px;
116
- color: #1177FF;
117
- }
118
- }
119
- .time {
46
+ > .nf-audio-body {
120
47
  display: flex;
121
- justify-content: space-between;
122
- color: #000000D9;
123
- font-size: 14px;
124
- height: 22px;
125
- line-height: 22px;
126
- margin: 0 8px;
127
- }
128
- .progress{
129
- width: 140px;
130
- height: 6px;
131
- background: #DCDFE6;
132
- border-radius: 4px;
133
- margin:0 10px 0 8px;
134
- cursor: pointer;
135
- .currentProgress {
136
- position: relative;
137
- height: 100%;
138
- width: 0;
139
- background-color: #1177FF;
140
- border-radius: 3px;
141
- transition: width 0.1s ease;
142
-
143
- .circle {
144
- display: inline-block;
145
- position: absolute;
146
- right: 0px;
147
- top: 50%;
148
- transform: translateY(-50%);
149
- width: 2px;
150
- height: 22px;
151
- 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;
152
72
  }
153
73
  }
154
- }
155
- .nf-volume-panel {
156
- position: relative;
157
- margin-right: 5px;
158
- .volume {
159
- font-size: 24px;
160
- color: #1177FF;
161
- background-repeat: no-repeat;
162
- 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;
163
83
  }
164
- .volume-mute {
165
- font-size: 24px;
166
- color: #1177FF;
167
- background-repeat: no-repeat;
168
- background-position: center;
84
+
85
+ > .nf-audio-pre, > .nf-audio-next {
86
+ color: #C7C7C9;
87
+ font-size: 13px;
169
88
  }
170
- .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;
171
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
+ }
172
118
  }
173
- .el-slider__runway{
174
- .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;
175
142
  width: 34px;
176
- height: 34px;
177
- left: -14.5px;
143
+ height: 0;
144
+ background: #EBEEF5;
145
+ border-radius: 16px;
146
+ transition: height .2s ease-in-out;
147
+ z-index: -1;
178
148
  }
179
- .el-slider__bar{
180
- background-color: #1177FF;
149
+
150
+ &.nf-audio-tool-show::before {
151
+ height: 120px;
181
152
  }
182
- .el-slider__button{
183
- 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;
184
159
  }
185
- }
186
- }
187
- .option {
188
- box-sizing: border-box;
189
- display: flex;
190
- justify-content: space-between;
191
- align-items: center;
192
- border-radius: 50%;
193
- cursor: pointer;
194
160
 
195
- &:hover{
196
- background: #ebeef5;
197
- }
198
- &:active {
199
- background: #dcdfe6;
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;
203
+ }
200
204
  }
201
- .pre, .next {
205
+
206
+ > .nf-audio-more-btn-box {
207
+ box-sizing: border-box;
202
208
  display: flex;
203
- padding: 0 2px;
209
+ justify-content: space-between;
204
210
  align-items: center;
211
+ border-radius: 50%;
205
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
+ }
206
261
  }
207
262
  }
208
- }
209
263
 
210
- .more-btn-box {
211
- .more-icon {
212
- display: flex;
213
- font-size: 20px;
214
- background: #f1f3f4;
215
- line-height: 1;
216
- width: 34px;
217
- height: 34px;
218
- align-items: center;
219
- justify-content: center;
220
- cursor: pointer;
221
- border-radius: 50%;
222
- &:hover{
223
- background: #ebeef5;
224
- }
225
- &:active {
226
- 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
+ }
227
273
  }
228
- }
229
- .more-btn{
230
- color: #1177FF;
231
- font-size: 24px;
232
- background-size: 100% 100%;
233
- }
234
- }
235
274
 
236
- .audio-popover {
237
- min-width: 100px;
238
- padding: 0;
275
+ > .nf-audio-body {
276
+ height: 28px;
277
+ padding: 5px 12px;
239
278
 
240
- .audio-btn-list {
241
- width: auto;
242
- .btn-item {
243
- line-height: 35px;
244
- padding: 0 15px;
245
- cursor: pointer;
246
- &:hover,&.active{
247
- 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
+ }
248
371
  }
249
372
  }
250
373
  }
251
- }
252
- // 音量条
253
- .nf-volume-tool {
254
- cursor: pointer;
255
- position: relative;
256
- z-index: 1;
257
- padding: 5px;
258
- border-radius: 50%;
259
- &:hover{
260
- background: #ebeef5;
261
- }
262
- &:active {
263
- background: #dcdfe6;
264
- }
265
- &::before{
266
- content: "";
267
- position: absolute;
268
- left: 0;
269
- bottom: 0;
270
- width: 34px;
271
- height: 0;
272
- background: #EBEEF5;
273
- border-radius: 16px;
274
- transition: height .2s ease-in-out;
275
- z-index: -1;
276
- }
277
- &.nf-tool-show::before{
278
- height: 120px;
279
- }
280
- .slide-fade-enter-active {
281
- transition: all 1s ease-in-out;
282
- }
283
- .slide-fade-enter, .slide-fade-leave-to .slide-fade-leave-active{
284
- opacity: 0; /* 初始透明度 */
285
- }
286
374
 
375
+ &.disabled {
287
376
 
288
- .nf-popper {
289
- position: absolute;
290
- top: -75px;
291
- left: 50%;
292
- transform: translateX(-50%);
293
- z-index: 100;
294
- border-radius: 16px;
295
- padding: 12px 6px 6px;
296
- }
297
- :deep(.nf-popper){
298
- .el-slider__runway{
299
- margin: 0 8px;
300
- }
301
- .el-slider__button-wrapper{
302
- width: 10px;
303
- height: 10px;
304
- left: 50%;
305
- transform: translateX(-50%);
306
- position: absolute;
307
- .el-slider__button{
308
- width: 100%;
309
- height: 100%;
310
- border: none;
311
- background: #1177FF;
312
- border-radius: 50%;
313
- position: absolute;
314
- left: 50%;
315
- top: 50%;
316
- 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);
317
385
  }
318
386
  }
319
387
 
320
- .volumePhonic{
321
- .el-slider__bar{
322
- &::before{
323
- content: "";
324
- position: absolute;
325
- top: -6px;
326
- width: 6px;
327
- height: 6px;
328
- border-radius: 50% 50% 0 0;
329
- background: #1177FF;
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
+ }
330
463
  }
331
464
  }
332
465
  }
333
466
  }
334
- .fade-enter-active, .fade-leave-active {
335
- transition: opacity 1s ease-in-out;
336
- }
337
- .fade-enter, .fade-leave-to {
338
- opacity: 0;
339
- }
340
467
  }
468
+
469
+
470
+
471
+
472
+
473
+