@douyinfe/semi-foundation 2.27.0-alpha.2 → 2.27.0
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/breadcrumb/breadcrumb.scss +2 -0
- package/breadcrumb/variables.scss +4 -0
- package/datePicker/datePicker.scss +11 -0
- package/datePicker/variables.scss +6 -0
- package/descriptions/descriptions.scss +6 -0
- package/descriptions/variables.scss +10 -0
- package/form/form.scss +3 -0
- package/form/variables.scss +3 -0
- package/lib/cjs/breadcrumb/breadcrumb.css +2 -0
- package/lib/cjs/breadcrumb/breadcrumb.scss +2 -0
- package/lib/cjs/breadcrumb/variables.scss +4 -0
- package/lib/cjs/datePicker/datePicker.css +7 -0
- package/lib/cjs/datePicker/datePicker.scss +11 -0
- package/lib/cjs/datePicker/variables.scss +6 -0
- package/lib/cjs/descriptions/descriptions.css +6 -0
- package/lib/cjs/descriptions/descriptions.scss +6 -0
- package/lib/cjs/descriptions/variables.scss +10 -0
- package/lib/cjs/form/form.css +3 -0
- package/lib/cjs/form/form.scss +3 -0
- package/lib/cjs/form/variables.scss +3 -0
- package/lib/cjs/select/foundation.d.ts +1 -0
- package/lib/cjs/select/foundation.js +5 -0
- package/lib/cjs/sideSheet/sideSheet.css +1 -0
- package/lib/cjs/sideSheet/sideSheet.scss +1 -0
- package/lib/cjs/sideSheet/variables.scss +1 -0
- package/lib/cjs/steps/variables.scss +3 -3
- package/lib/cjs/tabs/tabs.css +0 -196
- package/lib/cjs/tabs/tabs.scss +17 -326
- package/lib/es/breadcrumb/breadcrumb.css +2 -0
- package/lib/es/breadcrumb/breadcrumb.scss +2 -0
- package/lib/es/breadcrumb/variables.scss +4 -0
- package/lib/es/datePicker/datePicker.css +7 -0
- package/lib/es/datePicker/datePicker.scss +11 -0
- package/lib/es/datePicker/variables.scss +6 -0
- package/lib/es/descriptions/descriptions.css +6 -0
- package/lib/es/descriptions/descriptions.scss +6 -0
- package/lib/es/descriptions/variables.scss +10 -0
- package/lib/es/form/form.css +3 -0
- package/lib/es/form/form.scss +3 -0
- package/lib/es/form/variables.scss +3 -0
- package/lib/es/select/foundation.d.ts +1 -0
- package/lib/es/select/foundation.js +5 -0
- package/lib/es/sideSheet/sideSheet.css +1 -0
- package/lib/es/sideSheet/sideSheet.scss +1 -0
- package/lib/es/sideSheet/variables.scss +1 -0
- package/lib/es/steps/variables.scss +3 -3
- package/lib/es/tabs/tabs.css +0 -196
- package/lib/es/tabs/tabs.scss +17 -326
- package/package.json +2 -2
- package/select/foundation.ts +5 -0
- package/sideSheet/sideSheet.scss +1 -0
- package/sideSheet/variables.scss +1 -0
- package/steps/variables.scss +3 -3
- package/tabs/tabs.scss +17 -326
package/lib/es/tabs/tabs.scss
CHANGED
|
@@ -46,7 +46,7 @@ $module: #{$prefix}-tabs;
|
|
|
46
46
|
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
47
47
|
top: $spacing-tabs_tab_icon-top;
|
|
48
48
|
color: $color-tabs_tab-icon-default;
|
|
49
|
-
transition: color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text
|
|
49
|
+
transition: color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//线条式tabs的 color的transition
|
|
50
50
|
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -109,88 +109,6 @@ $module: #{$prefix}-tabs;
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
&-tab-single {
|
|
113
|
-
&.#{$module}-tab {
|
|
114
|
-
@include font-size-regular;
|
|
115
|
-
cursor: pointer;
|
|
116
|
-
box-sizing: border-box;
|
|
117
|
-
position: relative;
|
|
118
|
-
display: inline-block;
|
|
119
|
-
// float: left;
|
|
120
|
-
|
|
121
|
-
font-weight: $font-tabs_tab-fontWeight;
|
|
122
|
-
color: $color-tabs_tab_line_default-text-default;
|
|
123
|
-
|
|
124
|
-
user-select: none;
|
|
125
|
-
|
|
126
|
-
.#{$prefix}-icon {
|
|
127
|
-
position: relative;
|
|
128
|
-
margin-right: $spacing-tabs_tab_icon-marginRight;
|
|
129
|
-
top: $spacing-tabs_tab_icon-top;
|
|
130
|
-
color: $color-tabs_tab-icon-default;
|
|
131
|
-
transition: color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//线条式tabs的 color的transition
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.#{$prefix}-icon-close {
|
|
136
|
-
margin-right: 0;
|
|
137
|
-
font-size: 14px;
|
|
138
|
-
color: var(--semi-color-text-2);
|
|
139
|
-
margin-left: 10px;
|
|
140
|
-
cursor: pointer;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
&:hover {
|
|
144
|
-
color: $color-tabs_tab_line_default-text-hover;
|
|
145
|
-
|
|
146
|
-
.#{$prefix}-icon {
|
|
147
|
-
color: $color-tabs_tab-icon-hover;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:active {
|
|
152
|
-
color: $color-tabs_tab_line_default-text-active;
|
|
153
|
-
|
|
154
|
-
.#{$prefix}-icon {
|
|
155
|
-
color: $color-tabs_tab-icon-active;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&.#{$module}-tab-active {
|
|
161
|
-
|
|
162
|
-
&,
|
|
163
|
-
&:hover {
|
|
164
|
-
cursor: default;
|
|
165
|
-
// border-bottom: 2px solid $color-tabs_tab_line_indicator_selected-icon-default;
|
|
166
|
-
font-weight: $font-tabs_tab_active-fontWeight;
|
|
167
|
-
color: $color-tabs_tab_line_selected-text-default;
|
|
168
|
-
|
|
169
|
-
.#{$prefix}-icon {
|
|
170
|
-
color: $color-tabs_tab_selected-icon-default;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.#{$prefix}-icon-close {
|
|
174
|
-
color: var(--semi-color-text-2);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.#{$prefix}-icon-close:hover {
|
|
179
|
-
color: var(--semi-color-text-1);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
&.#{$module}-tab-disabled {
|
|
184
|
-
cursor: not-allowed;
|
|
185
|
-
color: $color-tabs_tab_line_disabled-text-default;
|
|
186
|
-
|
|
187
|
-
&:hover {
|
|
188
|
-
color: $color-tabs_tab_line_disabled-text-hover;
|
|
189
|
-
border-bottom: none;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
112
|
&-bar-collapse {
|
|
195
113
|
&,
|
|
196
114
|
.#{$module}-bar-overflow-list {
|
|
@@ -216,10 +134,10 @@ $module: #{$prefix}-tabs;
|
|
|
216
134
|
outline-offset: $width-tabs-outline-offset;
|
|
217
135
|
}
|
|
218
136
|
}
|
|
219
|
-
& > .#{$prefix}-button-disabled
|
|
137
|
+
& > .#{$prefix}-button-disabled{
|
|
220
138
|
color: $color-tabs_tab-pane_arrow_disabled-text-default;
|
|
221
139
|
background-color: $color-tabs_tab-pane_arrow_disabled-bg-default;
|
|
222
|
-
&:hover
|
|
140
|
+
&:hover{
|
|
223
141
|
color: $color-tabs_tab-pane_arrow_disabled-text-hover;
|
|
224
142
|
background-color: $color-tabs_tab-pane_arrow_disabled-bg-hover;
|
|
225
143
|
}
|
|
@@ -228,12 +146,12 @@ $module: #{$prefix}-tabs;
|
|
|
228
146
|
|
|
229
147
|
.#{$module}-bar-arrow-start {
|
|
230
148
|
margin-right: $spacing-tabs_overflow_icon-marginRight;
|
|
231
|
-
& > .#{$prefix}-button
|
|
149
|
+
& > .#{$prefix}-button{
|
|
232
150
|
color: $color-tabs_tab-pane_arrow-text-default;
|
|
233
151
|
padding: $spacing-tabs_tab-pane_arrow;
|
|
234
152
|
border: $width-tabs_tab-pane_arrow-border solid $color-tabs_tab-pane_arrow-border-default;
|
|
235
153
|
background-color: $color-tabs_tab-pane_arrow-bg-default;
|
|
236
|
-
&:hover
|
|
154
|
+
&:hover{
|
|
237
155
|
background-color: var(--semi-color-fill-0);
|
|
238
156
|
color: $color-tabs_tab-pane_arrow-text-hover;
|
|
239
157
|
border-color: $color-tabs_tab-pane_arrow-border-hover;
|
|
@@ -249,17 +167,17 @@ $module: #{$prefix}-tabs;
|
|
|
249
167
|
|
|
250
168
|
.#{$module}-bar-arrow-end {
|
|
251
169
|
margin-left: $spacing-tabs_overflow_icon-marginLeft;
|
|
252
|
-
& > .#{$prefix}-button
|
|
170
|
+
& > .#{$prefix}-button{
|
|
253
171
|
color: $color-tabs_tab-pane_arrow-text-default;
|
|
254
172
|
padding: $spacing-tabs_tab-pane_arrow;
|
|
255
173
|
border: $width-tabs_tab-pane_arrow-border solid $color-tabs_tab-pane_arrow-border-default;
|
|
256
174
|
background-color: $color-tabs_tab-pane_arrow-bg-default;
|
|
257
|
-
&:hover
|
|
175
|
+
&:hover{
|
|
258
176
|
background-color: var(--semi-color-fill-0);
|
|
259
177
|
color: $color-tabs_tab-pane_arrow-text-hover;
|
|
260
178
|
border-color: $color-tabs_tab-pane_arrow-border-hover;
|
|
261
179
|
}
|
|
262
|
-
&:active
|
|
180
|
+
&:active{
|
|
263
181
|
background-color: var(--semi-color-fill-1);
|
|
264
182
|
color: $color-tabs_tab-pane_arrow-text-active;
|
|
265
183
|
border-color: $color-tabs_tab-pane_arrow-border-active;
|
|
@@ -284,13 +202,12 @@ $module: #{$prefix}-tabs;
|
|
|
284
202
|
&.#{$module}-bar-top {
|
|
285
203
|
border-bottom: $width-tabs_bar_line-border solid $color-tabs_tab_line_default-border-default;
|
|
286
204
|
transition: color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text; //线条式tabs的 color的transition
|
|
287
|
-
transform:
|
|
205
|
+
transform:scale($transform_scale-tabs_tab_line-item);
|
|
288
206
|
|
|
289
207
|
.#{$module}-tab {
|
|
290
208
|
padding: $spacing-tabs_bar_line_tab-paddingTop $spacing-tabs_bar_line_tab-paddingRight $spacing-tabs_bar_line_tab-paddingBottom $spacing-tabs_bar_line_tab-paddingLeft;
|
|
291
209
|
transition: border-bottom-color $transition_duration-tabs_tab_line-border $transition_function-tabs_tab_line-border $transition_delay-tabs_tab_line-border,
|
|
292
|
-
|
|
293
|
-
|
|
210
|
+
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text; //线条式tabs的border-color 的 transition
|
|
294
211
|
&:nth-of-type(1) {
|
|
295
212
|
padding-left: 0;
|
|
296
213
|
}
|
|
@@ -474,7 +391,7 @@ $module: #{$prefix}-tabs;
|
|
|
474
391
|
transition: background-color $transition_duration-tabs_tab_card-bg $transition_function-tabs_tab_card-bg $transition_delay-tabs_tab_card-bg, //卡片式tabs的bg的transition
|
|
475
392
|
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//卡片式tabs的 color的transition
|
|
476
393
|
|
|
477
|
-
transform:
|
|
394
|
+
transform:scale($transform_scale-tabs_tab_card-item);
|
|
478
395
|
|
|
479
396
|
&:hover {
|
|
480
397
|
background: $color-tabs_tab_card-bg-hover;
|
|
@@ -518,9 +435,9 @@ $module: #{$prefix}-tabs;
|
|
|
518
435
|
color: $color-tabs_tab_button-text-default;
|
|
519
436
|
border: none;
|
|
520
437
|
transition: background-color $transition_duration-tabs-tab_button-bg $transition_function-tabs_tab_button-bg $transition_delay-tabs_tab_button-bg,//按钮tabs的背景色的transition
|
|
521
|
-
|
|
438
|
+
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//按钮式tabs的 color的transition
|
|
522
439
|
|
|
523
|
-
transform:
|
|
440
|
+
transform:scale($transform_scale-tabs_tab_button-item);
|
|
524
441
|
|
|
525
442
|
&:hover {
|
|
526
443
|
border: none;
|
|
@@ -579,12 +496,10 @@ $module: #{$prefix}-tabs;
|
|
|
579
496
|
|
|
580
497
|
|
|
581
498
|
@keyframes #{$module}-panel-keyframe-leftShow {
|
|
582
|
-
|
|
583
499
|
0% {
|
|
584
500
|
transform: translateX($animation_transform_translateX-tabs_tabPanel-leftShow);
|
|
585
501
|
opacity: $animation_opacity-tabs_tabPanel_show;
|
|
586
502
|
}
|
|
587
|
-
|
|
588
503
|
100% {
|
|
589
504
|
transform: translateX(0);
|
|
590
505
|
opacity: 1;
|
|
@@ -592,12 +507,10 @@ $module: #{$prefix}-tabs;
|
|
|
592
507
|
|
|
593
508
|
}
|
|
594
509
|
@keyframes #{$module}-panel-keyframe-rightShow {
|
|
595
|
-
|
|
596
510
|
0% {
|
|
597
511
|
transform: translateX($animation_transform_translateX-tabs_tabPanel-rightShow);
|
|
598
512
|
opacity: $animation_opacity-tabs_tabPanel_show;
|
|
599
513
|
}
|
|
600
|
-
|
|
601
514
|
100% {
|
|
602
515
|
transform: translateX(0);
|
|
603
516
|
opacity: 1;
|
|
@@ -605,12 +518,10 @@ $module: #{$prefix}-tabs;
|
|
|
605
518
|
}
|
|
606
519
|
|
|
607
520
|
@keyframes #{$module}-panel-keyframe-topShow {
|
|
608
|
-
|
|
609
521
|
0% {
|
|
610
522
|
transform: translateY($animation_transform_translateX-tabs_tabPanel-leftShow);
|
|
611
523
|
opacity: $animation_opacity-tabs_tabPanel_show;
|
|
612
524
|
}
|
|
613
|
-
|
|
614
525
|
100% {
|
|
615
526
|
transform: translateY(0);
|
|
616
527
|
opacity: 1;
|
|
@@ -618,12 +529,10 @@ $module: #{$prefix}-tabs;
|
|
|
618
529
|
|
|
619
530
|
}
|
|
620
531
|
@keyframes #{$module}-panel-keyframe-bottomShow {
|
|
621
|
-
|
|
622
532
|
0% {
|
|
623
533
|
transform: translateY($animation_transform_translateX-tabs_tabPanel-rightShow);
|
|
624
534
|
opacity: $animation_opacity-tabs_tabPanel_show;
|
|
625
535
|
}
|
|
626
|
-
|
|
627
536
|
100% {
|
|
628
537
|
transform: translateY(0);
|
|
629
538
|
opacity: 1;
|
|
@@ -631,241 +540,23 @@ $module: #{$prefix}-tabs;
|
|
|
631
540
|
}
|
|
632
541
|
|
|
633
542
|
|
|
634
|
-
&-pane-animate-leftShow
|
|
543
|
+
&-pane-animate-leftShow{
|
|
635
544
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-leftShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
636
545
|
animation-fill-mode: forwards;
|
|
637
546
|
}
|
|
638
|
-
&-pane-animate-rightShow
|
|
547
|
+
&-pane-animate-rightShow{
|
|
639
548
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-rightShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
640
549
|
animation-fill-mode: forwards;
|
|
641
550
|
}
|
|
642
551
|
|
|
643
|
-
&-pane-animate-topShow
|
|
552
|
+
&-pane-animate-topShow{
|
|
644
553
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-topShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
645
554
|
animation-fill-mode: forwards;
|
|
646
555
|
}
|
|
647
|
-
|
|
648
|
-
&-pane-animate-bottomShow {
|
|
556
|
+
&-pane-animate-bottomShow{
|
|
649
557
|
animation: $animation_duration-tabs_tabPanel-show #{$module}-panel-keyframe-bottomShow $animation_function-tabs_tabPanel-show $animation_delay-tabs_tabPanel-show;
|
|
650
558
|
animation-fill-mode: forwards;
|
|
651
559
|
}
|
|
652
|
-
|
|
653
|
-
&-tab-line {
|
|
654
|
-
&.#{$module}-tab-top {
|
|
655
|
-
|
|
656
|
-
&.#{$module}-tab {
|
|
657
|
-
padding: $spacing-tabs_bar_line_tab-paddingTop $spacing-tabs_bar_line_tab-paddingRight $spacing-tabs_bar_line_tab-paddingBottom $spacing-tabs_bar_line_tab-paddingLeft;
|
|
658
|
-
transition: border-bottom-color $transition_duration-tabs_tab_line-border $transition_function-tabs_tab_line-border $transition_delay-tabs_tab_line-border,
|
|
659
|
-
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text; //线条式tabs的border-color 的 transition
|
|
660
|
-
|
|
661
|
-
&:nth-of-type(1) {
|
|
662
|
-
padding-left: 0;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
border-bottom: $width-tabs_bar_line_tab-border solid transparent;
|
|
666
|
-
|
|
667
|
-
&:hover {
|
|
668
|
-
border-bottom: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_default-border-hover;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
&:focus-visible {
|
|
672
|
-
outline: $width-tabs-outline solid $color-tabs_tab-outline-focus;
|
|
673
|
-
outline-offset: $width-tabs_bar_line-outline-offset;
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
&:active {
|
|
677
|
-
border-bottom: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_default-border-active;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
// &:not(:last-of-type) {
|
|
681
|
-
// margin-right: $spacing-tabs_bar_line_tab-marginRight;
|
|
682
|
-
// }
|
|
683
|
-
|
|
684
|
-
&-small {
|
|
685
|
-
padding: $spacing-tabs_bar_line_tab_small-paddingTop $spacing-tabs_bar_line_tab_small-paddingRight $spacing-tabs_bar_line_tab_small-paddingBottom $spacing-tabs_bar_line_tab_small-paddingLeft;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
&-medium {
|
|
689
|
-
padding: $spacing-tabs_bar_line_tab_medium-paddingTop $spacing-tabs_bar_line_tab_medium-paddingRight $spacing-tabs_bar_line_tab_medium-paddingBottom $spacing-tabs_bar_line_tab_medium-paddingLeft;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
&.#{$module}-tab-active {
|
|
694
|
-
|
|
695
|
-
&,
|
|
696
|
-
&:hover {
|
|
697
|
-
border-bottom: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_indicator_selected-icon-default;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
&.#{$module}-tab-left {
|
|
703
|
-
|
|
704
|
-
&.#{$module}-tab {
|
|
705
|
-
padding: $spacing-tabs_bar_line_tab_left-padding;
|
|
706
|
-
border-left: $width-tabs_bar_line_tab-border solid transparent;
|
|
707
|
-
transition: background-color $transition_duration-tabs-tab_button-bg $transition_function-tabs_tab_button-bg $transition_delay-tabs_tab_button-bg,//按钮tabs的背景色的transition
|
|
708
|
-
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//按钮式tabs的 color的transition
|
|
709
|
-
|
|
710
|
-
&:hover {
|
|
711
|
-
border-left: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_default-border-hover;
|
|
712
|
-
background-color: $color-tabs_tab_line_vertical-bg-hover;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
&:focus-visible {
|
|
716
|
-
outline: $width-tabs-outline solid $color-tabs_tab-outline-focus;
|
|
717
|
-
outline-offset: $width-tabs-outline-offset;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
&:active {
|
|
721
|
-
border-left: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_default-border-active;
|
|
722
|
-
background-color: $color-tabs_tab_line_vertical-bg-active;
|
|
723
|
-
}
|
|
724
|
-
|
|
725
|
-
&-small {
|
|
726
|
-
padding: $spacing-tabs_bar_line_tab_left_small-padding;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
&-medium {
|
|
730
|
-
padding: $spacing-tabs_bar_line_tab_left_medium-padding;
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
&.#{$module}-tab-active {
|
|
735
|
-
background-color: $color-tabs_tab_line_vertical_selected-bg-default;
|
|
736
|
-
|
|
737
|
-
&,
|
|
738
|
-
&:hover {
|
|
739
|
-
border-left: $width-tabs_bar_line_tab-border solid $color-tabs_tab_line_indicator_selected-icon-default;
|
|
740
|
-
background-color: $color-tabs_tab_line_vertical_selected-bg-default;
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
&-tab-card {
|
|
747
|
-
&.#{$module}-tab-top {
|
|
748
|
-
|
|
749
|
-
&.#{$module}-tab {
|
|
750
|
-
border: $width-tabs_bar_card-border solid transparent;
|
|
751
|
-
border-bottom: none;
|
|
752
|
-
border-radius: $radius-tabs_tab_card;
|
|
753
|
-
|
|
754
|
-
&:hover {
|
|
755
|
-
border-bottom: none;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
&.#{$module}-tab-active {
|
|
761
|
-
|
|
762
|
-
&,
|
|
763
|
-
&:hover {
|
|
764
|
-
padding: $spacing-tabs_bar_card_tab_active-paddingTop $spacing-tabs_bar_card_tab_active-paddingRight $spacing-tabs_bar_card_tab_active-paddingBottom $spacing-tabs_bar_card_tab_active-paddingLeft;
|
|
765
|
-
border: $width-tabs_bar_card-border solid $color-tabs_tab_card_indicator_selected-icon-default;
|
|
766
|
-
border-bottom: $width-tabs_bar_card-border solid $color-tabs_tab_card_selected-bg-default;
|
|
767
|
-
background: transparent;
|
|
768
|
-
// padding-bottom: $spacing-tight + 1;
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
&.#{$module}-tab-left {
|
|
774
|
-
|
|
775
|
-
&.#{$module}-tab {
|
|
776
|
-
border: $width-tabs_bar_card-border solid transparent;
|
|
777
|
-
border-right: none;
|
|
778
|
-
border-radius: $radius-tabs_tab_card_left;
|
|
779
|
-
|
|
780
|
-
&:hover {
|
|
781
|
-
border-right: none;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
&.#{$module}-tab-active {
|
|
787
|
-
|
|
788
|
-
&:after {
|
|
789
|
-
content: " ";
|
|
790
|
-
width: 1px;
|
|
791
|
-
position: absolute;
|
|
792
|
-
right: -1px;
|
|
793
|
-
top: 0;
|
|
794
|
-
bottom: 0;
|
|
795
|
-
background: $color-tabs_tab_card_selected-bg-default;
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
&,
|
|
799
|
-
&:hover {
|
|
800
|
-
padding: $spacing-tabs_bar_card_tab_left_active-paddingY $spacing-tabs_bar_card_tab_left_active-paddingX;
|
|
801
|
-
border: $width-tabs_bar_card-border solid $color-tabs_tab_card_indicator_selected-icon-default;
|
|
802
|
-
border-right: none;
|
|
803
|
-
background: transparent;
|
|
804
|
-
// padding-bottom: $spacing-tight + 1;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
&.#{$module}-tab {
|
|
810
|
-
padding: $spacing-tabs_bar_card_tab-paddingY $spacing-tabs_bar_card_tab-paddingX;
|
|
811
|
-
transition: background-color $transition_duration-tabs_tab_card-bg $transition_function-tabs_tab_card-bg $transition_delay-tabs_tab_card-bg, //卡片式tabs的bg的transition
|
|
812
|
-
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//卡片式tabs的 color的transition
|
|
813
|
-
|
|
814
|
-
transform: scale($transform_scale-tabs_tab_card-item);
|
|
815
|
-
|
|
816
|
-
&:hover {
|
|
817
|
-
background: $color-tabs_tab_card-bg-hover;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
&:focus-visible {
|
|
821
|
-
outline: $width-tabs-outline solid $color-tabs_tab-outline-focus;
|
|
822
|
-
outline-offset: $width-tabs-outline-offset;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
&:active {
|
|
826
|
-
background: $color-tabs_tab_card-bg-active;
|
|
827
|
-
}
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
&-tab-button {
|
|
832
|
-
border: none;
|
|
833
|
-
|
|
834
|
-
&.#{$module}-tab {
|
|
835
|
-
padding: $spacing-tabs_bar_button_tab-paddingY $spacing-tabs_bar_button_tab-paddingX;
|
|
836
|
-
border-radius: $radius-tabs_tab_button;
|
|
837
|
-
color: $color-tabs_tab_button-text-default;
|
|
838
|
-
border: none;
|
|
839
|
-
transition: background-color $transition_duration-tabs-tab_button-bg $transition_function-tabs_tab_button-bg $transition_delay-tabs_tab_button-bg,//按钮tabs的背景色的transition
|
|
840
|
-
color $transition_duration-tabs_tab_line-text $transition_function-tabs_tab_line-text $transition_delay-tabs_tab_line-text;//按钮式tabs的 color的transition
|
|
841
|
-
|
|
842
|
-
transform: scale($transform_scale-tabs_tab_button-item);
|
|
843
|
-
|
|
844
|
-
&:hover {
|
|
845
|
-
border: none;
|
|
846
|
-
background-color: $color-tabs_tab_button-bg-hover;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
&:focus-visible {
|
|
850
|
-
outline: $width-tabs-outline solid $color-tabs_tab-outline-focus;
|
|
851
|
-
outline-offset: $width-tabs-outline-offset;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
&:active {
|
|
855
|
-
background-color: $color-tabs_tab_button-bg-active;
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
&.#{$module}-tab-active {
|
|
860
|
-
|
|
861
|
-
&,
|
|
862
|
-
&:hover {
|
|
863
|
-
color: $color-tabs_tab_button_selected-text-default;
|
|
864
|
-
border: none;
|
|
865
|
-
background-color: $color-tabs_tab_button_selected-bg-default;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
560
|
}
|
|
870
561
|
|
|
871
562
|
@import "./rtl.scss";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.27.0
|
|
3
|
+
"version": "2.27.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "a7a3f537ef48f75e3824c156e9b25a084e562dd6",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/select/foundation.ts
CHANGED
|
@@ -1114,4 +1114,9 @@ export default class SelectFoundation extends BaseFoundation<SelectAdapter> {
|
|
|
1114
1114
|
handlePopoverClose() {
|
|
1115
1115
|
this._adapter.emit('popoverClose');
|
|
1116
1116
|
}
|
|
1117
|
+
|
|
1118
|
+
// need to remove focus style of option when user hover slot
|
|
1119
|
+
handleSlotMouseEnter() {
|
|
1120
|
+
this._adapter.updateFocusIndex(-1);
|
|
1121
|
+
}
|
|
1117
1122
|
}
|
package/sideSheet/sideSheet.scss
CHANGED
|
@@ -76,6 +76,7 @@ $module: #{$prefix}-sidesheet;
|
|
|
76
76
|
margin: $spacing-sideSheet_title-margin;
|
|
77
77
|
@include font-size-header-5;
|
|
78
78
|
font-weight: $font-sideSheet_title-fontWeight;
|
|
79
|
+
font-size: $font-sideSheet_title-fontSize;
|
|
79
80
|
color: $color-sideSheet_main-text;
|
|
80
81
|
text-align: left;
|
|
81
82
|
}
|
package/sideSheet/variables.scss
CHANGED
package/steps/variables.scss
CHANGED
|
@@ -16,10 +16,10 @@ $color-steps_item_error_left-icon: var(--semi-color-danger); // 错误步骤条
|
|
|
16
16
|
$color-steps_item_error_left_number-icon: var(--semi-color-primary); // 错误步骤条数字序号文本颜色
|
|
17
17
|
$color-steps_item_finish-icon: var(--semi-color-primary); // 已完成步骤条图标颜色
|
|
18
18
|
$color-steps_item_finish_number-icon: var(--semi-color-white); // 已完成步骤条对勾图标颜色
|
|
19
|
-
$color-steps_item_left_number_icon-bg: var(--semi-color-primary); //
|
|
20
|
-
$color-steps_item_left_number_icon-icon: var(--semi-color-white); //
|
|
19
|
+
$color-steps_item_left_number_icon-bg: var(--semi-color-primary); // 步骤条图标背景颜色
|
|
20
|
+
$color-steps_item_left_number_icon-icon: var(--semi-color-white); // 步骤条图标文字颜色
|
|
21
21
|
$color-steps_item_process_left-icon: var(--semi-color-primary); // 进行中步骤条对勾图标颜色
|
|
22
|
-
$color-steps_item_process_left_number-icon: var(--semi-color-white); //
|
|
22
|
+
$color-steps_item_process_left_number-icon: var(--semi-color-white); // 进行中步骤条内部图标颜色
|
|
23
23
|
$color-steps_item_title-text-hover: var(--semi-color-focus-border); // 步骤条标题文字悬停颜色
|
|
24
24
|
$color-steps_item_wait_left_icon-icon: var(--semi-color-text-2); // 未到达步骤条图标颜色
|
|
25
25
|
$color-steps_item_wait_left_number_icon-bg-hover: var(--semi-color-secondary-light-default); // 未到达步骤条图标背景颜色 - 悬浮态
|