@douyinfe/semi-foundation 2.29.0 → 2.30.0-alpha.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/lib/cjs/anchor/constants.js +1 -1
- package/lib/cjs/anchor/foundation.js +3 -3
- package/lib/cjs/autoComplete/constants.js +3 -3
- package/lib/cjs/avatar/constants.js +1 -1
- package/lib/cjs/backtop/constants.js +1 -1
- package/lib/cjs/badge/constants.js +1 -1
- package/lib/cjs/banner/constants.js +1 -1
- package/lib/cjs/breadcrumb/constants.js +1 -1
- package/lib/cjs/button/constants.js +1 -1
- package/lib/cjs/calendar/constants.js +1 -1
- package/lib/cjs/card/constants.js +1 -1
- package/lib/cjs/carousel/constants.js +9 -9
- package/lib/cjs/cascader/constants.js +2 -2
- package/lib/cjs/cascader/foundation.js +1 -1
- package/lib/cjs/cascader/util.js +2 -2
- package/lib/cjs/checkbox/constants.js +13 -13
- package/lib/cjs/collapse/constants.js +1 -1
- package/lib/cjs/collapsible/constants.js +1 -1
- package/lib/cjs/datePicker/_utils/getInsetInputFormatToken.js +1 -1
- package/lib/cjs/datePicker/_utils/getMonthTable.js +4 -4
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +1 -1
- package/lib/cjs/datePicker/constants.js +27 -27
- package/lib/cjs/datePicker/foundation.js +3 -3
- package/lib/cjs/datePicker/inputFoundation.js +2 -2
- package/lib/cjs/datePicker/monthsGridFoundation.js +1 -1
- package/lib/cjs/descriptions/constants.js +1 -1
- package/lib/cjs/divider/constants.js +1 -1
- package/lib/cjs/dropdown/constants.js +3 -3
- package/lib/cjs/dropdown/menuFoundation.js +1 -1
- package/lib/cjs/empty/constants.js +1 -1
- package/lib/cjs/form/constants.js +1 -1
- package/lib/cjs/form/foundation.js +1 -1
- package/lib/cjs/form/utils.js +1 -1
- package/lib/cjs/grid/constants.js +1 -1
- package/lib/cjs/highlight/constants.js +1 -1
- package/lib/cjs/icons/constants.js +1 -1
- package/lib/cjs/image/constants.js +1 -1
- package/lib/cjs/input/constants.js +1 -1
- package/lib/cjs/input/textareaFoundation.js +1 -1
- package/lib/cjs/layout/constants.js +1 -1
- package/lib/cjs/list/constants.js +1 -1
- package/lib/cjs/modal/constants.js +1 -1
- package/lib/cjs/navigation/constants.js +1 -1
- package/lib/cjs/notification/constants.js +3 -3
- package/lib/cjs/pagination/constants.js +1 -1
- package/lib/cjs/popconfirm/constants.js +2 -2
- package/lib/cjs/popover/constants.js +2 -2
- package/lib/cjs/progress/constants.js +1 -1
- package/lib/cjs/progress/generates.js +14 -14
- package/lib/cjs/radio/constants.js +13 -13
- package/lib/cjs/rating/constants.js +1 -1
- package/lib/cjs/scrollList/constants.js +2 -2
- package/lib/cjs/select/constants.js +3 -3
- package/lib/cjs/select/foundation.js +1 -2
- package/lib/cjs/sideSheet/constants.js +2 -2
- package/lib/cjs/skeleton/constants.js +1 -1
- package/lib/cjs/slider/constants.js +7 -7
- package/lib/cjs/space/constants.js +1 -1
- package/lib/cjs/spin/constants.js +1 -1
- package/lib/cjs/steps/bacisSteps.scss +286 -238
- package/lib/cjs/steps/constants.js +2 -2
- package/lib/cjs/steps/fillSteps.scss +148 -142
- package/lib/cjs/steps/navSteps.scss +60 -40
- package/lib/cjs/steps/steps.css +377 -14
- package/lib/cjs/switch/constants.js +13 -13
- package/lib/cjs/table/constants.js +7 -7
- package/lib/cjs/table/utils.js +2 -2
- package/lib/cjs/tabs/constants.js +21 -21
- package/lib/cjs/tag/constants.js +1 -1
- package/lib/cjs/tagInput/constants.js +1 -1
- package/lib/cjs/timePicker/ComboxFoundation.js +2 -2
- package/lib/cjs/timePicker/constants.js +3 -3
- package/lib/cjs/timePicker/utils/index.js +3 -3
- package/lib/cjs/timeline/constants.js +2 -2
- package/lib/cjs/toast/constants.js +3 -3
- package/lib/cjs/tooltip/constants.js +1 -1
- package/lib/cjs/tooltip/foundation.js +7 -7
- package/lib/cjs/transfer/constants.js +1 -1
- package/lib/cjs/tree/constants.js +2 -2
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/tree/treeUtil.js +1 -1
- package/lib/cjs/treeSelect/constants.js +3 -3
- package/lib/cjs/typography/constants.js +1 -1
- package/lib/cjs/typography/formatNumeral.js +6 -6
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/cjs/upload/constants.js +2 -2
- package/lib/cjs/upload/foundation.js +1 -1
- package/lib/cjs/upload/utils.js +4 -4
- package/lib/cjs/utils/getMotionObjFromProps.js +2 -2
- package/lib/cjs/utils/touchPolyfill.js +1 -1
- package/lib/cjs/utils/uuid.js +2 -2
- package/lib/cjs/utils/warning.js +1 -1
- package/lib/es/anchor/constants.js +1 -1
- package/lib/es/anchor/foundation.js +3 -3
- package/lib/es/autoComplete/constants.js +3 -3
- package/lib/es/avatar/constants.js +1 -1
- package/lib/es/backtop/constants.js +1 -1
- package/lib/es/badge/constants.js +1 -1
- package/lib/es/banner/constants.js +1 -1
- package/lib/es/breadcrumb/constants.js +1 -1
- package/lib/es/button/constants.js +1 -1
- package/lib/es/calendar/constants.js +1 -1
- package/lib/es/card/constants.js +1 -1
- package/lib/es/carousel/constants.js +9 -9
- package/lib/es/cascader/constants.js +2 -2
- package/lib/es/cascader/foundation.js +1 -1
- package/lib/es/cascader/util.js +2 -2
- package/lib/es/checkbox/constants.js +13 -13
- package/lib/es/collapse/constants.js +1 -1
- package/lib/es/collapsible/constants.js +1 -1
- package/lib/es/datePicker/_utils/getInsetInputFormatToken.js +1 -1
- package/lib/es/datePicker/_utils/getMonthTable.js +4 -4
- package/lib/es/datePicker/_utils/getMonthsInYear.js +1 -1
- package/lib/es/datePicker/constants.js +27 -27
- package/lib/es/datePicker/foundation.js +3 -3
- package/lib/es/datePicker/inputFoundation.js +2 -2
- package/lib/es/datePicker/monthsGridFoundation.js +1 -1
- package/lib/es/descriptions/constants.js +1 -1
- package/lib/es/divider/constants.js +1 -1
- package/lib/es/dropdown/constants.js +3 -3
- package/lib/es/dropdown/menuFoundation.js +1 -1
- package/lib/es/empty/constants.js +1 -1
- package/lib/es/form/constants.js +1 -1
- package/lib/es/form/foundation.js +1 -1
- package/lib/es/form/utils.js +1 -1
- package/lib/es/grid/constants.js +1 -1
- package/lib/es/highlight/constants.js +1 -1
- package/lib/es/icons/constants.js +1 -1
- package/lib/es/image/constants.js +1 -1
- package/lib/es/input/constants.js +1 -1
- package/lib/es/input/textareaFoundation.js +1 -1
- package/lib/es/layout/constants.js +1 -1
- package/lib/es/list/constants.js +1 -1
- package/lib/es/modal/constants.js +1 -1
- package/lib/es/navigation/constants.js +1 -1
- package/lib/es/notification/constants.js +3 -3
- package/lib/es/pagination/constants.js +1 -1
- package/lib/es/popconfirm/constants.js +2 -2
- package/lib/es/popover/constants.js +2 -2
- package/lib/es/progress/constants.js +1 -1
- package/lib/es/progress/generates.js +14 -14
- package/lib/es/radio/constants.js +13 -13
- package/lib/es/rating/constants.js +1 -1
- package/lib/es/scrollList/constants.js +2 -2
- package/lib/es/select/constants.js +3 -3
- package/lib/es/select/foundation.js +1 -2
- package/lib/es/sideSheet/constants.js +2 -2
- package/lib/es/skeleton/constants.js +1 -1
- package/lib/es/slider/constants.js +7 -7
- package/lib/es/space/constants.js +1 -1
- package/lib/es/spin/constants.js +1 -1
- package/lib/es/steps/bacisSteps.scss +286 -238
- package/lib/es/steps/constants.js +2 -2
- package/lib/es/steps/fillSteps.scss +148 -142
- package/lib/es/steps/navSteps.scss +60 -40
- package/lib/es/steps/steps.css +377 -14
- package/lib/es/switch/constants.js +13 -13
- package/lib/es/table/constants.js +7 -7
- package/lib/es/table/utils.js +2 -2
- package/lib/es/tabs/constants.js +21 -21
- package/lib/es/tag/constants.js +1 -1
- package/lib/es/tagInput/constants.js +1 -1
- package/lib/es/timePicker/ComboxFoundation.js +2 -2
- package/lib/es/timePicker/constants.js +3 -3
- package/lib/es/timePicker/utils/index.js +3 -3
- package/lib/es/timeline/constants.js +2 -2
- package/lib/es/toast/constants.js +3 -3
- package/lib/es/tooltip/constants.js +1 -1
- package/lib/es/tooltip/foundation.js +7 -7
- package/lib/es/transfer/constants.js +1 -1
- package/lib/es/tree/constants.js +2 -2
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/tree/treeUtil.js +1 -1
- package/lib/es/treeSelect/constants.js +3 -3
- package/lib/es/typography/constants.js +1 -1
- package/lib/es/typography/formatNumeral.js +6 -6
- package/lib/es/upload/constants.d.ts +1 -1
- package/lib/es/upload/constants.js +2 -2
- package/lib/es/upload/foundation.js +1 -1
- package/lib/es/upload/utils.js +4 -4
- package/lib/es/utils/getMotionObjFromProps.js +2 -2
- package/lib/es/utils/touchPolyfill.js +1 -1
- package/lib/es/utils/uuid.js +2 -2
- package/lib/es/utils/warning.js +1 -1
- package/package.json +2 -2
- package/steps/bacisSteps.scss +286 -238
- package/steps/fillSteps.scss +148 -142
- package/steps/navSteps.scss +60 -40
package/steps/fillSteps.scss
CHANGED
|
@@ -1,198 +1,204 @@
|
|
|
1
1
|
$module: #{$prefix}-steps;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
$fill: #{$module}-item-fill;
|
|
3
|
+
|
|
4
|
+
@mixin steps-item {
|
|
5
|
+
@include box-sizing;
|
|
6
|
+
display: flex;
|
|
7
|
+
height: $height-steps_item;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
margin-right: $spacing-steps_item-marginRight;
|
|
11
|
+
border: $width-steps_item-border solid $color-steps-border-default;
|
|
12
|
+
border-radius: $radius-steps_item;
|
|
13
|
+
padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
|
|
14
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
|
|
15
|
+
transform:scale($transform_scale-step-item);
|
|
16
|
+
transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
17
|
+
|
|
18
|
+
.#{$module}-item-title {
|
|
19
|
+
position: relative;
|
|
20
|
+
// display: inline-block;
|
|
21
|
+
@include font-size-header-5;
|
|
22
|
+
font-weight: $font-weight-bold;
|
|
23
|
+
width: $width-steps_item_title;
|
|
24
|
+
@include text-overflow-hidden;
|
|
25
|
+
color: $color-steps_main-text-default;
|
|
26
|
+
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
27
|
+
|
|
6
28
|
}
|
|
7
29
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
30
|
+
.#{$module}-item-description {
|
|
31
|
+
@include font-size-regular;
|
|
32
|
+
color: $color-steps_minor-text-default;
|
|
33
|
+
width: $width-steps_item_description;
|
|
34
|
+
@include text-overflow-hidden;
|
|
12
35
|
}
|
|
13
36
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// &-text {
|
|
17
|
-
// position: relative;
|
|
18
|
-
// &::after {
|
|
19
|
-
// content: '';
|
|
20
|
-
// display: block;
|
|
21
|
-
// width: 9999px;
|
|
22
|
-
// height: 1px;
|
|
23
|
-
// position: absolute;
|
|
24
|
-
// top: 12px;
|
|
25
|
-
// left: 120%;
|
|
26
|
-
// background-color: var(--semi-color-border);
|
|
27
|
-
// }
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
// }
|
|
37
|
+
&-process {
|
|
38
|
+
background-color: $color-steps_process-bg-default;
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
display: flex;
|
|
35
|
-
height: $height-steps_item;
|
|
36
|
-
position: relative;
|
|
37
|
-
overflow: hidden;
|
|
38
|
-
margin-right: $spacing-steps_item-marginRight;
|
|
39
|
-
border: $width-steps_item-border solid $color-steps-border-default;
|
|
40
|
-
border-radius: $radius-steps_item;
|
|
41
|
-
padding: $spacing-steps_item-paddingY $spacing-steps_item-paddingX;
|
|
42
|
-
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text; // item 字体颜色动效
|
|
43
|
-
transform:scale($transform_scale-step-item);
|
|
44
|
-
transition: background-color $transition_duration-steps_item-backgroundColor $transition_function-steps_item_backgroundColor $transition_delay-steps_item_backgroundColor; //step backgroundColor 的transition变化
|
|
45
|
-
|
|
46
|
-
.#{$module}-item-title {
|
|
47
|
-
position: relative;
|
|
48
|
-
// display: inline-block;
|
|
49
|
-
@include font-size-header-5;
|
|
50
|
-
font-weight: $font-weight-bold;
|
|
51
|
-
width: $width-steps_item_title;
|
|
52
|
-
@include text-overflow-hidden;
|
|
53
|
-
color: $color-steps_main-text-default;
|
|
54
|
-
transition: color $transition_duration-steps_item_title-text $transition_function-steps_item_title-text $transition_delay-steps_item_title-text
|
|
55
|
-
|
|
40
|
+
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
41
|
+
background: $color-steps_primary-bg-default;
|
|
56
42
|
}
|
|
57
43
|
|
|
58
|
-
.#{$module}-item-
|
|
59
|
-
|
|
60
|
-
color: $color-
|
|
61
|
-
width: $width-steps_item_description;
|
|
62
|
-
@include text-overflow-hidden;
|
|
44
|
+
.#{$module}-item-title,
|
|
45
|
+
.#{$module}-item-icon {
|
|
46
|
+
color: $color-steps_primary-icon-default;
|
|
63
47
|
}
|
|
48
|
+
}
|
|
64
49
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
background: $color-steps_primary-bg-default;
|
|
70
|
-
}
|
|
50
|
+
&-wait {
|
|
51
|
+
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
52
|
+
background: $color-steps-bg-default;
|
|
53
|
+
}
|
|
71
54
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
color: $color-steps_primary-icon-default;
|
|
75
|
-
}
|
|
55
|
+
.#{$module}-item-icon {
|
|
56
|
+
color: $color-steps-icon-default;
|
|
76
57
|
}
|
|
58
|
+
}
|
|
77
59
|
|
|
78
|
-
|
|
79
|
-
.#{$module}-item-left:not(.#{$module}-item-icon) {
|
|
80
|
-
background: $color-steps-bg-default;
|
|
81
|
-
}
|
|
60
|
+
&-finish {
|
|
82
61
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
62
|
+
.#{$prefix}-icon,
|
|
63
|
+
.#{$module}-item-title {
|
|
64
|
+
color: $color-steps_success-text-default;
|
|
86
65
|
}
|
|
87
66
|
|
|
88
|
-
|
|
67
|
+
&:hover {
|
|
68
|
+
background-color: $color-steps-bg-hover;
|
|
89
69
|
|
|
90
70
|
.#{$prefix}-icon,
|
|
91
71
|
.#{$module}-item-title {
|
|
92
|
-
color: $color-steps_success-text-
|
|
72
|
+
color: $color-steps_success-text-hover;
|
|
93
73
|
}
|
|
74
|
+
}
|
|
94
75
|
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
&:active {
|
|
77
|
+
background-color: $color-steps-bg-active;
|
|
97
78
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
79
|
+
.#{$prefix}-icon,
|
|
80
|
+
.#{$module}-item-title {
|
|
81
|
+
color: $color-steps_success-text-active;
|
|
102
82
|
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
103
85
|
|
|
104
|
-
|
|
105
|
-
background-color: $color-steps-bg-active;
|
|
86
|
+
&-error {
|
|
106
87
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
}
|
|
88
|
+
.#{$prefix}-icon,
|
|
89
|
+
.#{$module}-item-title {
|
|
90
|
+
color: $color-steps_danger-text-default;
|
|
112
91
|
}
|
|
113
92
|
|
|
114
|
-
|
|
93
|
+
&:hover {
|
|
94
|
+
background: $color-steps-bg-hover;
|
|
115
95
|
|
|
116
96
|
.#{$prefix}-icon,
|
|
117
97
|
.#{$module}-item-title {
|
|
118
|
-
color: $color-steps_danger-text-
|
|
98
|
+
color: $color-steps_danger-text-hover;
|
|
119
99
|
}
|
|
100
|
+
}
|
|
120
101
|
|
|
121
|
-
|
|
122
|
-
|
|
102
|
+
&:active {
|
|
103
|
+
background-color: $color-steps-bg-active;
|
|
123
104
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
105
|
+
.#{$prefix}-icon,
|
|
106
|
+
.#{$module}-item-title {
|
|
107
|
+
color: $color-steps_danger-text-active;
|
|
128
108
|
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
129
111
|
|
|
130
|
-
|
|
131
|
-
background-color: $color-steps-bg-active;
|
|
112
|
+
&-warning {
|
|
132
113
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
}
|
|
114
|
+
.#{$module}-item-title,
|
|
115
|
+
.#{$prefix}-icon {
|
|
116
|
+
color: $color-steps_warning-text-default;
|
|
138
117
|
}
|
|
139
118
|
|
|
140
|
-
|
|
119
|
+
&:hover {
|
|
120
|
+
background: $color-steps-bg-hover;
|
|
141
121
|
|
|
142
122
|
.#{$module}-item-title,
|
|
143
123
|
.#{$prefix}-icon {
|
|
144
|
-
color: $color-steps_warning-text-
|
|
124
|
+
color: $color-steps_warning-text-hover;
|
|
145
125
|
}
|
|
126
|
+
}
|
|
146
127
|
|
|
147
|
-
|
|
148
|
-
|
|
128
|
+
&:active {
|
|
129
|
+
background-color: $color-steps-bg-active;
|
|
149
130
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
131
|
+
.#{$module}-item-title,
|
|
132
|
+
.#{$prefix}-icon {
|
|
133
|
+
color: $color-steps_warning-text-active;
|
|
154
134
|
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
155
137
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
138
|
+
&-clickable {
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
@mixin steps-item-left {
|
|
145
|
+
&-left {
|
|
146
|
+
width: $width-steps_item_left;
|
|
147
|
+
height: $height-steps_item_left;
|
|
148
|
+
line-height: $font-steps_item_left-lineHeight;
|
|
149
|
+
text-align: center;
|
|
150
|
+
border-radius: $radius-steps_item_left;
|
|
151
|
+
display: flex;
|
|
152
|
+
align-items: center;
|
|
153
|
+
justify-content: center;
|
|
154
|
+
@include font-size-header-4;
|
|
155
|
+
font-weight: $font-weight-bold;
|
|
156
|
+
flex-grow: 0;
|
|
157
|
+
|
|
158
|
+
&.#{$module}-item-plain {
|
|
159
|
+
color: $color-steps-text-default;
|
|
164
160
|
}
|
|
165
161
|
|
|
166
|
-
&-
|
|
167
|
-
|
|
162
|
+
&-process {
|
|
163
|
+
background: $color-steps_process-bg-default;
|
|
168
164
|
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
169
167
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
align-items: center;
|
|
178
|
-
justify-content: center;
|
|
179
|
-
@include font-size-header-4;
|
|
180
|
-
font-weight: $font-weight-bold;
|
|
181
|
-
flex-grow: 0;
|
|
168
|
+
@mixin steps-item-content {
|
|
169
|
+
&-content {
|
|
170
|
+
margin-left: $spacing-steps_item_content-marginLeft;
|
|
171
|
+
flex: 1;
|
|
172
|
+
overflow: hidden;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
182
175
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
.#{$module} {
|
|
177
|
+
.#{$prefix}-col {
|
|
178
|
+
flex: 1;
|
|
179
|
+
}
|
|
186
180
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
181
|
+
&-vertical {
|
|
182
|
+
.#{$prefix}-row-flex {
|
|
183
|
+
flex-direction: column;
|
|
190
184
|
}
|
|
185
|
+
}
|
|
191
186
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
187
|
+
.#{$module}-item {
|
|
188
|
+
@include steps-item;
|
|
189
|
+
@include steps-item-left;
|
|
190
|
+
@include steps-item-content;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
// 以下 css 用于 C2D 中变体生成
|
|
195
|
+
.#{$fill} {
|
|
196
|
+
&.#{$module}-item {
|
|
197
|
+
@include steps-item;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.#{$module}-item {
|
|
201
|
+
@include steps-item-left;
|
|
202
|
+
@include steps-item-content;
|
|
197
203
|
}
|
|
198
204
|
}
|
package/steps/navSteps.scss
CHANGED
|
@@ -1,63 +1,83 @@
|
|
|
1
1
|
$module: #{$prefix}-steps;
|
|
2
2
|
$item: #{$module}-item;
|
|
3
3
|
$basicType: #{$module}-nav;
|
|
4
|
+
$navItem: #{$item}-nav;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
flex-flow: row nowrap;
|
|
8
|
-
|
|
9
|
-
.#{$item} {
|
|
10
|
-
@include box-sizing;
|
|
6
|
+
@mixin steps-nav-item {
|
|
7
|
+
@include box-sizing;
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
&:last-child {
|
|
10
|
+
flex: none;
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
12
|
+
.#{$item}-content {
|
|
13
|
+
width: auto;
|
|
18
14
|
}
|
|
15
|
+
}
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
.#{$item}-icon {
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
flex: 1;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
color: $color-steps_nav_item-icon;
|
|
30
|
-
min-width: $width-steps_nav_item_icon-minWidth;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
17
|
+
.#{$item}-container {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
color: $color-steps_nav_item_container-text;
|
|
33
21
|
|
|
34
|
-
.#{$item}-
|
|
22
|
+
.#{$item}-icon {
|
|
23
|
+
display: inline-flex;
|
|
35
24
|
flex: 1;
|
|
36
|
-
|
|
25
|
+
justify-content: center;
|
|
26
|
+
color: $color-steps_nav_item-icon;
|
|
27
|
+
min-width: $width-steps_nav_item_icon-minWidth;
|
|
37
28
|
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.#{$item}-content {
|
|
32
|
+
flex: 1;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
}
|
|
38
35
|
|
|
36
|
+
.#{$item}-title {
|
|
37
|
+
@include font-size-header-6;
|
|
38
|
+
max-width: $width-steps_nav_item_title-maxWidth;
|
|
39
|
+
@include text-overflow-hidden;
|
|
40
|
+
font-weight: $font-steps_nav_item_title-fontWeight;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&-active {
|
|
39
45
|
.#{$item}-title {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
@include text-overflow-hidden;
|
|
43
|
-
font-weight: $font-steps_nav_item_title-fontWeight;
|
|
46
|
+
color: $color-steps_nav_item_title-text-active;
|
|
47
|
+
font-weight: $font-steps_nav_item_title_active-fontWeight;
|
|
44
48
|
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
45
51
|
|
|
52
|
+
@mixin steps-nav-small {
|
|
53
|
+
.#{$item}-title {
|
|
54
|
+
@include font-size-regular;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
46
57
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
.#{$basicType} {
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
flex-flow: row nowrap;
|
|
61
|
+
|
|
62
|
+
.#{$item} {
|
|
63
|
+
@include steps-nav-item;
|
|
53
64
|
}
|
|
54
65
|
|
|
55
66
|
&.#{$module}-small {
|
|
56
67
|
.#{$item} {
|
|
57
|
-
|
|
58
|
-
@include font-size-regular;
|
|
59
|
-
}
|
|
60
|
-
|
|
68
|
+
@include steps-nav-small;
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
}
|
|
72
|
+
|
|
73
|
+
// C2D 变体生成样式
|
|
74
|
+
.#{$navItem} {
|
|
75
|
+
&.#{$item} {
|
|
76
|
+
@include steps-nav-item;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.#{$item}-small {
|
|
80
|
+
@include steps-nav-small;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|