main.css
25.5 KB
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
/* 字体引入 - 必须在所有其他语句之前 */
@import url('https://fonts.googleapis.com/css2?family=Source+Han+Sans+CN:wght@400;500;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
/* DIN 字体配置(数字专用)*/
@font-face {
font-family: 'DIN';
src: local('DIN Regular'), local('DIN-Regular');
font-weight: 400;
font-style: normal;
unicode-range: U+0030-0039, U+002E, U+002C, U+0025, U+00A5, U+0024;
}
@font-face {
font-family: 'DIN';
src: local('DIN Medium'), local('DIN-Medium');
font-weight: 500;
font-style: normal;
unicode-range: U+0030-0039, U+002E, U+002C, U+0025, U+00A5, U+0024;
}
@font-face {
font-family: 'DIN';
src: local('DIN Bold'), local('DIN-Bold');
font-weight: 700;
font-style: normal;
unicode-range: U+0030-0039, U+002E, U+002C, U+0025, U+00A5, U+0024;
}
@layer base {
html,
body {
margin: 0 !important;
padding: 0 !important;
height: 100% !important;
border: 0 !important;
}
body {
position: relative !important;
}
* {
box-sizing: border-box;
}
}
/* 覆盖 Element Plus 遮罩定位,彻底贴合视口 - 只在对话框打开时应用 */
.el-overlay-dialog {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
z-index: 2000 !important;
overflow: hidden !important;
}
.el-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
margin: 0 !important;
padding: 0 !important;
z-index: 2000 !important;
overflow: hidden !important;
}
/* 基础排版系统 */
@layer base {
h1 {
font-size: 1.5rem; /* 24px */
font-weight: 500;
line-height: 1.5;
}
h2 {
font-size: 1.25rem; /* 20px */
font-weight: 500;
line-height: 1.5;
}
h3 {
font-size: 1.125rem; /* 18px */
font-weight: 500;
line-height: 1.5;
}
h4 {
font-size: 1rem; /* 16px */
font-weight: 500;
line-height: 1.5;
}
p {
font-size: 1rem; /* 16px */
font-weight: 400;
line-height: 1.5;
}
label {
font-size: 1rem; /* 16px */
font-weight: 500;
line-height: 1.5;
}
button {
font-size: 1rem; /* 16px */
font-weight: 500;
line-height: 1.5;
}
input, select, textarea {
font-size: 1rem; /* 16px */
font-weight: 400;
line-height: 1.5;
}
}
/* 表格样式优化 */
@layer components {
.table-hover tbody tr:hover {
background-color: rgba(0, 0, 0, 0.03);
}
.table-striped tbody tr:nth-child(even) {
background-color: rgba(0, 0, 0, 0.02);
}
}
/* 隐藏滚动条但保持滚动功能 */
@layer utilities {
.hide-scrollbar {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
}
.hide-scrollbar::-webkit-scrollbar {
display: none; /* Chrome, Safari, and Opera */
}
}
/* Element Plus 主题色配置 - 符合设计规范 - 强制覆盖 */
:root {
--el-color-primary: #3b82f6 !important;
--el-color-primary-light-1: #4f8ff7;
--el-color-primary-light-2: #639cf8;
--el-color-primary-light-3: #77a9f9;
--el-color-primary-light-4: #8bb6fa;
--el-color-primary-light-5: #9fc3fb;
--el-color-primary-light-6: #b3d0fc;
--el-color-primary-light-7: #c7ddfd;
--el-color-primary-light-8: #dbeafe;
--el-color-primary-light-9: #eff7ff;
--el-color-primary-dark-2: #2563eb;
/* 成功色 */
--el-color-success: #10b981;
--el-color-success-light-3: #6ee7b7;
--el-color-success-light-5: #a7f3d0;
--el-color-success-light-7: #d1fae5;
--el-color-success-light-8: #ecfdf5;
--el-color-success-light-9: #f0fdf4;
--el-color-success-dark-2: #059669;
/* 警告色 */
--el-color-warning: #f59e0b;
--el-color-warning-light-3: #fcd34d;
--el-color-warning-light-5: #fde68a;
--el-color-warning-light-7: #fef3c7;
--el-color-warning-light-8: #fffbeb;
--el-color-warning-light-9: #fefce8;
--el-color-warning-dark-2: #d97706;
/* 错误色 */
--el-color-error: #d4183d;
--el-color-danger: #d4183d;
--el-color-error-light-3: #f87171;
--el-color-error-light-5: #fca5a5;
--el-color-error-light-7: #fee2e2;
--el-color-error-light-8: #fef2f2;
--el-color-error-light-9: #fefefe;
--el-color-error-dark-2: #b91c1c;
--el-color-danger-dark-2: #b91c1c;
/* 信息色 */
--el-color-info: #3b82f6;
--el-color-info-light-3: #93c5fd;
--el-color-info-light-5: #bfdbfe;
--el-color-info-light-7: #dbeafe;
--el-color-info-light-8: #eff6ff;
--el-color-info-light-9: #f0f9ff;
--el-color-info-dark-2: #2563eb;
/* 边框圆角 - 符合设计规范 */
--el-border-radius-base: 8px;
--el-border-radius-small: 6px;
--el-border-radius-round: 8px;
/* 字体 */
--el-font-family: 'DIN', 'Source Han Sans CN', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
/* 全局表单组件和按钮高度统一为40px */
.el-button {
height: 40px !important;
min-height: 40px !important;
}
.el-input .el-input__wrapper {
height: 40px !important;
min-height: 40px !important;
}
.el-select .el-select__wrapper {
height: 40px !important;
min-height: 40px !important;
}
.el-date-editor .el-input__wrapper {
height: 40px !important;
min-height: 40px !important;
}
.el-date-editor--daterange.el-input__wrapper {
height: 40px !important;
min-height: 40px !important;
}
.el-date-editor--daterange .el-range-input {
height: 38px !important;
line-height: 38px !important;
}
.el-textarea .el-textarea__inner {
min-height: 40px !important;
}
/* 全局卡片圆角统一为8px,移除默认内边距 */
.el-card {
border-radius: 8px !important;
}
.el-card .el-card__body {
border-radius: 8px !important;
padding: 0 !important;
}
/* 全局表格文字大小统一为14px */
.el-table {
font-size: 14px !important;
}
.el-table .el-table__cell {
font-size: 14px !important;
}
.el-table .el-table__header-wrapper .el-table__cell {
font-size: 14px !important;
}
.el-table .el-table__body-wrapper .el-table__cell {
font-size: 14px !important;
}
.el-table td,
.el-table th {
font-size: 14px !important;
}
/* 强制覆盖 Element Plus 按钮主题色 - 但不影响链接按钮 */
.el-button--primary:not(.is-link) {
background-color: #3b82f6 !important;
border-color: #3b82f6 !important;
}
.el-button--primary:not(.is-link):hover {
background-color: #2563eb !important;
border-color: #2563eb !important;
}
.el-button--primary:not(.is-link):active {
background-color: #1d4ed8 !important;
border-color: #1d4ed8 !important;
}
.el-button--primary:not(.is-link):focus {
background-color: #3b82f6 !important;
border-color: #3b82f6 !important;
}
/* 角色管理组件样式 */
@layer components {
/* 角色管理对话框样式 */
.role-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
border-bottom: 1px solid #f0f0f0 !important;
margin-bottom: 0 !important;
}
.role-dialog .el-dialog__body {
padding: 24px !important;
}
.role-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
border-top: 1px solid #f0f0f0 !important;
margin-top: 0 !important;
}
/* 表格样式优化 */
.el-table .el-table__cell {
border-bottom: 1px solid rgb(243 244 246) !important;
}
.el-table--border::after {
display: none !important;
}
.el-table--border .el-table__cell {
border-right: none !important;
}
/* 全局表格外轮廓描边与圆角 */
.el-table {
border: 1px solid #e5e7eb !important; /* 更细的浅灰描边 */
border-radius: 8px !important; /* 8px 圆角 */
overflow: hidden !important; /* 裁剪圆角 */
}
.el-table--border {
border: 1px solid #e5e7eb !important; /* 更细的浅灰描边 */
}
/* 全局灰色表头 */
.el-table__header-wrapper,
.el-table__header {
background-color: #f3f4f6 !important;
}
.el-table th.el-table__cell {
background-color: #f3f4f6 !important; /* 灰色表头 */
border-right: none !important; /* 去掉纵向分割线 */
border-bottom: 1px solid #d1d5db !important; /* 仅保留下边线 */
color: #374151 !important;
font-weight: 500 !important;
}
.el-table th.el-table__cell:last-child {
border-right: none !important; /* 再次确保最后一列无右边线 */
}
/* 固定列头保持灰色背景 */
.el-table__fixed-header-wrapper .el-table__header,
.el-table__fixed,
.el-table__fixed-right .el-table th.el-table__cell {
background-color: #f3f4f6 !important;
}
/* 权限树节点样式 */
.permission-tree-node {
transition: all 0.2s ease;
}
.permission-tree-node:hover {
background-color: rgb(250 250 250);
}
/* 标签样式优化 */
.el-tag--primary.is-plain {
background-color: rgb(239 246 255) !important;
border-color: rgb(147 197 253) !important;
color: rgb(37 99 235) !important;
}
.el-tag--success.is-plain {
background-color: rgb(240 253 244) !important;
border-color: rgb(134 239 172) !important;
color: rgb(22 163 74) !important;
}
.el-tag--info.is-plain {
background-color: rgb(249 250 251) !important;
border-color: rgb(209 213 219) !important;
color: rgb(75 85 99) !important;
}
/* 表格操作列链接文字按钮样式 - 完整四种状态 */
.el-table .el-button--primary.is-link,
.el-button--primary.is-link,
.el-button.el-button--primary.is-link,
.el-table .el-button.el-button--primary.is-link,
.el-table .el-button--primary.is-link.el-button,
.el-button--primary.is-link.el-button {
/* 默认状态 - 强制透明背景 */
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
border: none !important;
border-color: transparent !important;
padding: 4px 8px !important;
box-shadow: none !important;
color: #3b82f6 !important; /* 主题色 */
text-decoration: none !important;
font-size: 14px !important; /* 字号14px */
font-weight: 400 !important;
line-height: 1.5 !important;
cursor: pointer !important;
transition: all 0.2s ease !important;
outline: none !important;
}
.el-table .el-button--primary.is-link:hover,
.el-button--primary.is-link:hover,
.el-button.el-button--primary.is-link:hover,
.el-table .el-button.el-button--primary.is-link:hover,
.el-table .el-button--primary.is-link.el-button:hover,
.el-button--primary.is-link.el-button:hover {
/* 悬停状态 - 强制无背景色 */
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
border: none !important;
border-color: transparent !important;
box-shadow: none !important;
color: #2563eb !important; /* 更深的蓝色 */
text-decoration: none !important;
font-size: 14px !important;
transform: none !important;
}
.el-table .el-button--primary.is-link:active,
.el-button--primary.is-link:active,
.el-button.el-button--primary.is-link:active,
.el-table .el-button.el-button--primary.is-link:active,
.el-table .el-button--primary.is-link.el-button:active,
.el-button--primary.is-link.el-button:active {
/* 点击状态 - 强制无背景色 */
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
border: none !important;
border-color: transparent !important;
box-shadow: none !important;
color: #1d4ed8 !important; /* 最深的蓝色 */
text-decoration: none !important;
font-size: 14px !important;
transform: scale(0.98) !important; /* 轻微缩放效果 */
}
.el-table .el-button--primary.is-link:focus,
.el-button--primary.is-link:focus,
.el-button.el-button--primary.is-link:focus,
.el-table .el-button.el-button--primary.is-link:focus,
.el-table .el-button--primary.is-link.el-button:focus,
.el-button--primary.is-link.el-button:focus {
/* 聚焦状态 - 强制无背景色 */
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
border: none !important;
border-color: transparent !important;
box-shadow: none !important; /* 移除聚焦环 */
color: #3b82f6 !important;
text-decoration: none !important;
font-size: 14px !important;
outline: none !important;
}
.el-table .el-button--primary.is-link:disabled,
.el-table .el-button--primary.is-link.is-disabled,
.el-button--primary.is-link:disabled,
.el-button--primary.is-link.is-disabled,
.el-button.el-button--primary.is-link:disabled,
.el-button.el-button--primary.is-link.is-disabled {
/* 禁用状态 */
background-color: transparent !important;
background: transparent !important;
border: none !important;
border-color: transparent !important;
box-shadow: none !important;
color: #9ca3af !important; /* 灰色 */
text-decoration: none !important;
font-size: 14px !important;
cursor: not-allowed !important;
opacity: 0.6 !important;
transform: none !important;
}
.el-table .el-button--primary.is-link:disabled:hover,
.el-table .el-button--primary.is-link.is-disabled:hover,
.el-button--primary.is-link:disabled:hover,
.el-button--primary.is-link.is-disabled:hover,
.el-button.el-button--primary.is-link:disabled:hover,
.el-button.el-button--primary.is-link.is-disabled:hover {
/* 禁用状态悬停时不变 */
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
color: #9ca3af !important;
cursor: not-allowed !important;
transform: none !important;
}
/* 强制覆盖Element Plus链接按钮的所有可能背景样式 */
.el-button.is-link,
.el-button.is-link:hover,
.el-button.is-link:focus,
.el-button.is-link:active,
.el-table .el-button.is-link,
.el-table .el-button.is-link:hover,
.el-table .el-button.is-link:focus,
.el-table .el-button.is-link:active {
background-color: transparent !important;
background: transparent !important;
background-image: none !important;
border: none !important;
border-color: transparent !important;
box-shadow: none !important;
}
/* Element Plus Dialog 遮罩层修复 - 仅在对话框存在时应用 */
.el-overlay-dialog {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
z-index: 2000 !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
}
/* 修复对话框本身的定位 */
.el-overlay-dialog .el-dialog {
position: relative !important;
margin: 0 auto !important;
transform: none !important;
top: auto !important;
left: auto !important;
z-index: 2001 !important;
}
/* 确保遮罩层背景正确显示 */
.el-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
height: 100vh !important;
background-color: rgba(0, 0, 0, 0.5) !important;
z-index: 2000 !important;
margin: 0 !important;
padding: 0 !important;
overflow: hidden !important;
}
/* 表格中的开关样式 */
.el-table .el-switch.is-checked .el-switch__core {
background-color: #3b82f6 !important;
border-color: #3b82f6 !important;
}
.el-table .el-switch:not(.is-checked) .el-switch__core {
background-color: #9ca3af !important;
border-color: #9ca3af !important;
}
/* 单选按钮选中状态样式 */
.el-radio.is-checked .el-radio__input .el-radio__inner {
background-color: #3b82f6 !important;
border-color: #3b82f6 !important;
}
.el-radio.is-checked .el-radio__input .el-radio__inner::after {
background-color: #ffffff !important;
}
/* 复选框样式 */
.el-checkbox__inner {
background-color: #ffffff !important;
border: 2px solid #d1d5db !important;
border-radius: 3px !important;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}
.el-checkbox.is-checked .el-checkbox__inner {
background-color: #3b82f6 !important;
border: 2px solid #3b82f6 !important;
box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3) !important;
}
.el-checkbox.is-checked .el-checkbox__inner::after {
border-color: #ffffff !important;
border-width: 2px !important;
}
.el-checkbox__inner:hover {
border: 2px solid #3b82f6 !important;
box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) !important;
}
/* 文字省略样式 */
.el-input__inner {
overflow: hidden !important;
}
.el-input__inner::placeholder {
text-overflow: ellipsis !important;
overflow: hidden !important;
white-space: nowrap !important;
max-width: 100% !important;
}
/* 表格单元格文字省略 */
.el-table .el-table__cell .cell {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
}
/* 通用文字省略类 */
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 搜索输入框省略样式 */
.text-ellipsis-input .el-input__inner {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
}
.text-ellipsis-input .el-input__inner::placeholder {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
direction: ltr !important;
}
/* 批量修改对话框内边距 - 强制覆盖Element Plus默认样式 */
.el-dialog.batch-modify-dialog {
height: 600px !important;
max-height: 80vh !important;
overflow: hidden !important;
display: flex !important;
flex-direction: column !important;
}
.el-dialog.batch-modify-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.el-dialog.batch-modify-dialog .el-dialog__title {
font-size: 18px !important;
font-weight: bold !important;
}
.el-dialog.batch-modify-dialog .el-dialog__body {
padding: 24px !important;
overflow-y: auto !important;
flex: 1 !important;
min-height: 0 !important;
}
.el-dialog.batch-modify-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
flex-shrink: 0 !important;
margin-top: auto !important;
}
/* 更强的选择器覆盖 */
.el-dialog__wrapper .batch-modify-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.el-dialog__wrapper .batch-modify-dialog .el-dialog__body {
padding: 24px !important;
}
.el-dialog__wrapper .batch-modify-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 最强覆盖 - 针对所有可能的选择器 */
[class*="batch-modify-dialog"] .el-dialog__header,
.batch-modify-dialog.el-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
margin: 0 !important;
}
[class*="batch-modify-dialog"] .el-dialog__body,
.batch-modify-dialog.el-dialog .el-dialog__body {
padding: 24px !important;
margin: 0 !important;
}
[class*="batch-modify-dialog"] .el-dialog__footer,
.batch-modify-dialog.el-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
margin: 0 !important;
flex-shrink: 0 !important;
margin-top: auto !important;
}
/* 批量修改对话框中的上传组件样式 */
.batch-modify-dialog .el-upload-dragger {
border: none !important;
border-style: none !important;
border-width: 0 !important;
}
.batch-modify-dialog .el-upload .el-upload-dragger {
border: none !important;
border-style: none !important;
border-width: 0 !important;
}
/* 全局对话框圆角 */
.el-dialog {
border-radius: 12px !important;
padding: 0 !important; /* 去掉对话框本身的16px内边距 */
}
/* 全局对话框标题样式 */
.el-dialog .el-dialog__title {
font-size: 18px !important;
font-weight: 500 !important;
}
/* 全局去掉对话框默认16px内边距 */
.el-dialog .el-dialog__header {
padding: 0 !important;
margin: 0 !important;
}
.el-dialog .el-dialog__body {
padding: 0 !important;
margin: 0 !important;
}
.el-dialog .el-dialog__footer {
padding: 0 !important;
margin: 0 !important;
}
/* 更强力的覆盖,确保所有可能的对话框内边距都被移除 */
.el-dialog__wrapper .el-dialog {
padding: 0 !important;
}
.el-overlay-dialog .el-dialog {
padding: 0 !important;
}
}
/* 全局开关颜色:启用为品牌蓝,禁用为中性灰 */
:root {
--el-switch-on-color: #3b82f6;
--el-switch-off-color: #e5e7eb;
}
.el-switch.is-checked .el-switch__core {
background-color: var(--el-switch-on-color) !important;
border-color: var(--el-switch-on-color) !important;
}
.el-switch .el-switch__core {
background-color: var(--el-switch-off-color) !important;
border-color: var(--el-switch-off-color) !important;
}
/* 全局移除文本按钮的悬浮背景(用于右上角用户信息区域) */
.el-button.is-text,
.el-button.is-text:hover,
.el-button.is-text:focus,
.el-button.is-text:active {
background-color: transparent !important;
box-shadow: none !important;
}
/* Dropdown触发器中的文本按钮同样不显示悬浮背景 */
.el-dropdown .el-button.is-text,
.el-dropdown .el-button.is-text:hover,
.el-dropdown .el-button.is-text:focus,
.el-dropdown .el-button.is-text:active {
background-color: transparent !important;
box-shadow: none !important;
}
/* 批量审核对话框样式 */
.batch-review-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.batch-review-dialog .el-dialog__title {
font-size: 18px !important;
font-weight: bold !important;
}
.batch-review-dialog .el-dialog__body {
padding: 24px !important;
}
.batch-review-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 批量驳回按钮自定义红色 - 线性按钮 */
.batch-review-dialog .el-button--danger.is-plain {
background-color: transparent !important;
border-color: #d4183d !important;
color: #d4183d !important;
}
.batch-review-dialog .el-button--danger.is-plain:hover {
background-color: #d4183d !important;
border-color: #d4183d !important;
color: #ffffff !important;
}
.batch-review-dialog .el-button--danger.is-plain:active {
background-color: #b91c3c !important;
border-color: #b91c3c !important;
color: #ffffff !important;
}
.batch-review-dialog .el-button--danger.is-plain:focus {
background-color: transparent !important;
border-color: #d4183d !important;
color: #d4183d !important;
}
.batch-review-dialog .el-button--danger.is-plain:disabled {
background-color: transparent !important;
border-color: #fee2e2 !important;
color: #991b1b !important;
opacity: 0.5 !important;
}
/* 单个审核对话框样式 */
.single-review-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.single-review-dialog .el-dialog__title {
font-size: 18px !important;
font-weight: bold !important;
}
.single-review-dialog .el-dialog__body {
padding: 24px !important;
}
.single-review-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 单个审核对话框中的驳回按钮 */
.single-review-dialog .el-button--danger.is-plain {
background-color: transparent !important;
border-color: #d4183d !important;
color: #d4183d !important;
}
.single-review-dialog .el-button--danger.is-plain:hover {
background-color: #d4183d !important;
border-color: #d4183d !important;
color: #ffffff !important;
}
/* 批量审核对话框样式(已存在,确保完整) */
.batch-review-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.batch-review-dialog .el-dialog__body {
padding: 24px !important;
}
.batch-review-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 安全验证对话框样式 */
.verify-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.verify-dialog .el-dialog__body {
padding: 24px !important;
}
.verify-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 审核驳回对话框样式 */
.reject-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.reject-dialog .el-dialog__body {
padding: 24px !important;
}
.reject-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 关闭订单对话框样式 */
.close-order-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.close-order-dialog .el-dialog__body {
padding: 24px !important;
}
.close-order-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 业务规则管理对话框样式 */
.business-rule-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.business-rule-dialog .el-dialog__body {
padding: 24px !important;
}
.business-rule-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 批量上传结果对话框样式 */
.upload-result-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.upload-result-dialog .el-dialog__body {
padding: 24px !important;
}
.upload-result-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}
/* 用户管理对话框样式 */
.user-management-dialog .el-dialog__header {
padding: 24px 24px 0 24px !important;
}
.user-management-dialog .el-dialog__body {
padding: 24px !important;
}
.user-management-dialog .el-dialog__footer {
padding: 0 24px 24px 24px !important;
}