@bytenew/bn-applet-ui 1.1.11 → 1.1.12

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/common.scss CHANGED
@@ -1,1408 +1,1358 @@
1
- /** =============================================
2
- * 第一部分:公共基础样式(与 BnBusUi/common.scss 相同)
3
- * 说明:以下样式与 bn-components-v3/BnBusUi/common.scss 保持一致
4
- * ============================================= */
5
-
6
- //对所有元素,选择使用IE的怪异盒模型 wid = padding + wid;
7
- * {
8
- -webkit-box-sizing: border-box;
9
- -moz-box-sizing: border-box;
10
- box-sizing: border-box;
11
- }
12
-
13
- *:before, *:after {
14
- -webkit-box-sizing: border-box;
15
- -moz-box-sizing: border-box;
16
- box-sizing: border-box;
17
- }
18
-
19
- input[type="radio"] {
20
- -webkit-box-sizing: border-box;
21
- -moz-box-sizing: border-box;
22
- box-sizing: border-box;
23
- padding: 0;
24
- }
25
-
26
- input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
27
- height: auto;
28
- }
29
-
30
- input[type="search"] {
31
- -webkit-box-sizing: content-box;
32
- -moz-box-sizing: content-box;
33
- box-sizing: content-box;
34
- -webkit-appearance: textfield;
35
- }
36
-
37
- //重写p标签样式 去掉margin-bottom
38
- p {
39
- margin-bottom: 0 !important;
40
- }
41
-
42
- //改变浏览器滚动条默认样式,但其实我们引用了vue-scroll用来做模拟滚动条。
43
- ::-webkit-scrollbar {
44
- width: 10px;
45
- height: 10px;
46
- }
47
-
48
- ::-webkit-scrollbar-track-piece {
49
- -webkit-border-radius: 8px;
50
- }
51
-
52
- ::-webkit-scrollbar-thumb:vertical {
53
- height: 10px;
54
- background-color: rgba(144, 147, 153, .3);
55
- -webkit-border-radius: 6px;
56
- }
57
-
58
- ::-webkit-scrollbar-thumb:horizontal {
59
- width: 10px;
60
- background-color: rgba(144, 147, 153, .3);
61
- -webkit-border-radius: 6px;
62
- }
63
-
64
- //清除元素默认样式,选择默认字体
65
- #app, html, body {
66
- font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
67
- margin: 0;
68
- background-color: #f9f9fb !important;
69
- }
70
-
71
- input, button {
72
- font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
73
- }
74
-
75
- ul, li {
76
- margin: 0;
77
- padding: 0;
78
- }
79
-
80
- p {
81
- margin-top: 0;
82
- margin-bottom: 0;
83
- }
84
-
85
- input::-webkit-input-placeholder {
86
- color: #A9AAAA;
87
- }
88
-
89
- input::-moz-placeholder {
90
- color: #A9AAAA;
91
- }
92
-
93
- input:-moz-placeholder {
94
- color: #A9AAAA;
95
- }
96
-
97
- input:-ms-input-placeholder {
98
- color: #A9AAAA;
99
- }
100
-
101
- // 处理input type = number的上下箭头
102
- input::-webkit-outer-spin-button,
103
- input::-webkit-inner-spin-button {
104
- -webkit-appearance: none;
105
- }
106
-
107
- input[type="number"] {
108
- -moz-appearance: textfield;
109
- }
110
-
111
- a:hover {
112
- text-decoration: none;
113
- text-underline: none;
114
- }
115
-
116
- a:link {
117
- text-decoration: none;
118
- }
119
-
120
- // 默认容器样式,占满屏幕,存在滚动条
121
- .w-source {
122
- position: fixed;
123
- width: 100%;
124
- height: 100%;
125
- overflow: auto;
126
- background: #f5f5f7;
127
- }
128
-
129
- // 数字、字母超出换行
130
- .w-word-wrap {
131
- word-wrap: break-word
132
- }
133
-
134
- //没有数据时提示文字的样式
135
- .w-empty {
136
- width: 100%;
137
- line-height: 48px;
138
- font-size: 12px;
139
- color: #999;
140
- text-align: center;
141
- }
142
-
143
- //文案提示样式
144
- .w-tip {
145
- font-size: 14px;
146
- padding: 10px;
147
- border: 1px solid;
148
- border-radius: 4px;
149
- border-color: #eee;
150
- background: #FAFAFA;
151
- color: #666;
152
-
153
- &.success {
154
- border-color: #bee0ad;
155
- background: #f0f9eb;
156
- color: #67c23a;
157
- }
158
-
159
- &.info {
160
- border-color: #b9d9fd;
161
- background: #ecf5ff;
162
- color: #409eff;
163
- }
164
-
165
- &.warn {
166
- border-color: #f0c98e;
167
- background: #fdf6ec;
168
- color: #e6a23c;
169
- }
170
-
171
- &.err {
172
- border-color: #f2c8c8;
173
- background: #fef0f0;
174
- color: #f56c6c;
175
- }
176
-
177
- &.no-border {
178
- border: none;
179
- }
180
-
181
- &-num {
182
- font-size: 14px;
183
- font-weight: bold;
184
- color: #409EFF;
185
- margin-right: 6px;
186
- }
187
- }
188
-
189
- //弹性布局 wrap换行 默认是不换行
190
- .w-flex-wrap {
191
- display: flex;
192
- display: -webkit-flex;
193
- display: -moz-flex;
194
- display: -ms-flexbox;
195
- flex-wrap: wrap;
196
- }
197
-
198
- /*
199
- 左右方向
200
- flex-start(默认值):左对齐
201
- flex-end:右对齐
202
- center: 居中
203
- space-between:两端对齐,项目之间的间隔都相等。
204
- space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍。
205
- */
206
- //左右两端
207
- .w-flex-between {
208
- display: flex;
209
- display: -webkit-flex;
210
- display: -moz-flex;
211
- display: -ms-flexbox;
212
- justify-content: space-between;
213
- }
214
-
215
- //左右靠左
216
- .w-flex-left {
217
- display: flex;
218
- display: -webkit-flex;
219
- display: -moz-flex;
220
- display: -ms-flexbox;
221
- justify-content: flex-start;
222
- }
223
-
224
- //左右靠右
225
- .w-flex-right {
226
- display: flex;
227
- display: -webkit-flex;
228
- display: -moz-flex;
229
- display: -ms-flexbox;
230
- justify-content: flex-end;
231
- }
232
-
233
- //横向居中,左右居中
234
- .w-flex-lrCenter {
235
- display: flex;
236
- display: -webkit-flex;
237
- display: -moz-flex;
238
- display: -ms-flexbox;
239
- justify-content: center;
240
- }
241
-
242
- /*
243
- 上下方向
244
- flex-start:交叉轴的起点对齐。
245
- flex-end:交叉轴的终点对齐。
246
- center:交叉轴的中点对齐。
247
- baseline: 项目的第一行文字的基线对齐。
248
- stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
249
- */
250
- //上下居中
251
- .w-flex-center {
252
- display: flex;
253
- align-items: center;
254
- }
255
-
256
- //上下靠上
257
- .w-flex-top {
258
- display: flex;
259
- align-items: flex-start;
260
- }
261
-
262
- //上下靠下
263
- .w-flex-bottom {
264
- display: flex;
265
- align-items: flex-end;
266
- }
267
-
268
- //上下靠下
269
- .w-flex-baseline {
270
- display: flex;
271
- align-items: baseline;
272
- }
273
-
274
- /**
275
- * 动态生成字重类
276
- * 范围:100-900,步进值100
277
- * 示例:
278
- * .w-font-weight400 { font-weight: 400 !important; } // Regular
279
- * .w-font-weight700 { font-weight: 700 !important; } // Bold
280
- */
281
- @for $i from 1 through 9 {
282
- .w-font-weight#{$i * 100} {
283
- font-weight: #{$i * 100} !important;
284
- }
285
- }
286
-
287
- // 定义颜色变量映射
288
- $colors: (
289
- 'black': black,
290
- 'black3': #333333,
291
- 'black4': #444444,
292
- 'black5': #555555,
293
- 'black6': #666666,
294
- 'black7': #777777,
295
- 'black8': #888888,
296
- 'black85': rgba(0, 0, 0, 0.85),
297
- 'black9': #999,
298
- 'white': #FFFFFF,
299
- 'red': #FF5F5F,
300
- 'blue': #409EFF,
301
- 'yellow': #F2DA04,
302
- 'gray': #999999,
303
- 'green': #3d8050,
304
- 'green-min': #50B34B,
305
- 'deep-orange': #FF5722,
306
- 'orange': #FA7D00,
307
- 'purple': #b662ff,
308
- 'pink': #FF6B9A,
309
- 'teal': #20B2AA,
310
- 'cyan': #1BCDDF,
311
- 'brown': #A5673F,
312
- 'indigo': #6610F2,
313
- 'lime': #CDDC39,
314
- 'amber': #FFC107,
315
- 'navy': #001F3F,
316
- 'olive': #808000,
317
- 'maroon': #800000,
318
- 'coral': #FF7F50,
319
- 'turquoise': #40E0D0,
320
- 'violet': #EE82EE,
321
- 'gold': #FFD700
322
- );
323
-
324
- // 使用@each生成颜色类
325
- @each $name, $color in $colors {
326
- .w-color-#{$name} {
327
- @if $name == 'black' {
328
- color: $color !important;
329
- } @else {
330
- color: $color;
331
- }
332
- }
333
- }
334
-
335
- //添加下划线
336
- .w-text-underline {
337
- text-decoration: underline
338
- }
339
-
340
- .w-font-weight {
341
- font-weight: bold;
342
- }
343
-
344
- .clearFix:after {
345
- display: block;
346
- content: "";
347
- clear: both;
348
- }
349
-
350
- .w-text-over {
351
- white-space: nowrap;
352
- overflow: hidden;
353
- text-overflow: ellipsis;
354
- }
355
-
356
- .w-text-over-two {
357
- overflow: hidden;
358
- text-overflow: ellipsis;
359
- display: -webkit-box;
360
- -webkit-line-clamp: 2;
361
- line-clamp: 2;
362
- -webkit-box-orient: vertical;
363
- }
364
-
365
- .w-text-over-three {
366
- overflow: hidden;
367
- text-overflow: ellipsis;
368
- display: -webkit-box;
369
- -webkit-line-clamp: 3;
370
- line-clamp: 3;
371
- -webkit-box-orient: vertical;
372
- }
373
-
374
- .w-text-center {
375
- text-align: center;
376
- }
377
-
378
- .w-text-right {
379
- text-align: right;
380
- }
381
-
382
- .w-text-left {
383
- text-align: left;
384
- }
385
-
386
- .w-float-left {
387
- float: left;
388
- }
389
-
390
- .w-float-right {
391
- float: right;
392
- }
393
-
394
- .w-default-wrap {
395
- position: relative;
396
- width: 100%;
397
- }
398
-
399
- .w-default-hover:hover {
400
- color: #2d8cf0;
401
- cursor: pointer;
402
- }
403
-
404
- .w-cursor-pointer {
405
- cursor: pointer;
406
- outline: none;
407
- }
408
- //0到100的循环生成类
409
- @for $i from 0 through 100 {
410
- /**
411
- * 动态生成flex间隔类
412
- * 示例:
413
- * .w-flex-gap10 { gap: 10px !important; }
414
- * .w-flex-column-gap20 { column-gap: 20px !important; }
415
- * .w-flex-row-gap15 { row-gap: 15px !important; }
416
- */
417
- // 普通间隔(行列间隔相同)
418
- .w-flex-gap#{$i} {
419
- display: flex;
420
- gap: #{$i}px !important;
421
- }
422
-
423
- // 列间隔(水平方向)
424
- .w-flex-column-gap#{$i} {
425
- display: flex;
426
- column-gap: #{$i}px !important;
427
- }
428
-
429
- // 行间隔(垂直方向)
430
- .w-flex-row-gap#{$i} {
431
- display: flex;
432
- row-gap: #{$i}px !important;
433
- }
434
- /**
435
- * 动态生成行高类
436
- * 示例:
437
- * .w-line-height32 { line-height: 32px !important; }
438
- * .w-line-height40 { line-height: 40px !important; }
439
- */
440
- .w-line-height#{$i} {
441
- line-height: #{$i}px !important;
442
- }
443
- /**
444
- * 动态生成圆角类
445
- * 示例:
446
- * .w-radius20 { radius: 20px !important; }
447
- */
448
-
449
- .w-radius#{$i} {
450
- border-radius: #{$i}px !important;
451
- }
452
- .w-radius-bl#{$i} {
453
- border-bottom-left-radius: #{$i}px !important;
454
- }
455
- .w-radius-br#{$i} {
456
- border-bottom-right-radius: #{$i}px !important;
457
- }
458
- .w-radius-tl#{$i} {
459
- border-top-left-radius: #{$i}px !important;
460
- }
461
- .w-radius-tr#{$i} {
462
- border-top-right-radius: #{$i}px !important;
463
- }
464
- /**
465
- * 动态生成padding和margin类
466
- * 示例:
467
- * .w-padding20 { padding: 20px !important; }
468
- * .w-padding-left30 { padding-left: 30px !important; }
469
- * .w-margin15 { margin: 15px !important; }
470
- * .w-margin-top25 { margin-top: 25px !important; }
471
- */
472
- // padding类
473
- .w-padding#{$i} {
474
- padding: #{$i}px !important;
475
- }
476
-
477
- .w-padding-left#{$i} {
478
- padding-left: #{$i}px !important;
479
- }
480
-
481
- .w-padding-right#{$i} {
482
- padding-right: #{$i}px !important;
483
- }
484
- .w-padding-lr#{$i} {
485
- padding-left: #{$i}px !important;
486
- padding-right: #{$i}px !important;
487
- }
488
-
489
- .w-padding-top#{$i} {
490
- padding-top: #{$i}px !important;
491
- }
492
-
493
- .w-padding-bottom#{$i} {
494
- padding-bottom: #{$i}px !important;
495
- }
496
- .w-padding-tb#{$i} {
497
- padding-top: #{$i}px !important;
498
- padding-bottom: #{$i}px !important;
499
- }
500
-
501
- // margin类
502
- .w-margin#{$i} {
503
- margin: #{$i}px !important;
504
- }
505
-
506
- .w-margin-left#{$i} {
507
- margin-left: #{$i}px !important;
508
- }
509
-
510
- .w-margin-right#{$i} {
511
- margin-right: #{$i}px !important;
512
- }
513
-
514
- .w-margin-lr#{$i} {
515
- margin-left: #{$i}px !important;
516
- margin-right: #{$i}px !important;
517
- }
518
-
519
- .w-margin-top#{$i} {
520
- margin-top: #{$i}px !important;
521
- }
522
-
523
- .w-margin-bottom#{$i} {
524
- margin-bottom: #{$i}px !important;
525
- }
526
-
527
- .w-margin-tb#{$i} {
528
- margin-top: #{$i}px !important;
529
- margin-bottom: #{$i}px !important;
530
- }
531
- /**
532
- * 动态生成字体大小类
533
- * 示例:
534
- * .w-font14 { font-size: 14px !important; }
535
- * .w-font24 { font-size: 24px !important; }
536
- */
537
- .w-font#{$i} {
538
- font-size: #{$i}px !important;
539
- }
540
- }
541
- // 基础类名声明(用于编辑器自动补全)
542
- .w-padding,
543
- .w-padding-left,
544
- .w-padding-right,
545
- .w-padding-lr,
546
- .w-padding-top,
547
- .w-padding-bottom,
548
- .w-padding-tb,
549
- .w-margin,
550
- .w-margin-left,
551
- .w-margin-right,
552
- .w-margin-top,
553
- .w-margin-bottom,
554
- .w-margin-lr,
555
- .w-margin-tb,
556
- .w-font-weight,
557
- .w-color-black,
558
- .w-line-height,
559
- .w-border-solid,
560
- .w-border-solid-top,
561
- .w-border-solid-right,
562
- .w-border-solid-bottom,
563
- .w-border-solid-left,
564
- .w-border-dashed,
565
- .w-border-dashed-top,
566
- .w-border-dashed-right,
567
- .w-border-dashed-bottom,
568
- .w-border-dashed-left,
569
- .w-border-dotted,
570
- .w-border-dotted-top,
571
- .w-border-dotted-right,
572
- .w-border-dotted-bottom,
573
- .w-border-dotted-left,
574
- .w-flex-gap,
575
- .w-flex-column-gap,
576
- .w-flex-row-gap,
577
- .w-color-black,
578
- .w-color-black85,
579
- .w-color-black3,
580
- .w-color-black4,
581
- .w-color-black5,
582
- .w-color-black6,
583
- .w-color-black7,
584
- .w-color-black8,
585
- .w-color-black9,
586
- .w-color-white,
587
- .w-color-red,
588
- .w-color-blue,
589
- .w-color-yellow,
590
- .w-color-gray,
591
- .w-color-green,
592
- .w-color-green-min,
593
- .w-color-orange,
594
- .w-color-purple,
595
- .w-color-pink,
596
- .w-color-teal,
597
- .w-color-cyan,
598
- .w-color-brown,
599
- .w-color-indigo,
600
- .w-color-lime,
601
- .w-color-amber,
602
- .w-color-deep-orange,
603
- .w-color-navy,
604
- .w-color-olive,
605
- .w-color-maroon,
606
- .w-color-coral,
607
- .w-color-turquoise,
608
- .w-color-violet,
609
- .w-color-gold,
610
- .w-radius,
611
- .w-radius-bl,
612
- .w-radius-br,
613
- .w-radius-tl,
614
- .w-radius-tr,
615
- {}
616
-
617
-
618
- /** =============================================
619
- * 第二部分:BnAppletUi 独有样式(与 BnBusUi/common.scss 不同)
620
- * 说明:以下样式为本项目独有,BnBusUi中不存在
621
- * ============================================= */
622
-
623
- // 主题色相关
624
- .w-color-theme {
625
- color: #2783F2;
626
- }
627
-
628
- .w-color-blue-deep {
629
- color: #2783F2
630
- }
631
-
632
- .w-color-gray-deep {
633
- color: #666666;
634
- }
635
-
636
- .w-color-black-deep {
637
- color: rgba(0, 0, 0, 0.85);
638
- }
639
-
640
- .w-color-black-deep4 {
641
- color: #444444;
642
- }
643
-
644
- .w-color-light-gray {
645
- color: #999999;
646
- }
647
-
648
- .w-tip-color {
649
- color: #C6D9EE;
650
- }
651
-
652
- .w-font-color65{
653
- color: rgba(0,0,0,0.65);
654
- }
655
-
656
- .w-font-color85{
657
- color: rgba(0,0,0,0.85);
658
- }
659
-
660
- // 边框相关
661
- .w-border-dashed {
662
- border-top: 1px dashed #E9E9E9;
663
- }
664
-
665
- .w-border-solid {
666
- border-top: 1px solid #E9E9E9;
667
- }
668
-
669
- .w-border-bold {
670
- border-top: 2px solid #E9E9E9;
671
- }
672
-
673
- .w-border-radius6 {
674
- border-radius: 6px;
675
- }
676
-
677
- // 按钮相关
678
- .w-brain-input-radius6 .el-input__inner {
679
- border-radius: 6px;
680
- }
681
-
682
- .w-brain-button{
683
- border-radius: 6px;
684
- padding: 9px 10px;
685
- font-size: 12px;
686
- font-weight: 400;
687
- &:hover {
688
- border-color: #409EFF;
689
- }
690
- .wicon{
691
- font-size: inherit;
692
- }
693
- }
694
-
695
- .w-button-border0 {
696
- border: 0px;
697
- }
698
-
699
- // 字体相关
700
- .w-font-min {
701
- font-size: 12px;
702
- }
703
-
704
- .w-font-more13 {
705
- font-size: 13px;
706
- }
707
-
708
- .w-font-more {
709
- font-size: 14px;
710
- }
711
-
712
- .w-font-weight4 {
713
- font-weight: 400;
714
- }
715
-
716
- .w-font-max {
717
- font-size: 16px;
718
- }
719
-
720
- .w-font-big {
721
- font-size: 18px;
722
- }
723
-
724
- // 行高相关
725
- .w-line-height-text {
726
- line-height: 32px;
727
- }
728
-
729
- .w-line-height26 {
730
- line-height: 26px;
731
- }
732
-
733
- // 布局辅助
734
- .w-vertical-align-middle {
735
- vertical-align: middle;
736
- }
737
-
738
- .flex-center{
739
- display: flex;
740
- justify-content: space-between;
741
- align-items: center;
742
- }
743
-
744
- .flex-evenly {
745
- display: flex;
746
- display: -webkit-flex;
747
- display: -moz-flex;
748
- display: -ms-flexbox;
749
- justify-content: space-evenly;
750
- }
751
-
752
- .flex-between {
753
- display: flex;
754
- display: -webkit-flex;
755
- display: -moz-flex;
756
- display: -ms-flexbox;
757
- justify-content: space-between;
758
- }
759
-
760
- .flex-start {
761
- display: flex;
762
- display: -webkit-flex;
763
- display: -moz-flex;
764
- display: -ms-flexbox;
765
- }
766
-
767
- .flex-wrap {
768
- display: flex;
769
- display: -webkit-flex;
770
- display: -moz-flex;
771
- display: -ms-flexbox;
772
- flex-wrap: wrap;
773
- }
774
-
775
- // KPI 指标卡片样式
776
- .w-kpi-warp {
777
- display: flex;
778
- align-items: center;
779
- justify-content: center;
780
- height: 100%;
781
- white-space: nowrap;
782
- width: 100%;
783
- }
784
-
785
- .w-kpi-box {
786
- display: flex;
787
- flex-direction: column;
788
- justify-content: center;
789
- padding: 4px 0;
790
- max-width: 100%;
791
- }
792
-
793
- .w-kpi-title {
794
- color: #666;
795
- max-width: 100%;
796
- font-size: .4em;
797
- overflow: hidden;
798
- white-space: nowrap;
799
- text-overflow: ellipsis;
800
- }
801
-
802
- .w-kpi-main {
803
- color: #444;
804
- max-width: 100%;
805
- font-size: .9em;
806
- font-family: AlibabaPuHuiTi, Avenir, wf_SegoeUI, "Segoe UI", Segoe, "Segoe WP", Tahoma, Verdana, Arial, sans-serif;
807
- font-weight: 600;
808
- overflow: hidden;
809
- white-space: nowrap;
810
- text-overflow: ellipsis;
811
-
812
- &.w-cursor-pointer {
813
- color: #2783F2;
814
- }
815
- }
816
-
817
- .w-kpi-footer {
818
- color: #666;
819
- max-width: 100%;
820
- font-size: .35em;
821
- font-weight: lighter;
822
- overflow: hidden;
823
- white-space: nowrap;
824
- text-overflow: ellipsis;
825
- }
826
-
827
- .w-kpi-plus {
828
- color: #FA5555;
829
- }
830
-
831
- .w-kpi-nge {
832
- color: #170;
833
- }
834
-
835
- // 闪烁动画
836
- @keyframes flash {
837
- 0% {
838
- background-color: transparent;
839
- }
840
- 50% {
841
- background-color: yellow;
842
- }
843
- 100% {
844
- background-color: transparent;
845
- }
846
- }
847
-
848
- //富文本编辑器内table code blockquote等标签的自定义样式
849
- .w-editor-content {
850
- /* table 样式 */
851
- table {
852
- border-top: 1px solid #ccc;
853
- border-left: 1px solid #ccc;
854
- }
855
-
856
- table td,
857
- table th {
858
- border-bottom: 1px solid #ccc;
859
- border-right: 1px solid #ccc;
860
- padding: 3px 5px;
861
- }
862
-
863
- table th {
864
- border-bottom: 2px solid #ccc;
865
- text-align: center;
866
- }
867
-
868
- /* blockquote 样式 */
869
- blockquote {
870
- display: block;
871
- border-left: 8px solid #d0e5f2;
872
- padding: 5px 10px;
873
- margin: 10px 0;
874
- line-height: 1.4;
875
- font-size: 100%;
876
- background-color: #f1f1f1;
877
- }
878
-
879
- /* code 样式 */
880
- code {
881
- display: inline-block;
882
- *display: inline;
883
- *zoom: 1;
884
- background-color: #f1f1f1;
885
- border-radius: 3px;
886
- padding: 3px 5px;
887
- margin: 0 3px;
888
- }
889
-
890
- pre code {
891
- display: block;
892
- }
893
-
894
- /* ul ol 样式 */
895
- ul, ol {
896
- margin: 10px 0 10px 20px;
897
- }
898
-
899
- h1, h2, h3, h4, h5, h6 {
900
- animation: flash 0.5s ease infinite;
901
- }
902
- }
903
-
904
- // 班牛旗帜颜色
905
- .flag-color-gray {
906
- color: #999999;
907
- }
908
-
909
- .flag-color-red {
910
- color: #EA3D3D;
911
- }
912
-
913
- .flag-color-yellow {
914
- color: #FFC60B;
915
- }
916
-
917
- .flag-color-green {
918
- color: #3ACB36;
919
- }
920
-
921
- .flag-color-blue {
922
- color: #0664F0;
923
- }
924
-
925
- .flag-color-purple {
926
- color: #BA2FFF;
927
- }
928
-
929
- .flag-color-orange {
930
- color: #F48804;
931
- }
932
-
933
- .flag-color-lightBlue {
934
- color: #41B4FA;
935
- }
936
-
937
- .flag-color-lightPink {
938
- color: #E5B6B6;
939
- }
940
-
941
- .flag-color-bottleGreen {
942
- color: #9BA217;
943
- }
944
-
945
- .flag-color-peach {
946
- color: #E4248E;
947
- }
948
-
949
- // 青色(抖音的,在班牛没有这个颜色,班牛这边是深绿色)
950
- .flag-color-cyan {
951
- color: #9BA217;
952
- }
953
-
954
- // 固定的不可变的UI统一图标颜色
955
- .icon-worksheet1 {
956
- color: #2783F2 !important;
957
- }
958
-
959
- .icon-workflow2 {
960
- color: #722ed1 !important;
961
- }
962
-
963
- .icon-board1 {
964
- color: #52C41A !important;
965
- }
966
-
967
- .icon-folder3 {
968
- color: #FAAD14 !important;
969
- }
970
-
971
- .icon-folder3-close {
972
- color: #FAAD14 !important;
973
- }
974
-
975
- .icon-appletIcon {
976
- color: #3370FF;
977
- }
978
-
979
- .icon-cooApp {
980
- color: #ff4d4f;
981
- }
982
-
983
-
984
- /** =============================================
985
- * 第三部分:Element UI 组件样式覆盖
986
- * 说明:以下为覆盖 Element UI 组件的默认样式
987
- * ============================================= */
988
-
989
- //Message 消息提醒样式重写(仿 Ant Design 风格)
990
- .el-message {
991
- min-width: 0 !important;
992
- padding: 10px 16px !important;
993
- background-color: #fff !important;
994
- border-radius: 4px !important;
995
- border: none !important;
996
- box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
997
- display: inline-flex !important;
998
- align-items: center !important;
999
-
1000
- .el-message__icon {
1001
- margin-right: 10px !important;
1002
- flex-shrink: 0 !important;
1003
- }
1004
-
1005
- .el-message__content {
1006
- font-size: 14px !important;
1007
- color: rgba(0, 0, 0, 0.85) !important;
1008
- line-height: 1.5715 !important;
1009
- }
1010
-
1011
- .el-message__closeBtn {
1012
- color: rgba(0, 0, 0, 0.45) !important;
1013
- font-size: 12px !important;
1014
- top: 50% !important;
1015
- transform: translateY(-50%) !important;
1016
- &:hover {
1017
- color: rgba(0, 0, 0, 0.75) !important;
1018
- }
1019
- }
1020
- }
1021
-
1022
- //MessageBox.confirm 样式重写
1023
- .el-message-box__header {
1024
- padding: 15px !important;
1025
- }
1026
-
1027
- .el-message-box__content {
1028
- padding: 15px !important;
1029
- }
1030
-
1031
- .el-message-box__btns button:nth-child(2) {
1032
- margin-left: 15px !important;
1033
- }
1034
-
1035
- .el-message-box {
1036
- padding-bottom: 15px !important;
1037
- }
1038
-
1039
- .el-message-box__title {
1040
- color: #4D4D4D !important;
1041
- }
1042
-
1043
- /*去除 dialog 组件 header部分的默认内边距*/
1044
- .w-dialog {
1045
- .el-dialog__header {
1046
- padding: 0 !important;
1047
- }
1048
-
1049
- &-title {
1050
- position: relative;
1051
- padding: 16px 20px;
1052
- font-size: 16px;
1053
- color: #666;
1054
- border-bottom: 1px solid #E9E9E9;
1055
- }
1056
-
1057
- &-close {
1058
- position: absolute;
1059
- right: 10px;
1060
- top: 15px;
1061
- width: 20px;
1062
- height: 16px;
1063
- text-align: center;
1064
- line-height: 16px;
1065
- cursor: pointer;
1066
-
1067
- span {
1068
- color: #999;
1069
- font-size: 14px;
1070
- }
1071
- }
1072
- }
1073
-
1074
- .w-dialog-height {
1075
- height: calc(100% - 100px);
1076
- }
1077
-
1078
- /* header和footer带边框的dialog,并修改对应button样式 */
1079
- .w-dialog-border {
1080
- &.w-center {
1081
- margin-top: 0;
1082
- top: 50%;
1083
- transform: translateY(-50%);
1084
- }
1085
-
1086
- > .el-dialog__header {
1087
- font-size: 16px;
1088
- font-weight: 500;
1089
- color: rgba(0, 0, 0, 0.85);
1090
- line-height: 24px;
1091
- padding: 16px 24px;
1092
- border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1093
-
1094
- .el-dialog__title {
1095
- height: 24px;
1096
- font-size: 16px;
1097
- font-weight: 500;
1098
- color: rgba(0, 0, 0, 0.85);
1099
- line-height: 24px;
1100
- }
1101
-
1102
- .el-dialog__headerbtn {
1103
- top: 16px;
1104
- right: 22px;
1105
-
1106
- > i {
1107
- color: rgba(0, 0, 0, 0.65);
1108
- font-size: 16px;
1109
-
1110
- &:hover {
1111
- color: #2783f2;
1112
- }
1113
- }
1114
- }
1115
- }
1116
-
1117
- > .el-dialog__body {
1118
- padding: 0;
1119
- }
1120
-
1121
- > .el-dialog__footer {
1122
- padding: 10px 24px;
1123
- border-top: 1px solid rgba(0, 0, 0, 0.06);
1124
-
1125
- > .w-dialog-border-footer {
1126
- position: relative;
1127
-
1128
- > .el-button {
1129
- height: 32px;
1130
- padding: 5px 16px;
1131
-
1132
- > span {
1133
- height: 22px;
1134
- font-size: 14px;
1135
- font-weight: 400;
1136
- line-height: 22px;
1137
- vertical-align: middle;
1138
- }
1139
-
1140
- &.el-button--default {
1141
- background: #fff;
1142
- color: rgba(0, 0, 0, 0.65);
1143
- border: 1px solid rgba(0, 0, 0, 0.15);
1144
-
1145
- &:hover {
1146
- border-color: #2783f2;
1147
-
1148
- > span {
1149
- color: #2783f2;
1150
- }
1151
- }
1152
- }
1153
-
1154
- &.el-button--primary {
1155
- > span {
1156
- color: #fff;
1157
- }
1158
- }
1159
-
1160
- &.el-button--primary:not(.is-disabled) {
1161
- border-color: #2783f2;
1162
- background: #2783f2;
1163
-
1164
- &:hover {
1165
- background: rgba($color: #2783f2, $alpha: 0.9);
1166
- }
1167
- }
1168
-
1169
- &.el-button--danger:not(.is-disabled) {
1170
- border-color: #FA5555;
1171
- background: #FA5555;
1172
-
1173
- &:hover {
1174
- background: rgba($color: #FA5555, $alpha: 0.9);
1175
- }
1176
- }
1177
- }
1178
- }
1179
- }
1180
- }
1181
-
1182
- /*去除 dialog 组件 默认的下边距*/
1183
- .el-dialog {
1184
- margin-bottom: 0 !important;
1185
- }
1186
-
1187
- /*默认去除弹框组件中dialog的body部分的内边距*/
1188
- .el-dialog__body {
1189
- padding: 0 !important;
1190
- height: 100%;
1191
- }
1192
-
1193
- /*默认去除弹框组件中popover的内边距*/
1194
- .el-popover {
1195
- padding: 0 !important;
1196
- min-width: 50px !important;
1197
- }
1198
-
1199
- /*去除颜色选择板清空按钮的多余内边距*/
1200
- .el-color-dropdown__link-btn {
1201
- padding: 7px 5px !important;
1202
- }
1203
-
1204
- /*Tabs组件去除头部的下边距margin*/
1205
- .el-tabs {
1206
- .el-tabs__header {
1207
- margin-bottom: 0;
1208
- }
1209
- }
1210
-
1211
- /*Select组件打开时的抖动问题*/
1212
- .el-select__input {
1213
- vertical-align: baseline !important;
1214
- }
1215
-
1216
- /*去除下拉菜单的默认上边距*/
1217
- .el-dropdown-menu {
1218
- margin-top: 0 !important;
1219
- }
1220
-
1221
- /*覆盖 select 组件的默认样式,用于高级筛选中计算条件的位置*/
1222
- .height-search-select {
1223
- input {
1224
- border: none;
1225
- padding-left: 10px;
1226
- padding-right: 25px;
1227
- background: #F5F5F5;
1228
- color: #3BA3F8;
1229
- }
1230
- }
1231
-
1232
- /*dialog 相关样式*/
1233
- .w-edit-task-dialog {
1234
- height: calc(100% - 10px);
1235
- }
1236
-
1237
- /*抽屉组件body的高度自适应100%*/
1238
- .el-drawer__body {
1239
- height: 100%;
1240
- }
1241
-
1242
- /*成员管理-添加部门/成员 dialog header - title字体居中设置*/
1243
- .systemRole-content .el-dialog__header {
1244
- text-align: center;
1245
- }
1246
-
1247
- /*成员管理-系统角色 dialog默认30%,这里需自定义设置最小宽度*/
1248
- .systemRole .el-dialog {
1249
- min-width: 500px;
1250
- }
1251
-
1252
- /*去除tabs组件底部边框*/
1253
- .w-clear-tabs-border {
1254
- .el-tabs__nav-wrap::after {
1255
- display: none;
1256
- }
1257
- }
1258
-
1259
- /*标签组件的删除按钮的重定义*/
1260
- .el-tag .el-icon-close {
1261
- top: 0 !important;
1262
- font-size: 14px !important;
1263
- }
1264
-
1265
- .el-radio__label {
1266
- padding-left: 5px !important;
1267
- font-weight: 400;
1268
- }
1269
-
1270
- /*解决在表格中悬浮提示的文字太宽的样式*/
1271
- .el-tooltip__popper {
1272
- max-width: 300px;
1273
- }
1274
-
1275
- /*工单表格中单元格的样式*/
1276
- .w-project-table-cell {
1277
- padding: 0 !important;
1278
-
1279
- .cell {
1280
- white-space: nowrap !important;
1281
- }
1282
- }
1283
-
1284
- /*工单表格中单元格的样式*/
1285
- .w-project-title-cell {
1286
- background: #F5F8FC !important;
1287
- padding: 4px 0 !important;
1288
- color: #666;
1289
-
1290
- .cell {
1291
- white-space: nowrap !important;
1292
- overflow: hidden;
1293
- text-overflow: ellipsis;
1294
- }
1295
- }
1296
-
1297
- /*工单表格横向滚动条,鼠标悬浮时变粗*/
1298
- .el-table__body-wrapper::-webkit-scrollbar {
1299
- height: 14px !important;
1300
- }
1301
-
1302
- .el-table__body-wrapper::-webkit-scrollbar-thumb:vertical {
1303
- height: 14px;
1304
- background-color: rgba(144, 147, 153, .3);
1305
- -webkit-border-radius: 8px;
1306
- }
1307
-
1308
- /*工单表格中朴素单元格的样式*/
1309
- .w-project-table-cell-s {
1310
- .cell {
1311
- white-space: nowrap !important;
1312
- }
1313
- }
1314
-
1315
- /*工单表格子表单表格样式*/
1316
- .w-project-table-child-form-row {
1317
- vertical-align: top !important;
1318
-
1319
- .cell {
1320
- white-space: nowrap !important;
1321
- }
1322
- }
1323
-
1324
- //element message-box 标题字号修改
1325
- .el-message-box__title {
1326
- font-size: 16px;
1327
- }
1328
-
1329
- //退款管理弹窗
1330
- .refundInformation {
1331
- height: 100%;
1332
- }
1333
-
1334
- .refundInformation .el-dialog {
1335
- height: calc(100% - 120px);
1336
- }
1337
-
1338
- //新小程序列表页面修改tabs组件行高
1339
- .w-set-tabs-line-height .el-tabs__nav-next, .w-set-tabs-line-height .el-tabs__nav-prev {
1340
- line-height: 58px !important;
1341
- }
1342
-
1343
- .w-set-tabs-line-height .el-tabs__item {
1344
- height: 50px;
1345
- line-height: 50px;
1346
- }
1347
-
1348
- /* 修改button primary 默认颜色 */
1349
- .el-button--primary {
1350
- border-color: #2783F2;
1351
- background: #2783F2;
1352
-
1353
- &:hover {
1354
- background: rgba($color: #2783F2, $alpha: 0.9);
1355
- }
1356
- }
1357
-
1358
- .el-button{
1359
- border-radius: 4px;
1360
- }
1361
-
1362
- .el-tabs__nav-wrap::after {
1363
- height: 1px;
1364
- }
1365
-
1366
- //修复 Chrome 浏览器自动更新为checkbox默认添加margin-top:16px问题
1367
- .el-checkbox {
1368
- margin-top: 0 !important;
1369
- padding-bottom: 0 !important;
1370
- }
1371
- /* 统一修改 element 走马灯组件样式 */
1372
- .el-carousel.el-carousel--horizontal {
1373
- border-radius: 18px;
1374
- overflow: hidden;
1375
- border: 1px solid #e4e7ed;
1376
- }
1377
-
1378
- .el-carousel__item {
1379
- border-radius: 18px;
1380
- }
1381
-
1382
- .el-carousel__indicator {
1383
- .el-carousel__button {
1384
- height: 8px;
1385
- width: 8px;
1386
- border-radius: 4px;
1387
- background: #d7d5d5;
1388
- }
1389
-
1390
- &.is-active {
1391
- .el-carousel__button {
1392
- background: #fff;
1393
- width: 24px;
1394
- }
1395
- }
1396
- }
1397
-
1398
- //输入框圆角修改为8px
1399
- .el-input__wrapper{
1400
- border-radius: 8px;
1401
- }
1402
-
1403
- /* Element Plus Dialog 样式修改 */
1404
- .el-dialog {
1405
- border-radius: 18px;
1406
- overflow: hidden;
1407
- margin-bottom: 0;
1
+ /** =============================================
2
+ * 第一部分:公共基础样式(与 BnBusUi/common.scss 相同)
3
+ * 说明:以下样式与 bn-components-v3/BnBusUi/common.scss 保持一致
4
+ * ============================================= */
5
+
6
+ //对所有元素,选择使用IE的怪异盒模型 wid = padding + wid;
7
+ * {
8
+ -webkit-box-sizing: border-box;
9
+ -moz-box-sizing: border-box;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ *:before, *:after {
14
+ -webkit-box-sizing: border-box;
15
+ -moz-box-sizing: border-box;
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ input[type="radio"] {
20
+ -webkit-box-sizing: border-box;
21
+ -moz-box-sizing: border-box;
22
+ box-sizing: border-box;
23
+ padding: 0;
24
+ }
25
+
26
+ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
27
+ height: auto;
28
+ }
29
+
30
+ input[type="search"] {
31
+ -webkit-box-sizing: content-box;
32
+ -moz-box-sizing: content-box;
33
+ box-sizing: content-box;
34
+ -webkit-appearance: textfield;
35
+ }
36
+
37
+ //重写p标签样式 去掉margin-bottom
38
+ p {
39
+ margin-bottom: 0 !important;
40
+ }
41
+
42
+ //改变浏览器滚动条默认样式,但其实我们引用了vue-scroll用来做模拟滚动条。
43
+ ::-webkit-scrollbar {
44
+ width: 10px;
45
+ height: 10px;
46
+ }
47
+
48
+ ::-webkit-scrollbar-track-piece {
49
+ -webkit-border-radius: 8px;
50
+ }
51
+
52
+ ::-webkit-scrollbar-thumb:vertical {
53
+ height: 10px;
54
+ background-color: rgba(144, 147, 153, .3);
55
+ -webkit-border-radius: 6px;
56
+ }
57
+
58
+ ::-webkit-scrollbar-thumb:horizontal {
59
+ width: 10px;
60
+ background-color: rgba(144, 147, 153, .3);
61
+ -webkit-border-radius: 6px;
62
+ }
63
+
64
+ //清除元素默认样式,选择默认字体
65
+ #app, html, body {
66
+ font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
67
+ margin: 0;
68
+ background-color: #f9f9fb !important;
69
+ }
70
+
71
+ input, button {
72
+ font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Source Han Sans", "Noto Sans CJK Sc", "Microsoft YaHei", "Microsoft Jhenghei", sans-serif;
73
+ }
74
+
75
+ ul, li {
76
+ margin: 0;
77
+ padding: 0;
78
+ }
79
+
80
+ p {
81
+ margin-top: 0;
82
+ margin-bottom: 0;
83
+ }
84
+
85
+ input::-webkit-input-placeholder {
86
+ color: #A9AAAA;
87
+ }
88
+
89
+ input::-moz-placeholder {
90
+ color: #A9AAAA;
91
+ }
92
+
93
+ input:-moz-placeholder {
94
+ color: #A9AAAA;
95
+ }
96
+
97
+ input:-ms-input-placeholder {
98
+ color: #A9AAAA;
99
+ }
100
+
101
+ // 处理input type = number的上下箭头
102
+ input::-webkit-outer-spin-button,
103
+ input::-webkit-inner-spin-button {
104
+ -webkit-appearance: none;
105
+ }
106
+
107
+ input[type="number"] {
108
+ -moz-appearance: textfield;
109
+ }
110
+
111
+ a:hover {
112
+ text-decoration: none;
113
+ text-underline: none;
114
+ }
115
+
116
+ a:link {
117
+ text-decoration: none;
118
+ }
119
+
120
+ // 默认容器样式,占满屏幕,存在滚动条
121
+ .w-source {
122
+ position: fixed;
123
+ width: 100%;
124
+ height: 100%;
125
+ overflow: auto;
126
+ background: #f5f5f7;
127
+ }
128
+
129
+ // 数字、字母超出换行
130
+ .w-word-wrap {
131
+ word-wrap: break-word
132
+ }
133
+
134
+ //没有数据时提示文字的样式
135
+ .w-empty {
136
+ width: 100%;
137
+ line-height: 48px;
138
+ font-size: 12px;
139
+ color: #999;
140
+ text-align: center;
141
+ }
142
+
143
+ //文案提示样式
144
+ .w-tip {
145
+ font-size: 14px;
146
+ padding: 10px;
147
+ border: 1px solid;
148
+ border-radius: 4px;
149
+ border-color: #eee;
150
+ background: #FAFAFA;
151
+ color: #666;
152
+
153
+ &.success {
154
+ border-color: #bee0ad;
155
+ background: #f0f9eb;
156
+ color: #67c23a;
157
+ }
158
+
159
+ &.info {
160
+ border-color: #b9d9fd;
161
+ background: #ecf5ff;
162
+ color: #409eff;
163
+ }
164
+
165
+ &.warn {
166
+ border-color: #f0c98e;
167
+ background: #fdf6ec;
168
+ color: #e6a23c;
169
+ }
170
+
171
+ &.err {
172
+ border-color: #f2c8c8;
173
+ background: #fef0f0;
174
+ color: #f56c6c;
175
+ }
176
+
177
+ &.no-border {
178
+ border: none;
179
+ }
180
+
181
+ &-num {
182
+ font-size: 14px;
183
+ font-weight: bold;
184
+ color: #409EFF;
185
+ margin-right: 6px;
186
+ }
187
+ }
188
+
189
+ //弹性布局 wrap换行 默认是不换行
190
+ .w-flex-wrap {
191
+ display: flex;
192
+ display: -webkit-flex;
193
+ display: -moz-flex;
194
+ display: -ms-flexbox;
195
+ flex-wrap: wrap;
196
+ }
197
+
198
+ /*
199
+ 左右方向
200
+ flex-start(默认值):左对齐
201
+ flex-end:右对齐
202
+ center: 居中
203
+ space-between:两端对齐,项目之间的间隔都相等。
204
+ space-around:每个项目两侧的间隔相等。所以,项目之间的间隔比项目与边框的间隔大一倍。
205
+ */
206
+ //左右两端
207
+ .w-flex-between {
208
+ display: flex;
209
+ display: -webkit-flex;
210
+ display: -moz-flex;
211
+ display: -ms-flexbox;
212
+ justify-content: space-between;
213
+ }
214
+
215
+ //左右靠左
216
+ .w-flex-left {
217
+ display: flex;
218
+ display: -webkit-flex;
219
+ display: -moz-flex;
220
+ display: -ms-flexbox;
221
+ justify-content: flex-start;
222
+ }
223
+
224
+ //左右靠右
225
+ .w-flex-right {
226
+ display: flex;
227
+ display: -webkit-flex;
228
+ display: -moz-flex;
229
+ display: -ms-flexbox;
230
+ justify-content: flex-end;
231
+ }
232
+
233
+ //横向居中,左右居中
234
+ .w-flex-lrCenter {
235
+ display: flex;
236
+ display: -webkit-flex;
237
+ display: -moz-flex;
238
+ display: -ms-flexbox;
239
+ justify-content: center;
240
+ }
241
+
242
+ /*
243
+ 上下方向
244
+ flex-start:交叉轴的起点对齐。
245
+ flex-end:交叉轴的终点对齐。
246
+ center:交叉轴的中点对齐。
247
+ baseline: 项目的第一行文字的基线对齐。
248
+ stretch(默认值):如果项目未设置高度或设为auto,将占满整个容器的高度。
249
+ */
250
+ //上下居中
251
+ .w-flex-center {
252
+ display: flex;
253
+ align-items: center;
254
+ }
255
+
256
+ //上下靠上
257
+ .w-flex-top {
258
+ display: flex;
259
+ align-items: flex-start;
260
+ }
261
+
262
+ //上下靠下
263
+ .w-flex-bottom {
264
+ display: flex;
265
+ align-items: flex-end;
266
+ }
267
+
268
+ //上下靠下
269
+ .w-flex-baseline {
270
+ display: flex;
271
+ align-items: baseline;
272
+ }
273
+
274
+ /**
275
+ * 动态生成flex间隔类
276
+ * 范围:4-30px
277
+ * 示例:
278
+ * .w-flex-gap10 { gap: 10px !important; }
279
+ * .w-flex-column-gap20 { column-gap: 20px !important; }
280
+ * .w-flex-row-gap15 { row-gap: 15px !important; }
281
+ */
282
+ @for $i from 4 through 30 {
283
+ // 普通间隔(行列间隔相同)
284
+ .w-flex-gap#{$i} {
285
+ display: flex;
286
+ gap: #{$i}px !important;
287
+ }
288
+
289
+ // 列间隔(水平方向)
290
+ .w-flex-column-gap#{$i} {
291
+ display: flex;
292
+ column-gap: #{$i}px !important;
293
+ }
294
+
295
+ // 行间隔(垂直方向)
296
+ .w-flex-row-gap#{$i} {
297
+ display: flex;
298
+ row-gap: #{$i}px !important;
299
+ }
300
+ }
301
+
302
+ /**
303
+ * 动态生成padding和margin类
304
+ * 范围:0-60px
305
+ * 示例:
306
+ * .w-padding20 { padding: 20px !important; }
307
+ * .w-padding-left30 { padding-left: 30px !important; }
308
+ * .w-margin15 { margin: 15px !important; }
309
+ * .w-margin-top25 { margin-top: 25px !important; }
310
+ */
311
+ @for $i from 0 through 60 {
312
+ // padding类
313
+ .w-padding#{$i} {
314
+ padding: #{$i}px !important;
315
+ }
316
+
317
+ .w-padding-left#{$i} {
318
+ padding-left: #{$i}px !important;
319
+ }
320
+
321
+ .w-padding-right#{$i} {
322
+ padding-right: #{$i}px !important;
323
+ }
324
+ .w-padding-lr#{$i} {
325
+ padding-left: #{$i}px !important;
326
+ padding-right: #{$i}px !important;
327
+ }
328
+
329
+ .w-padding-top#{$i} {
330
+ padding-top: #{$i}px !important;
331
+ }
332
+
333
+ .w-padding-bottom#{$i} {
334
+ padding-bottom: #{$i}px !important;
335
+ }
336
+ .w-padding-tb#{$i} {
337
+ padding-top: #{$i}px !important;
338
+ padding-bottom: #{$i}px !important;
339
+ }
340
+
341
+ // margin类
342
+ .w-margin#{$i} {
343
+ margin: #{$i}px !important;
344
+ }
345
+
346
+ .w-margin-left#{$i} {
347
+ margin-left: #{$i}px !important;
348
+ }
349
+
350
+ .w-margin-right#{$i} {
351
+ margin-right: #{$i}px !important;
352
+ }
353
+
354
+ .w-margin-lr#{$i} {
355
+ margin-left: #{$i}px !important;
356
+ margin-right: #{$i}px !important;
357
+ }
358
+
359
+ .w-margin-top#{$i} {
360
+ margin-top: #{$i}px !important;
361
+ }
362
+
363
+ .w-margin-bottom#{$i} {
364
+ margin-bottom: #{$i}px !important;
365
+ }
366
+
367
+ .w-margin-tb#{$i} {
368
+ margin-top: #{$i}px !important;
369
+ margin-bottom: #{$i}px !important;
370
+ }
371
+ }
372
+
373
+ /**
374
+ * 动态生成字体大小类
375
+ * 范围:10-60px
376
+ * 示例:
377
+ * .w-font14 { font-size: 14px !important; }
378
+ * .w-font24 { font-size: 24px !important; }
379
+ */
380
+ @for $i from 10 through 60 {
381
+ .w-font#{$i} {
382
+ font-size: #{$i}px !important;
383
+ }
384
+ }
385
+
386
+ /**
387
+ * 动态生成字重类
388
+ * 范围:100-900,步进值100
389
+ * 示例:
390
+ * .w-font-weight400 { font-weight: 400 !important; } // Regular
391
+ * .w-font-weight700 { font-weight: 700 !important; } // Bold
392
+ */
393
+ @for $i from 1 through 9 {
394
+ .w-font-weight#{$i * 100} {
395
+ font-weight: #{$i * 100} !important;
396
+ }
397
+ }
398
+
399
+ /**
400
+ * 动态生成行高类
401
+ * 范围:10-100px
402
+ * 示例:
403
+ * .w-line-height32 { line-height: 32px !important; }
404
+ * .w-line-height40 { line-height: 40px !important; }
405
+ */
406
+ @for $i from 10 through 100 {
407
+ .w-line-height#{$i} {
408
+ line-height: #{$i}px !important;
409
+ }
410
+ }
411
+
412
+ // 定义颜色变量映射
413
+ $colors: (
414
+ 'black': black,
415
+ 'black3': #333333,
416
+ 'black4': #444444,
417
+ 'black5': #555555,
418
+ 'black6': #666666,
419
+ 'black7': #777777,
420
+ 'black8': #888888,
421
+ 'black85': rgba(0, 0, 0, 0.85),
422
+ 'black9': #999,
423
+ 'white': #FFFFFF,
424
+ 'red': #FF5F5F,
425
+ 'blue': #409EFF,
426
+ 'yellow': #F2DA04,
427
+ 'gray': #999999,
428
+ 'green': #3d8050,
429
+ 'green-min': #50B34B,
430
+ 'deep-orange': #FF5722,
431
+ 'orange': #FA7D00,
432
+ 'purple': #b662ff,
433
+ 'pink': #FF6B9A,
434
+ 'teal': #20B2AA,
435
+ 'cyan': #1BCDDF,
436
+ 'brown': #A5673F,
437
+ 'indigo': #6610F2,
438
+ 'lime': #CDDC39,
439
+ 'amber': #FFC107,
440
+ 'navy': #001F3F,
441
+ 'olive': #808000,
442
+ 'maroon': #800000,
443
+ 'coral': #FF7F50,
444
+ 'turquoise': #40E0D0,
445
+ 'violet': #EE82EE,
446
+ 'gold': #FFD700
447
+ );
448
+
449
+ // 使用@each生成颜色类
450
+ @each $name, $color in $colors {
451
+ .w-color-#{$name} {
452
+ @if $name == 'black' {
453
+ color: $color !important;
454
+ } @else {
455
+ color: $color;
456
+ }
457
+ }
458
+ }
459
+
460
+ //添加下划线
461
+ .w-text-underline {
462
+ text-decoration: underline
463
+ }
464
+
465
+ .w-font-weight {
466
+ font-weight: bold;
467
+ }
468
+
469
+ .clearFix:after {
470
+ display: block;
471
+ content: "";
472
+ clear: both;
473
+ }
474
+
475
+ .w-text-over {
476
+ white-space: nowrap;
477
+ overflow: hidden;
478
+ text-overflow: ellipsis;
479
+ }
480
+
481
+ .w-text-over-two {
482
+ overflow: hidden;
483
+ text-overflow: ellipsis;
484
+ display: -webkit-box;
485
+ -webkit-line-clamp: 2;
486
+ line-clamp: 2;
487
+ -webkit-box-orient: vertical;
488
+ }
489
+
490
+ .w-text-over-three {
491
+ overflow: hidden;
492
+ text-overflow: ellipsis;
493
+ display: -webkit-box;
494
+ -webkit-line-clamp: 3;
495
+ line-clamp: 3;
496
+ -webkit-box-orient: vertical;
497
+ }
498
+
499
+ .w-text-center {
500
+ text-align: center;
501
+ }
502
+
503
+ .w-text-right {
504
+ text-align: right;
505
+ }
506
+
507
+ .w-text-left {
508
+ text-align: left;
509
+ }
510
+
511
+ .w-float-left {
512
+ float: left;
513
+ }
514
+
515
+ .w-float-right {
516
+ float: right;
517
+ }
518
+
519
+ .w-default-wrap {
520
+ position: relative;
521
+ width: 100%;
522
+ }
523
+
524
+ .w-default-hover:hover {
525
+ color: #2d8cf0;
526
+ cursor: pointer;
527
+ }
528
+
529
+ .w-cursor-pointer {
530
+ cursor: pointer;
531
+ outline: none;
532
+ }
533
+
534
+ // 基础类名声明(用于编辑器自动补全)
535
+ .w-padding,
536
+ .w-padding-left,
537
+ .w-padding-right,
538
+ .w-padding-lr,
539
+ .w-padding-top,
540
+ .w-padding-bottom,
541
+ .w-padding-tb,
542
+ .w-margin,
543
+ .w-margin-left,
544
+ .w-margin-right,
545
+ .w-margin-top,
546
+ .w-margin-bottom,
547
+ .w-margin-lr,
548
+ .w-margin-tb,
549
+ .w-font-weight,
550
+ .w-color-black,
551
+ .w-line-height,
552
+ .w-border-solid,
553
+ .w-border-solid-top,
554
+ .w-border-solid-right,
555
+ .w-border-solid-bottom,
556
+ .w-border-solid-left,
557
+ .w-border-dashed,
558
+ .w-border-dashed-top,
559
+ .w-border-dashed-right,
560
+ .w-border-dashed-bottom,
561
+ .w-border-dashed-left,
562
+ .w-border-dotted,
563
+ .w-border-dotted-top,
564
+ .w-border-dotted-right,
565
+ .w-border-dotted-bottom,
566
+ .w-border-dotted-left,
567
+ .w-flex-gap,
568
+ .w-flex-column-gap,
569
+ .w-flex-row-gap,
570
+ .w-color-black,
571
+ .w-color-black85,
572
+ .w-color-black3,
573
+ .w-color-black4,
574
+ .w-color-black5,
575
+ .w-color-black6,
576
+ .w-color-black7,
577
+ .w-color-black8,
578
+ .w-color-black9,
579
+ .w-color-white,
580
+ .w-color-red,
581
+ .w-color-blue,
582
+ .w-color-yellow,
583
+ .w-color-gray,
584
+ .w-color-green,
585
+ .w-color-green-min,
586
+ .w-color-orange,
587
+ .w-color-purple,
588
+ .w-color-pink,
589
+ .w-color-teal,
590
+ .w-color-cyan,
591
+ .w-color-brown,
592
+ .w-color-indigo,
593
+ .w-color-lime,
594
+ .w-color-amber,
595
+ .w-color-deep-orange,
596
+ .w-color-navy,
597
+ .w-color-olive,
598
+ .w-color-maroon,
599
+ .w-color-coral,
600
+ .w-color-turquoise,
601
+ .w-color-violet,
602
+ .w-color-gold
603
+ {}
604
+
605
+
606
+ /** =============================================
607
+ * 第二部分:BnAppletUi 独有样式(与 BnBusUi/common.scss 不同)
608
+ * 说明:以下样式为本项目独有,BnBusUi中不存在
609
+ * ============================================= */
610
+
611
+ // 主题色相关
612
+ .w-color-theme {
613
+ color: #2783F2;
614
+ }
615
+
616
+ .w-color-blue-deep {
617
+ color: #2783F2
618
+ }
619
+
620
+ .w-color-gray-deep {
621
+ color: #666666;
622
+ }
623
+
624
+ .w-color-black-deep {
625
+ color: rgba(0, 0, 0, 0.85);
626
+ }
627
+
628
+ .w-color-black-deep4 {
629
+ color: #444444;
630
+ }
631
+
632
+ .w-color-light-gray {
633
+ color: #999999;
634
+ }
635
+
636
+ .w-tip-color {
637
+ color: #C6D9EE;
638
+ }
639
+
640
+ .w-font-color65{
641
+ color: rgba(0,0,0,0.65);
642
+ }
643
+
644
+ .w-font-color85{
645
+ color: rgba(0,0,0,0.85);
646
+ }
647
+
648
+ // 边框相关
649
+ .w-border-dashed {
650
+ border-top: 1px dashed #E9E9E9;
651
+ }
652
+
653
+ .w-border-solid {
654
+ border-top: 1px solid #E9E9E9;
655
+ }
656
+
657
+ .w-border-bold {
658
+ border-top: 2px solid #E9E9E9;
659
+ }
660
+
661
+ .w-border-radius6 {
662
+ border-radius: 6px;
663
+ }
664
+
665
+ // 按钮相关
666
+ .w-brain-input-radius6 .el-input__inner {
667
+ border-radius: 6px;
668
+ }
669
+
670
+ .w-brain-button{
671
+ border-radius: 6px;
672
+ padding: 9px 10px;
673
+ font-size: 12px;
674
+ font-weight: 400;
675
+ &:hover {
676
+ border-color: #409EFF;
677
+ }
678
+ .wicon{
679
+ font-size: inherit;
680
+ }
681
+ }
682
+
683
+ .w-button-border0 {
684
+ border: 0px;
685
+ }
686
+
687
+ // 字体相关
688
+ .w-font-min {
689
+ font-size: 12px;
690
+ }
691
+
692
+ .w-font-more13 {
693
+ font-size: 13px;
694
+ }
695
+
696
+ .w-font-more {
697
+ font-size: 14px;
698
+ }
699
+
700
+ .w-font-weight4 {
701
+ font-weight: 400;
702
+ }
703
+
704
+ .w-font-max {
705
+ font-size: 16px;
706
+ }
707
+
708
+ .w-font-big {
709
+ font-size: 18px;
710
+ }
711
+
712
+ // 行高相关
713
+ .w-line-height-text {
714
+ line-height: 32px;
715
+ }
716
+
717
+ .w-line-height26 {
718
+ line-height: 26px;
719
+ }
720
+
721
+ // 布局辅助
722
+ .w-vertical-align-middle {
723
+ vertical-align: middle;
724
+ }
725
+
726
+ .flex-center{
727
+ display: flex;
728
+ justify-content: space-between;
729
+ align-items: center;
730
+ }
731
+
732
+ .flex-evenly {
733
+ display: flex;
734
+ display: -webkit-flex;
735
+ display: -moz-flex;
736
+ display: -ms-flexbox;
737
+ justify-content: space-evenly;
738
+ }
739
+
740
+ .flex-between {
741
+ display: flex;
742
+ display: -webkit-flex;
743
+ display: -moz-flex;
744
+ display: -ms-flexbox;
745
+ justify-content: space-between;
746
+ }
747
+
748
+ .flex-start {
749
+ display: flex;
750
+ display: -webkit-flex;
751
+ display: -moz-flex;
752
+ display: -ms-flexbox;
753
+ }
754
+
755
+ .flex-wrap {
756
+ display: flex;
757
+ display: -webkit-flex;
758
+ display: -moz-flex;
759
+ display: -ms-flexbox;
760
+ flex-wrap: wrap;
761
+ }
762
+
763
+ // KPI 指标卡片样式
764
+ .w-kpi-warp {
765
+ display: flex;
766
+ align-items: center;
767
+ justify-content: center;
768
+ height: 100%;
769
+ white-space: nowrap;
770
+ width: 100%;
771
+ }
772
+
773
+ .w-kpi-box {
774
+ display: flex;
775
+ flex-direction: column;
776
+ justify-content: center;
777
+ padding: 4px 0;
778
+ max-width: 100%;
779
+ }
780
+
781
+ .w-kpi-title {
782
+ color: #666;
783
+ max-width: 100%;
784
+ font-size: .4em;
785
+ overflow: hidden;
786
+ white-space: nowrap;
787
+ text-overflow: ellipsis;
788
+ }
789
+
790
+ .w-kpi-main {
791
+ color: #444;
792
+ max-width: 100%;
793
+ font-size: .9em;
794
+ font-family: AlibabaPuHuiTi, Avenir, wf_SegoeUI, "Segoe UI", Segoe, "Segoe WP", Tahoma, Verdana, Arial, sans-serif;
795
+ font-weight: 600;
796
+ overflow: hidden;
797
+ white-space: nowrap;
798
+ text-overflow: ellipsis;
799
+
800
+ &.w-cursor-pointer {
801
+ color: #2783F2;
802
+ }
803
+ }
804
+
805
+ .w-kpi-footer {
806
+ color: #666;
807
+ max-width: 100%;
808
+ font-size: .35em;
809
+ font-weight: lighter;
810
+ overflow: hidden;
811
+ white-space: nowrap;
812
+ text-overflow: ellipsis;
813
+ }
814
+
815
+ .w-kpi-plus {
816
+ color: #FA5555;
817
+ }
818
+
819
+ .w-kpi-nge {
820
+ color: #170;
821
+ }
822
+
823
+ // 闪烁动画
824
+ @keyframes flash {
825
+ 0% {
826
+ background-color: transparent;
827
+ }
828
+ 50% {
829
+ background-color: yellow;
830
+ }
831
+ 100% {
832
+ background-color: transparent;
833
+ }
834
+ }
835
+
836
+ //富文本编辑器内table code blockquote等标签的自定义样式
837
+ .w-editor-content {
838
+ /* table 样式 */
839
+ table {
840
+ border-top: 1px solid #ccc;
841
+ border-left: 1px solid #ccc;
842
+ }
843
+
844
+ table td,
845
+ table th {
846
+ border-bottom: 1px solid #ccc;
847
+ border-right: 1px solid #ccc;
848
+ padding: 3px 5px;
849
+ }
850
+
851
+ table th {
852
+ border-bottom: 2px solid #ccc;
853
+ text-align: center;
854
+ }
855
+
856
+ /* blockquote 样式 */
857
+ blockquote {
858
+ display: block;
859
+ border-left: 8px solid #d0e5f2;
860
+ padding: 5px 10px;
861
+ margin: 10px 0;
862
+ line-height: 1.4;
863
+ font-size: 100%;
864
+ background-color: #f1f1f1;
865
+ }
866
+
867
+ /* code 样式 */
868
+ code {
869
+ display: inline-block;
870
+ *display: inline;
871
+ *zoom: 1;
872
+ background-color: #f1f1f1;
873
+ border-radius: 3px;
874
+ padding: 3px 5px;
875
+ margin: 0 3px;
876
+ }
877
+
878
+ pre code {
879
+ display: block;
880
+ }
881
+
882
+ /* ul ol 样式 */
883
+ ul, ol {
884
+ margin: 10px 0 10px 20px;
885
+ }
886
+
887
+ h1, h2, h3, h4, h5, h6 {
888
+ animation: flash 0.5s ease infinite;
889
+ }
890
+ }
891
+
892
+ // 班牛旗帜颜色
893
+ .flag-color-gray {
894
+ color: #999999;
895
+ }
896
+
897
+ .flag-color-red {
898
+ color: #EA3D3D;
899
+ }
900
+
901
+ .flag-color-yellow {
902
+ color: #FFC60B;
903
+ }
904
+
905
+ .flag-color-green {
906
+ color: #3ACB36;
907
+ }
908
+
909
+ .flag-color-blue {
910
+ color: #0664F0;
911
+ }
912
+
913
+ .flag-color-purple {
914
+ color: #BA2FFF;
915
+ }
916
+
917
+ .flag-color-orange {
918
+ color: #F48804;
919
+ }
920
+
921
+ .flag-color-lightBlue {
922
+ color: #41B4FA;
923
+ }
924
+
925
+ .flag-color-lightPink {
926
+ color: #E5B6B6;
927
+ }
928
+
929
+ .flag-color-bottleGreen {
930
+ color: #9BA217;
931
+ }
932
+
933
+ .flag-color-peach {
934
+ color: #E4248E;
935
+ }
936
+
937
+ // 青色(抖音的,在班牛没有这个颜色,班牛这边是深绿色)
938
+ .flag-color-cyan {
939
+ color: #9BA217;
940
+ }
941
+
942
+ // 固定的不可变的UI统一图标颜色
943
+ .icon-worksheet1 {
944
+ color: #2783F2 !important;
945
+ }
946
+
947
+ .icon-workflow2 {
948
+ color: #722ed1 !important;
949
+ }
950
+
951
+ .icon-board1 {
952
+ color: #52C41A !important;
953
+ }
954
+
955
+ .icon-folder3 {
956
+ color: #FAAD14 !important;
957
+ }
958
+
959
+ .icon-folder3-close {
960
+ color: #FAAD14 !important;
961
+ }
962
+
963
+ .icon-appletIcon {
964
+ color: #3370FF;
965
+ }
966
+
967
+ .icon-cooApp {
968
+ color: #ff4d4f;
969
+ }
970
+
971
+
972
+ /** =============================================
973
+ * 第三部分:Element UI 组件样式覆盖
974
+ * 说明:以下为覆盖 Element UI 组件的默认样式
975
+ * ============================================= */
976
+
977
+ //Message 消息提醒样式重写(仿 Ant Design 风格)
978
+ .el-message {
979
+ min-width: 0 !important;
980
+ padding: 10px 16px !important;
981
+ background-color: #fff !important;
982
+ border-radius: 4px !important;
983
+ border: none !important;
984
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
985
+ display: inline-flex !important;
986
+ align-items: center !important;
987
+
988
+ .el-message__icon {
989
+ margin-right: 10px !important;
990
+ flex-shrink: 0 !important;
991
+ }
992
+
993
+ .el-message__content {
994
+ font-size: 14px !important;
995
+ color: rgba(0, 0, 0, 0.85) !important;
996
+ line-height: 1.5715 !important;
997
+ }
998
+
999
+ .el-message__closeBtn {
1000
+ color: rgba(0, 0, 0, 0.45) !important;
1001
+ font-size: 12px !important;
1002
+ top: 50% !important;
1003
+ transform: translateY(-50%) !important;
1004
+ &:hover {
1005
+ color: rgba(0, 0, 0, 0.75) !important;
1006
+ }
1007
+ }
1008
+ }
1009
+
1010
+ //MessageBox.confirm 样式重写
1011
+ .el-message-box__header {
1012
+ padding: 15px !important;
1013
+ }
1014
+
1015
+ .el-message-box__content {
1016
+ padding: 15px !important;
1017
+ }
1018
+
1019
+ .el-message-box__btns button:nth-child(2) {
1020
+ margin-left: 15px !important;
1021
+ }
1022
+
1023
+ .el-message-box {
1024
+ padding-bottom: 15px !important;
1025
+ }
1026
+
1027
+ .el-message-box__title {
1028
+ color: #4D4D4D !important;
1029
+ }
1030
+
1031
+ /*去除 dialog 组件 header部分的默认内边距*/
1032
+ .w-dialog {
1033
+ .el-dialog__header {
1034
+ padding: 0 !important;
1035
+ }
1036
+
1037
+ &-title {
1038
+ position: relative;
1039
+ padding: 16px 20px;
1040
+ font-size: 16px;
1041
+ color: #666;
1042
+ border-bottom: 1px solid #E9E9E9;
1043
+ }
1044
+
1045
+ &-close {
1046
+ position: absolute;
1047
+ right: 10px;
1048
+ top: 15px;
1049
+ width: 20px;
1050
+ height: 16px;
1051
+ text-align: center;
1052
+ line-height: 16px;
1053
+ cursor: pointer;
1054
+
1055
+ span {
1056
+ color: #999;
1057
+ font-size: 14px;
1058
+ }
1059
+ }
1060
+ }
1061
+
1062
+ .w-dialog-height {
1063
+ height: calc(100% - 100px);
1064
+ }
1065
+
1066
+ /* header和footer带边框的dialog,并修改对应button样式 */
1067
+ .w-dialog-border {
1068
+ &.w-center {
1069
+ margin-top: 0;
1070
+ top: 50%;
1071
+ transform: translateY(-50%);
1072
+ }
1073
+
1074
+ > .el-dialog__header {
1075
+ font-size: 16px;
1076
+ font-weight: 500;
1077
+ color: rgba(0, 0, 0, 0.85);
1078
+ line-height: 24px;
1079
+ padding: 16px 24px;
1080
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1081
+
1082
+ .el-dialog__title {
1083
+ height: 24px;
1084
+ font-size: 16px;
1085
+ font-weight: 500;
1086
+ color: rgba(0, 0, 0, 0.85);
1087
+ line-height: 24px;
1088
+ }
1089
+
1090
+ .el-dialog__headerbtn {
1091
+ top: 16px;
1092
+ right: 22px;
1093
+
1094
+ > i {
1095
+ color: rgba(0, 0, 0, 0.65);
1096
+ font-size: 16px;
1097
+
1098
+ &:hover {
1099
+ color: #2783f2;
1100
+ }
1101
+ }
1102
+ }
1103
+ }
1104
+
1105
+ > .el-dialog__body {
1106
+ padding: 0;
1107
+ }
1108
+
1109
+ > .el-dialog__footer {
1110
+ padding: 10px 24px;
1111
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
1112
+
1113
+ > .w-dialog-border-footer {
1114
+ position: relative;
1115
+
1116
+ > .el-button {
1117
+ height: 32px;
1118
+ padding: 5px 16px;
1119
+
1120
+ > span {
1121
+ height: 22px;
1122
+ font-size: 14px;
1123
+ font-weight: 400;
1124
+ line-height: 22px;
1125
+ vertical-align: middle;
1126
+ }
1127
+
1128
+ &.el-button--default {
1129
+ background: #fff;
1130
+ color: rgba(0, 0, 0, 0.65);
1131
+ border: 1px solid rgba(0, 0, 0, 0.15);
1132
+
1133
+ &:hover {
1134
+ border-color: #2783f2;
1135
+
1136
+ > span {
1137
+ color: #2783f2;
1138
+ }
1139
+ }
1140
+ }
1141
+
1142
+ &.el-button--primary {
1143
+ > span {
1144
+ color: #fff;
1145
+ }
1146
+ }
1147
+
1148
+ &.el-button--primary:not(.is-disabled) {
1149
+ border-color: #2783f2;
1150
+ background: #2783f2;
1151
+
1152
+ &:hover {
1153
+ background: rgba($color: #2783f2, $alpha: 0.9);
1154
+ }
1155
+ }
1156
+
1157
+ &.el-button--danger:not(.is-disabled) {
1158
+ border-color: #FA5555;
1159
+ background: #FA5555;
1160
+
1161
+ &:hover {
1162
+ background: rgba($color: #FA5555, $alpha: 0.9);
1163
+ }
1164
+ }
1165
+ }
1166
+ }
1167
+ }
1168
+ }
1169
+
1170
+ /*去除 dialog 组件 默认的下边距*/
1171
+ .el-dialog {
1172
+ margin-bottom: 0 !important;
1173
+ }
1174
+
1175
+ /*默认去除弹框组件中dialog的body部分的内边距*/
1176
+ .el-dialog__body {
1177
+ padding: 0 !important;
1178
+ height: 100%;
1179
+ }
1180
+
1181
+ /*默认去除弹框组件中popover的内边距*/
1182
+ .el-popover {
1183
+ padding: 0 !important;
1184
+ min-width: 50px !important;
1185
+ }
1186
+
1187
+ /*去除颜色选择板清空按钮的多余内边距*/
1188
+ .el-color-dropdown__link-btn {
1189
+ padding: 7px 5px !important;
1190
+ }
1191
+
1192
+ /*Tabs组件去除头部的下边距margin*/
1193
+ .el-tabs {
1194
+ .el-tabs__header {
1195
+ margin-bottom: 0;
1196
+ }
1197
+ }
1198
+
1199
+ /*Select组件打开时的抖动问题*/
1200
+ .el-select__input {
1201
+ vertical-align: baseline !important;
1202
+ }
1203
+
1204
+ /*去除下拉菜单的默认上边距*/
1205
+ .el-dropdown-menu {
1206
+ margin-top: 0 !important;
1207
+ }
1208
+
1209
+ /*覆盖 select 组件的默认样式,用于高级筛选中计算条件的位置*/
1210
+ .height-search-select {
1211
+ input {
1212
+ border: none;
1213
+ padding-left: 10px;
1214
+ padding-right: 25px;
1215
+ background: #F5F5F5;
1216
+ color: #3BA3F8;
1217
+ }
1218
+ }
1219
+
1220
+ /*dialog 相关样式*/
1221
+ .w-edit-task-dialog {
1222
+ height: calc(100% - 10px);
1223
+ }
1224
+
1225
+ /*抽屉组件body的高度自适应100%*/
1226
+ .el-drawer__body {
1227
+ height: 100%;
1228
+ }
1229
+
1230
+ /*成员管理-添加部门/成员 dialog header - title字体居中设置*/
1231
+ .systemRole-content .el-dialog__header {
1232
+ text-align: center;
1233
+ }
1234
+
1235
+ /*成员管理-系统角色 dialog默认30%,这里需自定义设置最小宽度*/
1236
+ .systemRole .el-dialog {
1237
+ min-width: 500px;
1238
+ }
1239
+
1240
+ /*去除tabs组件底部边框*/
1241
+ .w-clear-tabs-border {
1242
+ .el-tabs__nav-wrap::after {
1243
+ display: none;
1244
+ }
1245
+ }
1246
+
1247
+ /*标签组件的删除按钮的重定义*/
1248
+ .el-tag .el-icon-close {
1249
+ top: 0 !important;
1250
+ font-size: 14px !important;
1251
+ }
1252
+
1253
+ .el-radio__label {
1254
+ padding-left: 5px !important;
1255
+ font-weight: 400;
1256
+ }
1257
+
1258
+ /*解决在表格中悬浮提示的文字太宽的样式*/
1259
+ .el-tooltip__popper {
1260
+ max-width: 300px;
1261
+ }
1262
+
1263
+ /*工单表格中单元格的样式*/
1264
+ .w-project-table-cell {
1265
+ padding: 0 !important;
1266
+
1267
+ .cell {
1268
+ white-space: nowrap !important;
1269
+ }
1270
+ }
1271
+
1272
+ /*工单表格中单元格的样式*/
1273
+ .w-project-title-cell {
1274
+ background: #F5F8FC !important;
1275
+ padding: 4px 0 !important;
1276
+ color: #666;
1277
+
1278
+ .cell {
1279
+ white-space: nowrap !important;
1280
+ overflow: hidden;
1281
+ text-overflow: ellipsis;
1282
+ }
1283
+ }
1284
+
1285
+ /*工单表格横向滚动条,鼠标悬浮时变粗*/
1286
+ .el-table__body-wrapper::-webkit-scrollbar {
1287
+ height: 14px !important;
1288
+ }
1289
+
1290
+ .el-table__body-wrapper::-webkit-scrollbar-thumb:vertical {
1291
+ height: 14px;
1292
+ background-color: rgba(144, 147, 153, .3);
1293
+ -webkit-border-radius: 8px;
1294
+ }
1295
+
1296
+ /*工单表格中朴素单元格的样式*/
1297
+ .w-project-table-cell-s {
1298
+ .cell {
1299
+ white-space: nowrap !important;
1300
+ }
1301
+ }
1302
+
1303
+ /*工单表格子表单表格样式*/
1304
+ .w-project-table-child-form-row {
1305
+ vertical-align: top !important;
1306
+
1307
+ .cell {
1308
+ white-space: nowrap !important;
1309
+ }
1310
+ }
1311
+
1312
+ //element message-box 标题字号修改
1313
+ .el-message-box__title {
1314
+ font-size: 16px;
1315
+ }
1316
+
1317
+ //退款管理弹窗
1318
+ .refundInformation {
1319
+ height: 100%;
1320
+ }
1321
+
1322
+ .refundInformation .el-dialog {
1323
+ height: calc(100% - 120px);
1324
+ }
1325
+
1326
+ //新小程序列表页面修改tabs组件行高
1327
+ .w-set-tabs-line-height .el-tabs__nav-next, .w-set-tabs-line-height .el-tabs__nav-prev {
1328
+ line-height: 58px !important;
1329
+ }
1330
+
1331
+ .w-set-tabs-line-height .el-tabs__item {
1332
+ height: 50px;
1333
+ line-height: 50px;
1334
+ }
1335
+
1336
+ /* 修改button primary 默认颜色 */
1337
+ .el-button--primary {
1338
+ border-color: #2783F2;
1339
+ background: #2783F2;
1340
+
1341
+ &:hover {
1342
+ background: rgba($color: #2783F2, $alpha: 0.9);
1343
+ }
1344
+ }
1345
+
1346
+ .el-button{
1347
+ border-radius: 4px;
1348
+ }
1349
+
1350
+ .el-tabs__nav-wrap::after {
1351
+ height: 1px;
1352
+ }
1353
+
1354
+ //修复 Chrome 浏览器自动更新为checkbox默认添加margin-top:16px问题
1355
+ .el-checkbox {
1356
+ margin-top: 0 !important;
1357
+ padding-bottom: 0 !important;
1408
1358
  }