@bytenew/bn-applet-ui 1.1.13 → 1.1.14

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,1409 +1,1409 @@
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
- margin-bottom: 0 !important;
1025
- padding: 15px !important;
1026
- }
1027
-
1028
- .el-message-box__content {
1029
- padding: 15px !important;
1030
- }
1031
-
1032
- .el-message-box__btns button:nth-child(2) {
1033
- margin-left: 15px !important;
1034
- }
1035
-
1036
- .el-message-box {
1037
- padding-bottom: 15px !important;
1038
- }
1039
-
1040
- .el-message-box__title {
1041
- color: #4D4D4D !important;
1042
- }
1043
-
1044
- /*去除 dialog 组件 header部分的默认内边距*/
1045
- .w-dialog {
1046
- .el-dialog__header {
1047
- padding: 0 !important;
1048
- }
1049
-
1050
- &-title {
1051
- position: relative;
1052
- padding: 16px 20px;
1053
- font-size: 16px;
1054
- color: #666;
1055
- border-bottom: 1px solid #E9E9E9;
1056
- }
1057
-
1058
- &-close {
1059
- position: absolute;
1060
- right: 10px;
1061
- top: 15px;
1062
- width: 20px;
1063
- height: 16px;
1064
- text-align: center;
1065
- line-height: 16px;
1066
- cursor: pointer;
1067
-
1068
- span {
1069
- color: #999;
1070
- font-size: 14px;
1071
- }
1072
- }
1073
- }
1074
-
1075
- .w-dialog-height {
1076
- height: calc(100% - 100px);
1077
- }
1078
-
1079
- /* header和footer带边框的dialog,并修改对应button样式 */
1080
- .w-dialog-border {
1081
- &.w-center {
1082
- margin-top: 0;
1083
- top: 50%;
1084
- transform: translateY(-50%);
1085
- }
1086
-
1087
- > .el-dialog__header {
1088
- font-size: 16px;
1089
- font-weight: 500;
1090
- color: rgba(0, 0, 0, 0.85);
1091
- line-height: 24px;
1092
- padding: 16px 24px;
1093
- border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1094
-
1095
- .el-dialog__title {
1096
- height: 24px;
1097
- font-size: 16px;
1098
- font-weight: 500;
1099
- color: rgba(0, 0, 0, 0.85);
1100
- line-height: 24px;
1101
- }
1102
-
1103
- .el-dialog__headerbtn {
1104
- top: 16px;
1105
- right: 22px;
1106
-
1107
- > i {
1108
- color: rgba(0, 0, 0, 0.65);
1109
- font-size: 16px;
1110
-
1111
- &:hover {
1112
- color: #2783f2;
1113
- }
1114
- }
1115
- }
1116
- }
1117
-
1118
- > .el-dialog__body {
1119
- padding: 0;
1120
- }
1121
-
1122
- > .el-dialog__footer {
1123
- padding: 10px 24px;
1124
- border-top: 1px solid rgba(0, 0, 0, 0.06);
1125
-
1126
- > .w-dialog-border-footer {
1127
- position: relative;
1128
-
1129
- > .el-button {
1130
- height: 32px;
1131
- padding: 5px 16px;
1132
-
1133
- > span {
1134
- height: 22px;
1135
- font-size: 14px;
1136
- font-weight: 400;
1137
- line-height: 22px;
1138
- vertical-align: middle;
1139
- }
1140
-
1141
- &.el-button--default {
1142
- background: #fff;
1143
- color: rgba(0, 0, 0, 0.65);
1144
- border: 1px solid rgba(0, 0, 0, 0.15);
1145
-
1146
- &:hover {
1147
- border-color: #2783f2;
1148
-
1149
- > span {
1150
- color: #2783f2;
1151
- }
1152
- }
1153
- }
1154
-
1155
- &.el-button--primary {
1156
- > span {
1157
- color: #fff;
1158
- }
1159
- }
1160
-
1161
- &.el-button--primary:not(.is-disabled) {
1162
- border-color: #2783f2;
1163
- background: #2783f2;
1164
-
1165
- &:hover {
1166
- background: rgba($color: #2783f2, $alpha: 0.9);
1167
- }
1168
- }
1169
-
1170
- &.el-button--danger:not(.is-disabled) {
1171
- border-color: #FA5555;
1172
- background: #FA5555;
1173
-
1174
- &:hover {
1175
- background: rgba($color: #FA5555, $alpha: 0.9);
1176
- }
1177
- }
1178
- }
1179
- }
1180
- }
1181
- }
1182
-
1183
- /*去除 dialog 组件 默认的下边距*/
1184
- .el-dialog {
1185
- margin-bottom: 0 !important;
1186
- }
1187
-
1188
- /*默认去除弹框组件中dialog的body部分的内边距*/
1189
- .el-dialog__body {
1190
- padding: 0 !important;
1191
- height: 100%;
1192
- }
1193
-
1194
- /*默认去除弹框组件中popover的内边距*/
1195
- .el-popover {
1196
- padding: 0 !important;
1197
- min-width: 50px !important;
1198
- }
1199
-
1200
- /*去除颜色选择板清空按钮的多余内边距*/
1201
- .el-color-dropdown__link-btn {
1202
- padding: 7px 5px !important;
1203
- }
1204
-
1205
- /*Tabs组件去除头部的下边距margin*/
1206
- .el-tabs {
1207
- .el-tabs__header {
1208
- margin-bottom: 0;
1209
- }
1210
- }
1211
-
1212
- /*Select组件打开时的抖动问题*/
1213
- .el-select__input {
1214
- vertical-align: baseline !important;
1215
- }
1216
-
1217
- /*去除下拉菜单的默认上边距*/
1218
- .el-dropdown-menu {
1219
- margin-top: 0 !important;
1220
- }
1221
-
1222
- /*覆盖 select 组件的默认样式,用于高级筛选中计算条件的位置*/
1223
- .height-search-select {
1224
- input {
1225
- border: none;
1226
- padding-left: 10px;
1227
- padding-right: 25px;
1228
- background: #F5F5F5;
1229
- color: #3BA3F8;
1230
- }
1231
- }
1232
-
1233
- /*dialog 相关样式*/
1234
- .w-edit-task-dialog {
1235
- height: calc(100% - 10px);
1236
- }
1237
-
1238
- /*抽屉组件body的高度自适应100%*/
1239
- .el-drawer__body {
1240
- height: 100%;
1241
- }
1242
-
1243
- /*成员管理-添加部门/成员 dialog header - title字体居中设置*/
1244
- .systemRole-content .el-dialog__header {
1245
- text-align: center;
1246
- }
1247
-
1248
- /*成员管理-系统角色 dialog默认30%,这里需自定义设置最小宽度*/
1249
- .systemRole .el-dialog {
1250
- min-width: 500px;
1251
- }
1252
-
1253
- /*去除tabs组件底部边框*/
1254
- .w-clear-tabs-border {
1255
- .el-tabs__nav-wrap::after {
1256
- display: none;
1257
- }
1258
- }
1259
-
1260
- /*标签组件的删除按钮的重定义*/
1261
- .el-tag .el-icon-close {
1262
- top: 0 !important;
1263
- font-size: 14px !important;
1264
- }
1265
-
1266
- .el-radio__label {
1267
- padding-left: 5px !important;
1268
- font-weight: 400;
1269
- }
1270
-
1271
- /*解决在表格中悬浮提示的文字太宽的样式*/
1272
- .el-tooltip__popper {
1273
- max-width: 300px;
1274
- }
1275
-
1276
- /*工单表格中单元格的样式*/
1277
- .w-project-table-cell {
1278
- padding: 0 !important;
1279
-
1280
- .cell {
1281
- white-space: nowrap !important;
1282
- }
1283
- }
1284
-
1285
- /*工单表格中单元格的样式*/
1286
- .w-project-title-cell {
1287
- background: #F5F8FC !important;
1288
- padding: 4px 0 !important;
1289
- color: #666;
1290
-
1291
- .cell {
1292
- white-space: nowrap !important;
1293
- overflow: hidden;
1294
- text-overflow: ellipsis;
1295
- }
1296
- }
1297
-
1298
- /*工单表格横向滚动条,鼠标悬浮时变粗*/
1299
- .el-table__body-wrapper::-webkit-scrollbar {
1300
- height: 14px !important;
1301
- }
1302
-
1303
- .el-table__body-wrapper::-webkit-scrollbar-thumb:vertical {
1304
- height: 14px;
1305
- background-color: rgba(144, 147, 153, .3);
1306
- -webkit-border-radius: 8px;
1307
- }
1308
-
1309
- /*工单表格中朴素单元格的样式*/
1310
- .w-project-table-cell-s {
1311
- .cell {
1312
- white-space: nowrap !important;
1313
- }
1314
- }
1315
-
1316
- /*工单表格子表单表格样式*/
1317
- .w-project-table-child-form-row {
1318
- vertical-align: top !important;
1319
-
1320
- .cell {
1321
- white-space: nowrap !important;
1322
- }
1323
- }
1324
-
1325
- //element message-box 标题字号修改
1326
- .el-message-box__title {
1327
- font-size: 16px;
1328
- }
1329
-
1330
- //退款管理弹窗
1331
- .refundInformation {
1332
- height: 100%;
1333
- }
1334
-
1335
- .refundInformation .el-dialog {
1336
- height: calc(100% - 120px);
1337
- }
1338
-
1339
- //新小程序列表页面修改tabs组件行高
1340
- .w-set-tabs-line-height .el-tabs__nav-next, .w-set-tabs-line-height .el-tabs__nav-prev {
1341
- line-height: 58px !important;
1342
- }
1343
-
1344
- .w-set-tabs-line-height .el-tabs__item {
1345
- height: 50px;
1346
- line-height: 50px;
1347
- }
1348
-
1349
- /* 修改button primary 默认颜色 */
1350
- .el-button--primary {
1351
- border-color: #2783F2;
1352
- background: #2783F2;
1353
-
1354
- &:hover {
1355
- background: rgba($color: #2783F2, $alpha: 0.9);
1356
- }
1357
- }
1358
-
1359
- .el-button{
1360
- border-radius: 4px;
1361
- }
1362
-
1363
- .el-tabs__nav-wrap::after {
1364
- height: 1px;
1365
- }
1366
-
1367
- //修复 Chrome 浏览器自动更新为checkbox默认添加margin-top:16px问题
1368
- .el-checkbox {
1369
- margin-top: 0 !important;
1370
- padding-bottom: 0 !important;
1371
- }
1372
- /* 统一修改 element 走马灯组件样式 */
1373
- .el-carousel.el-carousel--horizontal {
1374
- border-radius: 18px;
1375
- overflow: hidden;
1376
- border: 1px solid #e4e7ed;
1377
- }
1378
-
1379
- .el-carousel__item {
1380
- border-radius: 18px;
1381
- }
1382
-
1383
- .el-carousel__indicator {
1384
- .el-carousel__button {
1385
- height: 8px;
1386
- width: 8px;
1387
- border-radius: 4px;
1388
- background: #d7d5d5;
1389
- }
1390
-
1391
- &.is-active {
1392
- .el-carousel__button {
1393
- background: #fff;
1394
- width: 24px;
1395
- }
1396
- }
1397
- }
1398
-
1399
- //输入框圆角修改为8px
1400
- .el-input__wrapper{
1401
- border-radius: 8px;
1402
- }
1403
-
1404
- /* Element Plus Dialog 样式修改 */
1405
- .el-dialog {
1406
- border-radius: 18px;
1407
- overflow: hidden;
1408
- 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
+ * 动态生成字重类
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
+ margin-bottom: 0 !important;
1025
+ padding: 15px !important;
1026
+ }
1027
+
1028
+ .el-message-box__content {
1029
+ padding: 15px !important;
1030
+ }
1031
+
1032
+ .el-message-box__btns button:nth-child(2) {
1033
+ margin-left: 15px !important;
1034
+ }
1035
+
1036
+ .el-message-box {
1037
+ padding-bottom: 15px !important;
1038
+ }
1039
+
1040
+ .el-message-box__title {
1041
+ color: #4D4D4D !important;
1042
+ }
1043
+
1044
+ /*去除 dialog 组件 header部分的默认内边距*/
1045
+ .w-dialog {
1046
+ .el-dialog__header {
1047
+ padding: 0 !important;
1048
+ }
1049
+
1050
+ &-title {
1051
+ position: relative;
1052
+ padding: 16px 20px;
1053
+ font-size: 16px;
1054
+ color: #666;
1055
+ border-bottom: 1px solid #E9E9E9;
1056
+ }
1057
+
1058
+ &-close {
1059
+ position: absolute;
1060
+ right: 10px;
1061
+ top: 15px;
1062
+ width: 20px;
1063
+ height: 16px;
1064
+ text-align: center;
1065
+ line-height: 16px;
1066
+ cursor: pointer;
1067
+
1068
+ span {
1069
+ color: #999;
1070
+ font-size: 14px;
1071
+ }
1072
+ }
1073
+ }
1074
+
1075
+ .w-dialog-height {
1076
+ height: calc(100% - 100px);
1077
+ }
1078
+
1079
+ /* header和footer带边框的dialog,并修改对应button样式 */
1080
+ .w-dialog-border {
1081
+ &.w-center {
1082
+ margin-top: 0;
1083
+ top: 50%;
1084
+ transform: translateY(-50%);
1085
+ }
1086
+
1087
+ > .el-dialog__header {
1088
+ font-size: 16px;
1089
+ font-weight: 500;
1090
+ color: rgba(0, 0, 0, 0.85);
1091
+ line-height: 24px;
1092
+ padding: 16px 24px;
1093
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
1094
+
1095
+ .el-dialog__title {
1096
+ height: 24px;
1097
+ font-size: 16px;
1098
+ font-weight: 500;
1099
+ color: rgba(0, 0, 0, 0.85);
1100
+ line-height: 24px;
1101
+ }
1102
+
1103
+ .el-dialog__headerbtn {
1104
+ top: 16px;
1105
+ right: 22px;
1106
+
1107
+ > i {
1108
+ color: rgba(0, 0, 0, 0.65);
1109
+ font-size: 16px;
1110
+
1111
+ &:hover {
1112
+ color: #2783f2;
1113
+ }
1114
+ }
1115
+ }
1116
+ }
1117
+
1118
+ > .el-dialog__body {
1119
+ padding: 0;
1120
+ }
1121
+
1122
+ > .el-dialog__footer {
1123
+ padding: 10px 24px;
1124
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
1125
+
1126
+ > .w-dialog-border-footer {
1127
+ position: relative;
1128
+
1129
+ > .el-button {
1130
+ height: 32px;
1131
+ padding: 5px 16px;
1132
+
1133
+ > span {
1134
+ height: 22px;
1135
+ font-size: 14px;
1136
+ font-weight: 400;
1137
+ line-height: 22px;
1138
+ vertical-align: middle;
1139
+ }
1140
+
1141
+ &.el-button--default {
1142
+ background: #fff;
1143
+ color: rgba(0, 0, 0, 0.65);
1144
+ border: 1px solid rgba(0, 0, 0, 0.15);
1145
+
1146
+ &:hover {
1147
+ border-color: #2783f2;
1148
+
1149
+ > span {
1150
+ color: #2783f2;
1151
+ }
1152
+ }
1153
+ }
1154
+
1155
+ &.el-button--primary {
1156
+ > span {
1157
+ color: #fff;
1158
+ }
1159
+ }
1160
+
1161
+ &.el-button--primary:not(.is-disabled) {
1162
+ border-color: #2783f2;
1163
+ background: #2783f2;
1164
+
1165
+ &:hover {
1166
+ background: rgba($color: #2783f2, $alpha: 0.9);
1167
+ }
1168
+ }
1169
+
1170
+ &.el-button--danger:not(.is-disabled) {
1171
+ border-color: #FA5555;
1172
+ background: #FA5555;
1173
+
1174
+ &:hover {
1175
+ background: rgba($color: #FA5555, $alpha: 0.9);
1176
+ }
1177
+ }
1178
+ }
1179
+ }
1180
+ }
1181
+ }
1182
+
1183
+ /*去除 dialog 组件 默认的下边距*/
1184
+ .el-dialog {
1185
+ margin-bottom: 0 !important;
1186
+ }
1187
+
1188
+ /*默认去除弹框组件中dialog的body部分的内边距*/
1189
+ .el-dialog__body {
1190
+ padding: 0 !important;
1191
+ height: 100%;
1192
+ }
1193
+
1194
+ /*默认去除弹框组件中popover的内边距*/
1195
+ .el-popover {
1196
+ padding: 0 !important;
1197
+ min-width: 50px !important;
1198
+ }
1199
+
1200
+ /*去除颜色选择板清空按钮的多余内边距*/
1201
+ .el-color-dropdown__link-btn {
1202
+ padding: 7px 5px !important;
1203
+ }
1204
+
1205
+ /*Tabs组件去除头部的下边距margin*/
1206
+ .el-tabs {
1207
+ .el-tabs__header {
1208
+ margin-bottom: 0;
1209
+ }
1210
+ }
1211
+
1212
+ /*Select组件打开时的抖动问题*/
1213
+ .el-select__input {
1214
+ vertical-align: baseline !important;
1215
+ }
1216
+
1217
+ /*去除下拉菜单的默认上边距*/
1218
+ .el-dropdown-menu {
1219
+ margin-top: 0 !important;
1220
+ }
1221
+
1222
+ /*覆盖 select 组件的默认样式,用于高级筛选中计算条件的位置*/
1223
+ .height-search-select {
1224
+ input {
1225
+ border: none;
1226
+ padding-left: 10px;
1227
+ padding-right: 25px;
1228
+ background: #F5F5F5;
1229
+ color: #3BA3F8;
1230
+ }
1231
+ }
1232
+
1233
+ /*dialog 相关样式*/
1234
+ .w-edit-task-dialog {
1235
+ height: calc(100% - 10px);
1236
+ }
1237
+
1238
+ /*抽屉组件body的高度自适应100%*/
1239
+ .el-drawer__body {
1240
+ height: 100%;
1241
+ }
1242
+
1243
+ /*成员管理-添加部门/成员 dialog header - title字体居中设置*/
1244
+ .systemRole-content .el-dialog__header {
1245
+ text-align: center;
1246
+ }
1247
+
1248
+ /*成员管理-系统角色 dialog默认30%,这里需自定义设置最小宽度*/
1249
+ .systemRole .el-dialog {
1250
+ min-width: 500px;
1251
+ }
1252
+
1253
+ /*去除tabs组件底部边框*/
1254
+ .w-clear-tabs-border {
1255
+ .el-tabs__nav-wrap::after {
1256
+ display: none;
1257
+ }
1258
+ }
1259
+
1260
+ /*标签组件的删除按钮的重定义*/
1261
+ .el-tag .el-icon-close {
1262
+ top: 0 !important;
1263
+ font-size: 14px !important;
1264
+ }
1265
+
1266
+ .el-radio__label {
1267
+ padding-left: 5px !important;
1268
+ font-weight: 400;
1269
+ }
1270
+
1271
+ /*解决在表格中悬浮提示的文字太宽的样式*/
1272
+ .el-tooltip__popper {
1273
+ max-width: 300px;
1274
+ }
1275
+
1276
+ /*工单表格中单元格的样式*/
1277
+ .w-project-table-cell {
1278
+ padding: 0 !important;
1279
+
1280
+ .cell {
1281
+ white-space: nowrap !important;
1282
+ }
1283
+ }
1284
+
1285
+ /*工单表格中单元格的样式*/
1286
+ .w-project-title-cell {
1287
+ background: #F5F8FC !important;
1288
+ padding: 4px 0 !important;
1289
+ color: #666;
1290
+
1291
+ .cell {
1292
+ white-space: nowrap !important;
1293
+ overflow: hidden;
1294
+ text-overflow: ellipsis;
1295
+ }
1296
+ }
1297
+
1298
+ /*工单表格横向滚动条,鼠标悬浮时变粗*/
1299
+ .el-table__body-wrapper::-webkit-scrollbar {
1300
+ height: 14px !important;
1301
+ }
1302
+
1303
+ .el-table__body-wrapper::-webkit-scrollbar-thumb:vertical {
1304
+ height: 14px;
1305
+ background-color: rgba(144, 147, 153, .3);
1306
+ -webkit-border-radius: 8px;
1307
+ }
1308
+
1309
+ /*工单表格中朴素单元格的样式*/
1310
+ .w-project-table-cell-s {
1311
+ .cell {
1312
+ white-space: nowrap !important;
1313
+ }
1314
+ }
1315
+
1316
+ /*工单表格子表单表格样式*/
1317
+ .w-project-table-child-form-row {
1318
+ vertical-align: top !important;
1319
+
1320
+ .cell {
1321
+ white-space: nowrap !important;
1322
+ }
1323
+ }
1324
+
1325
+ //element message-box 标题字号修改
1326
+ .el-message-box__title {
1327
+ font-size: 16px;
1328
+ }
1329
+
1330
+ //退款管理弹窗
1331
+ .refundInformation {
1332
+ height: 100%;
1333
+ }
1334
+
1335
+ .refundInformation .el-dialog {
1336
+ height: calc(100% - 120px);
1337
+ }
1338
+
1339
+ //新小程序列表页面修改tabs组件行高
1340
+ .w-set-tabs-line-height .el-tabs__nav-next, .w-set-tabs-line-height .el-tabs__nav-prev {
1341
+ line-height: 58px !important;
1342
+ }
1343
+
1344
+ .w-set-tabs-line-height .el-tabs__item {
1345
+ height: 50px;
1346
+ line-height: 50px;
1347
+ }
1348
+
1349
+ /* 修改button primary 默认颜色 */
1350
+ .el-button--primary {
1351
+ border-color: #2783F2;
1352
+ background: #2783F2;
1353
+
1354
+ &:hover {
1355
+ background: rgba($color: #2783F2, $alpha: 0.9);
1356
+ }
1357
+ }
1358
+
1359
+ .el-button{
1360
+ border-radius: 4px;
1361
+ }
1362
+
1363
+ .el-tabs__nav-wrap::after {
1364
+ height: 1px;
1365
+ }
1366
+
1367
+ //修复 Chrome 浏览器自动更新为checkbox默认添加margin-top:16px问题
1368
+ .el-checkbox {
1369
+ margin-top: 0 !important;
1370
+ padding-bottom: 0 !important;
1371
+ }
1372
+ /* 统一修改 element 走马灯组件样式 */
1373
+ .el-carousel.el-carousel--horizontal {
1374
+ border-radius: 18px;
1375
+ overflow: hidden;
1376
+ border: 1px solid #e4e7ed;
1377
+ }
1378
+
1379
+ .el-carousel__item {
1380
+ border-radius: 18px;
1381
+ }
1382
+
1383
+ .el-carousel__indicator {
1384
+ .el-carousel__button {
1385
+ height: 8px;
1386
+ width: 8px;
1387
+ border-radius: 4px;
1388
+ background: #d7d5d5;
1389
+ }
1390
+
1391
+ &.is-active {
1392
+ .el-carousel__button {
1393
+ background: #fff;
1394
+ width: 24px;
1395
+ }
1396
+ }
1397
+ }
1398
+
1399
+ //输入框圆角修改为8px
1400
+ .el-input__wrapper{
1401
+ border-radius: 8px;
1402
+ }
1403
+
1404
+ /* Element Plus Dialog 样式修改 */
1405
+ .el-dialog {
1406
+ border-radius: 18px;
1407
+ overflow: hidden;
1408
+ margin-bottom: 0;
1409
1409
  }