@bytenew/bn-applet-ui 1.1.10 → 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,1358 +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
- * 动态生成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;
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;
1358
1358
  }