cfel-base-components 2.5.76 → 2.5.78

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.
@@ -1,886 +0,0 @@
1
- $menuPrefixCls: rc-menu;
2
-
3
- ul {
4
- list-style: none;
5
- padding: 0;
6
- margin: 0;
7
- }
8
-
9
-
10
-
11
- .ant-popover-inner {
12
- padding: 8px !important;
13
- }
14
-
15
- .menu-popover-cloud {
16
- width: 168px;
17
- font-weight: 400;
18
- font-size: 14px;
19
- color: #04073b;
20
- text-align: left;
21
- font-style: normal;
22
- cursor: pointer;
23
-
24
- .sub-list {
25
- width: 100%;
26
- display: flex;
27
- justify-content: space-between;
28
- }
29
-
30
- .sub-li {
31
- width: 152px;
32
- height: 24px;
33
- overflow: hidden;
34
- text-overflow: ellipsis;
35
- font-weight: 400;
36
- font-size: 14px;
37
- padding: 6px 8px;
38
-
39
- &:hover {
40
- color: #409a75c6;
41
- }
42
-
43
- &:not(:first-child) {
44
- margin-top: 4px;
45
- }
46
- }
47
-
48
- .grand-li {
49
- width: 130px;
50
- height: 24px;
51
- overflow: hidden;
52
- text-overflow: ellipsis;
53
- font-weight: 400;
54
- font-size: 14px;
55
- padding: 6px 8px;
56
-
57
- &:hover {
58
- color: #409a75c6;
59
- }
60
-
61
- &:not(:first-child) {
62
- margin-top: 4px;
63
- }
64
- }
65
-
66
- .sub-item-selected {
67
- font-weight: 500;
68
- color:#409A74;
69
- background: rgba(61, 118, 236, 0.1);
70
- border-radius: 4px;
71
- }
72
- }
73
-
74
- .layout-menu-cloud {
75
- border-radius: 16px;
76
- height: calc(100% - 109px);
77
- overflow-y: scroll;
78
- position: relative;
79
- z-index: 11;
80
-
81
- .menu-cloud {
82
- padding: 0;
83
- margin: 0;
84
- list-style: none;
85
- cursor: pointer;
86
-
87
- .#{$menuPrefixCls}-submenu-arrow {
88
- display: inline-block;
89
- position: absolute;
90
- top: 52%;
91
- right: 16px;
92
- width: 16px;
93
- height: 16px;
94
- transform: translateY(0);
95
- transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
96
-
97
- // 当菜单收起时隐藏箭头
98
- .ant-layout-sider-collapsed & {
99
- display: none;
100
- }
101
-
102
- &::before,
103
- &::after {
104
- position: absolute;
105
- width: 6px;
106
- height: 1px;
107
- scale: 1.25;
108
- background: #788bb1;
109
- border-radius: 2px;
110
- transition:
111
- background 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
112
- transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
113
- content: '';
114
- }
115
-
116
- &::before {
117
- transform: rotate(-45deg) translateX(2.5px);
118
- }
119
-
120
- &::after {
121
- transform: rotate(45deg) translateX(-2.5px);
122
- }
123
-
124
- // RTL support
125
- &.#{$menuPrefixCls}-rtl,
126
- .#{$menuPrefixCls}-submenu-rtl & {
127
- right: auto;
128
- left: 16px;
129
- }
130
- }
131
-
132
- .#{$menuPrefixCls}-submenu-open > .#{$menuPrefixCls}-submenu-title {
133
- .#{$menuPrefixCls}-submenu-arrow {
134
- transform: translateY(-3px);
135
- &::before {
136
- transform: rotate(45deg) translateX(2.5px);
137
- }
138
- &::after {
139
- transform: rotate(-45deg) translateX(-2.5px);
140
- }
141
- }
142
- }
143
-
144
- .#{$menuPrefixCls}-submenu-selected {
145
- > .#{$menuPrefixCls}-submenu-title {
146
- .#{$menuPrefixCls}-submenu-arrow {
147
- &::before,
148
- &::after {
149
- background-color: #409A74;
150
- }
151
- }
152
- }
153
- }
154
-
155
- > li {
156
- .first-li {
157
- &:hover {
158
- .menu-item-icon {
159
- color: #409A74;
160
- font-weight: 500;
161
- }
162
-
163
- .menu-item-label {
164
- color: #409A74;
165
- font-weight: 500;
166
- }
167
- }
168
- }
169
-
170
- &:hover {
171
- > .menu-item-content {
172
- .menu-item-icon,
173
- .menu-item-label {
174
- color: #409A74;
175
- font-weight: 500;
176
- }
177
- }
178
- }
179
- }
180
-
181
- .rc-menu-submenu {
182
- &:hover {
183
- > .rc-menu-submenu-title {
184
- .menu-item-icon,
185
- .menu-item-label {
186
- color: #409A74;
187
- font-weight: 500;
188
- }
189
-
190
- .#{$menuPrefixCls}-submenu-arrow {
191
- &::before,
192
- &::after {
193
- background: #409A74;
194
- }
195
- }
196
- }
197
- }
198
- }
199
-
200
- .rc-menu-submenu-title {
201
- position: relative;
202
- }
203
-
204
- .rc-menu-submenu {
205
- position: relative;
206
- }
207
-
208
- .menu-item-content {
209
- font-weight: 400;
210
- font-size: 14px;
211
- line-height: 50px;
212
- text-align: left;
213
- }
214
-
215
- .sub-menu-item-label {
216
- padding-left: 11px;
217
- display: flex;
218
- }
219
-
220
- .menu-item-icon {
221
- display: inline-block;
222
- height: 22px;
223
- width: 22px;
224
- }
225
-
226
- .menu-item-label {
227
- display: inline-block;
228
- padding-left: 12px;
229
- border: 1px solid transparent;
230
- color: black;
231
- }
232
-
233
- .submenu-selected {
234
- color: #409A74 !important;
235
- font-weight: 500;
236
- }
237
-
238
- .sub-li {
239
- position: relative;
240
- z-index: 9;
241
-
242
- .menu-item-content {
243
- width: 100%;
244
- padding-right: 24px;
245
-
246
- .menu-item-label {
247
- width: 100%;
248
- display: inline-flex;
249
- align-items: center;
250
- justify-content: space-between;
251
- }
252
- }
253
-
254
- &:hover {
255
- > .menu-item-content {
256
- .menu-item-icon,
257
- .menu-item-label {
258
- color: #409A74;
259
- font-weight: 500;
260
- }
261
- }
262
- }
263
-
264
- &::before {
265
- content: '';
266
- position: absolute;
267
- left: 31px;
268
- top: 24px;
269
- transform: translateY(-50%);
270
- width: 5px;
271
- height: 5px;
272
- background: #b4c4dc;
273
- border-radius: 100%;
274
- z-index: 1;
275
- }
276
-
277
- &::after {
278
- content: '';
279
- position: absolute;
280
- left: 32.9px;
281
- top: 0 !important;
282
- width: 1px;
283
- height: 100%;
284
- background: #b4c4dc;
285
- z-index: 0;
286
- }
287
-
288
- &:only-child::after {
289
- display: none;
290
- }
291
-
292
- &:last-child::after {
293
- height: 50%;
294
- }
295
-
296
- &:first-child::after {
297
- top: 24px !important;
298
- }
299
-
300
- &.rc-menu-submenu-selected {
301
- &::before {
302
- background: #409A74;
303
- }
304
- }
305
-
306
- &.rc-menu-item-selected {
307
- &::before {
308
- background: #409A74;
309
- }
310
- }
311
-
312
- &:not(.rc-menu-submenu) {
313
- height: 52px;
314
- display: flex;
315
- align-items: center;
316
- box-shadow: 0px 0px 30px 0px transparent;
317
-
318
- &.rc-menu-item-selected {
319
- .menu-item-content {
320
- width: 100%;
321
- padding-right: 24px;
322
- }
323
- .menu-item-label {
324
- display: flex;
325
- align-items: center;
326
- padding-left: 12px;
327
- width: 100%;
328
- height: 40px;
329
- background: #D3F1E4;
330
- border-radius: 10px;
331
- backdrop-filter: blur(10px);
332
- transition: all 0.3s ease-in-out;
333
- }
334
- }
335
- }
336
- }
337
-
338
- .grand-li {
339
- background: rgba(255,255,255,0.40);
340
- position: relative;
341
- z-index: 9;
342
- display: flex;
343
- align-items: center;
344
- margin-left: 2px;
345
-
346
- .menu-item-content {
347
- width: 100%;
348
- padding-right: 24px;
349
- height: 52px;
350
- display: flex;
351
- align-items: center;
352
-
353
- .menu-item-label {
354
- width: 100%;
355
- display: inline-flex;
356
- align-items: center;
357
- justify-content: space-between;
358
- }
359
- }
360
-
361
- &:hover {
362
- > .menu-item-content {
363
- .menu-item-icon,
364
- .menu-item-label {
365
- color: #409A74;
366
- font-weight: 500;
367
- }
368
- }
369
- }
370
-
371
- &:last-child {
372
- box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.05);
373
- }
374
-
375
- &::before {
376
- content: '';
377
- position: absolute;
378
- left: 49px;
379
- top: 50%;
380
- width: 5px;
381
- height: 5px;
382
- background: #b4c4dc;
383
- border-radius: 100%;
384
- transform: translateY(-50%);
385
- z-index: 1;
386
- }
387
-
388
- &::after {
389
- content: '';
390
- position: absolute;
391
- left: 51px;
392
- top: 0;
393
- width: 1px;
394
- height: 100%;
395
- background: #b4c4dc;
396
- z-index: 0;
397
- }
398
-
399
- &:only-child::after {
400
- display: none;
401
- }
402
-
403
- &:last-child::after {
404
- height: 50%;
405
- }
406
-
407
- &:first-child::after {
408
- top: 50% !important;
409
- }
410
-
411
- &.rc-menu-item-selected {
412
- &::before {
413
- background: #409A74;
414
- }
415
- }
416
-
417
- &.rc-menu-item-selected {
418
- .menu-item-label {
419
- padding-left: 12px;
420
- width: 100%;
421
- height: 40px;
422
- background: #D3F1E4;
423
- border-radius: 10px;
424
- backdrop-filter: blur(10px);
425
- transition: all 0.3s ease-in-out;
426
- }
427
-
428
- &::before {
429
- background: #409A74;
430
- }
431
- }
432
- }
433
- }
434
-
435
- .menu-cloud-collapsed {
436
- display: flex;
437
- flex-direction: column;
438
- align-items: center;
439
- list-style: none;
440
- cursor: pointer;
441
-
442
- .menu-item-icon {
443
- display: inline-block;
444
- height: 22px;
445
- color: #04073b;
446
-
447
- &:hover {
448
- color: #409A74;
449
- font-weight: 500;
450
- }
451
- }
452
-
453
- .submenu-selected {
454
- color: #409A74;
455
- font-weight: 500;
456
- }
457
-
458
- .menu-item-content {
459
- font-weight: 400;
460
- font-size: 14px;
461
- margin-top: 30px;
462
- line-height: 24px;
463
- text-align: left;
464
- }
465
- }
466
-
467
- .cpc-icon {
468
- display: inline-block;
469
- height: 22px;
470
- width: 22px;
471
- }
472
- }
473
-
474
- $header-height: 62px;
475
- $base-color: #c6538c;
476
-
477
- body {
478
- overflow: hidden;
479
- }
480
-
481
- .layout-warps-cloud {
482
- display: flex;
483
- padding: 12px;
484
- background: linear-gradient(223deg, #F3FBFD 0%, #e9f7f8 30%, #F8FDFA 100%);
485
- box-shadow: inset 0px -1px 0px 0px #edeefd;
486
-
487
- ::-webkit-scrollbar {
488
- display: none;
489
- }
490
-
491
- .trigger-cloud {
492
- margin-right: 16px;
493
- width: 30px;
494
- height: 30px;
495
- background: #409a7475;
496
- box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.05);
497
- border-radius: 4px;
498
- border: 1px solid rgba(255, 255, 255, 0.55);
499
- backdrop-filter: blur(10px);
500
- display: flex;
501
- justify-content: center;
502
- align-items: center;
503
- }
504
-
505
- .close-trigger-cloud {
506
- position: relative;
507
- z-index: 10;
508
- margin-top: 24px;
509
- width: 30px;
510
- height: 30px;
511
- background: #409a7475;
512
- box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.05);
513
- border-radius: 4px;
514
- border: 1px solid rgba(255, 255, 255, 0.55);
515
- backdrop-filter: blur(10px);
516
- display: flex;
517
- justify-content: center;
518
- align-items: center;
519
- cursor: pointer;
520
- }
521
-
522
- .search-cloud {
523
- height: 40px;
524
- box-shadow:
525
- inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05),
526
- inset 0px -2px 0px 0px rgba(255, 255, 255, 0.3);
527
- border-radius: 10px;
528
- backdrop-filter: blur(10px);
529
- position: relative;
530
- z-index: 11;
531
-
532
- .search-bg-mask {
533
- position: absolute;
534
- top: 0;
535
- right: 0;
536
- width: 93px;
537
- height: 38px;
538
-
539
- img {
540
- width: 93px;
541
- height: 37px;
542
- }
543
- }
544
-
545
- .search-input {
546
- width: 100%;
547
- height: 100%;
548
- background: transparent;
549
- border: none;
550
- outline: none;
551
- padding-left: 45px;
552
- line-height: 32px;
553
- font-size: 14px;
554
- color: #7d8295;
555
-
556
- &:hover {
557
- background: rgba(0, 0, 0, 0.05);
558
- }
559
-
560
- border-radius: 10px;
561
- backdrop-filter: blur(10px);
562
-
563
- &::placeholder {
564
- color: #817f9b;
565
- }
566
- }
567
-
568
- .search-icon {
569
- position: absolute;
570
- left: 12px;
571
- top: 11px;
572
- }
573
-
574
- .search-command {
575
- position: absolute;
576
- right: 4px;
577
- top: 4px;
578
- width: 40px;
579
- height: 30px;
580
- background: #f0f4fe;
581
- border-radius: 8px;
582
- border: 1px solid #eceefc;
583
- backdrop-filter: blur(10px);
584
- display: flex;
585
- justify-content: center;
586
- align-items: center;
587
- font-size: 14px;
588
- color: #4f4b81;
589
- line-height: 17px;
590
- }
591
- }
592
-
593
- .search-mobile-cloud {
594
- width: 40px;
595
- height: 40px;
596
- box-shadow:
597
- inset 0px 2px 1px 0px rgba(0, 0, 0, 0.05),
598
- inset 0px -2px 0px 0px rgba(255, 255, 255, 0.3);
599
- border-radius: 10px;
600
- backdrop-filter: blur(10px);
601
- padding-top: 11px;
602
- padding-left: 12px;
603
- cursor: pointer;
604
- }
605
- }
606
-
607
- .layout-side-mask1-cloud {
608
- background: white;
609
- position: absolute;
610
- top: 0;
611
- left: 0;
612
- width: 100%;
613
- height: 100%;
614
- border-radius: 16px;
615
- z-index: 9;
616
- }
617
-
618
- .layout-side-mask2-cloud {
619
- background: linear-gradient( 227deg, #F0FBF3 0%, #E5F6FA 100%);
620
- position: absolute;
621
- top: 0;
622
- left: 0;
623
- width: 100%;
624
- height: 100%;
625
- border-radius: 16px;
626
- z-index: 10;
627
- }
628
-
629
- .layout-side-cloud {
630
- background: transparent !important;
631
- position: relative;
632
- height: calc(100vh - 24px);
633
- user-select: none;
634
- border: 2px solid white;
635
- border-radius: 16px;
636
- padding-top: 24px;
637
- overflow: visible;
638
-
639
- .header-logo-cloud {
640
- padding-left: 16px;
641
- display: flex;
642
- justify-content: space-between;
643
- cursor: pointer;
644
- height: 30px;
645
- position: relative;
646
- z-index: 11;
647
-
648
- .logo-sub {
649
- width: 31px;
650
- height: 30px;
651
- }
652
-
653
- .logo-base {
654
- height: 30px;
655
- width: 105px;
656
- }
657
- }
658
- }
659
-
660
- .layout-header-cloud {
661
- z-index: 1;
662
- height: $header-height;
663
- background: linear-gradient(223deg, #faf8ff26 0%, #eefaf5 29%, #ffffff 100%);
664
- border-radius: 16px;
665
- border: 1px solid #ffffff;
666
- position: relative;
667
- display: flex;
668
- justify-content: flex-start;
669
- align-items: center;
670
-
671
- .app-name {
672
- margin-left: 24px;
673
- font-weight: 500;
674
- color: rgba(0, 0, 0, 0.65);
675
- }
676
-
677
- .layout-header-fill-cloud {
678
- flex: 1;
679
- }
680
-
681
- .layout-header-actions-cloud {
682
- display: flex;
683
- justify-content: flex-start;
684
- align-items: center;
685
- height: 100%;
686
- max-width: 400px;
687
- z-index: 2;
688
-
689
- .actions-item {
690
- line-height: 22px;
691
- font-size: 14px;
692
- height: 36px;
693
- border-radius: 6px;
694
- transition: all 0.3s;
695
- cursor: pointer;
696
- margin: 0 4px;
697
- padding: 0 4px;
698
-
699
- display: flex;
700
- justify-content: center;
701
- align-items: center;
702
-
703
- &:hover {
704
- background: rgba(0, 0, 0, 0.06);
705
- }
706
- }
707
- }
708
-
709
- .layout-header-user-cloud {
710
- height: 48px;
711
- display: flex;
712
- font-size: 14px;
713
- justify-content: flex-start;
714
- align-items: center;
715
- z-index: 2;
716
- transition: all 0.3s;
717
- padding: 4px 12px;
718
- margin: 0 12px;
719
- border-radius: 6px;
720
- cursor: pointer;
721
-
722
- &:hover {
723
- background: rgba(0, 0, 0, 0.06);
724
- }
725
-
726
- .avatar {
727
- width: 40px;
728
- height: 40px;
729
- border-radius: 50%;
730
- margin-right: 12px;
731
- }
732
- }
733
- }
734
-
735
- .layout-main-cloud {
736
- flex: 1;
737
- height: 100%;
738
- padding-left: 12px;
739
- overflow: auto;
740
- }
741
-
742
- .layout-content-cloud {
743
- width: 100%;
744
- height: calc(100vh - #{$header-height} - 12px - 24px);
745
- overflow: auto;
746
- margin-top: 12px;
747
- border-radius: 16px;
748
- }
749
-
750
- .rc-menu-collapse {
751
- overflow: hidden;
752
- transition: height 0.3s ease-out;
753
- }
754
-
755
- .rc-menu-hidden {
756
- height: 0;
757
- overflow: hidden;
758
- }
759
-
760
- .lists-cloud {
761
- position: absolute;
762
- z-index: 1000;
763
- width: 88%;
764
- background: linear-gradient(218deg, #fefefe 0%, #f6fcfb 29%, #e5f6fa8c 100%);
765
- box-shadow: inset 0px -1px 0px 0px #edeefd;
766
- color: black;
767
- border-radius: 16px;
768
- box-shadow:
769
- 0 8px 20px rgba(0, 0, 0, 0.1),
770
- inset 0 1px 0 rgba(255, 255, 255, 0.1);
771
- backdrop-filter: blur(10px);
772
- padding: 16px;
773
- border: 1px solid rgba(255, 255, 255, 0.08);
774
- animation: dropDown 0.2s ease-out;
775
-
776
- .ant-list-header {
777
- padding: 0 0 12px;
778
- font-weight: 500;
779
- font-size: 14px;
780
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
781
- display: flex;
782
- align-items: center;
783
- justify-content: space-between;
784
- }
785
-
786
- .ant-list-item {
787
- color: black;
788
- cursor: pointer;
789
- padding: 10px 12px;
790
- margin: 4px 0;
791
- border-radius: 8px;
792
- transition: all 0.2s ease;
793
- display: flex;
794
- align-items: center;
795
- gap: 12px;
796
- font-size: 14px;
797
-
798
- &:hover {
799
- background: rgba(0, 0, 0, 0.08);
800
- transform: translateX(2px);
801
- }
802
-
803
- .search-item-icon {
804
- color: rgba(0, 0, 0, 0.9);
805
- font-size: 16px;
806
- }
807
-
808
- .search-item-content {
809
- flex: 1;
810
- }
811
-
812
- .search-item-title {
813
- font-size: 14px;
814
- color: rgba(0, 0, 0, 0.95);
815
- }
816
-
817
- .search-item-description {
818
- font-size: 12px;
819
- color: rgba(0, 0, 0, 0.6);
820
- margin-top: 2px;
821
- }
822
-
823
- .search-item-shortcut {
824
- font-size: 12px;
825
- color: rgba(0, 0, 0, 0.5);
826
- background: rgba(0, 0, 0, 0.1);
827
- padding: 2px 6px;
828
- border-radius: 4px;
829
- }
830
- }
831
- }
832
-
833
- // 箭头向下样式
834
- .down {
835
- transform: rotate(0deg);
836
- transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
837
- }
838
-
839
- // 箭头向上样式
840
- .up {
841
- transform: rotate(180deg);
842
- transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
843
- }
844
-
845
- // 箭头切换动画
846
- .arrow-transition {
847
- transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
848
-
849
- &.down-to-up {
850
- animation: colorRotateUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
851
- }
852
-
853
- &.up-to-down {
854
- animation: colorRotateDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
855
- }
856
- }
857
-
858
- @keyframes colorRotateUp {
859
- 0% {
860
- transform: rotate(0deg) scale(1);
861
- color: currentColor;
862
- }
863
- 50% {
864
- transform: rotate(90deg) scale(1.2);
865
- color: #1890ff;
866
- }
867
- 100% {
868
- transform: rotate(180deg) scale(1);
869
- color: currentColor;
870
- }
871
- }
872
-
873
- @keyframes colorRotateDown {
874
- 0% {
875
- transform: rotate(180deg) scale(1);
876
- color: currentColor;
877
- }
878
- 50% {
879
- transform: rotate(90deg) scale(1.2);
880
- color: #1890ff;
881
- }
882
- 100% {
883
- transform: rotate(0deg) scale(1);
884
- color: currentColor;
885
- }
886
- }