2019-04-16 21:59:25 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 20:02:01 +08:00
|
|
|
@import '../../style/mixins/index';
|
2015-06-26 10:43:01 +08:00
|
|
|
|
2018-12-07 20:02:01 +08:00
|
|
|
@steps-prefix-cls: ~'@{ant-prefix}-steps';
|
2018-06-20 20:51:24 +08:00
|
|
|
@process-icon-color: @primary-color;
|
2017-09-27 22:32:49 +08:00
|
|
|
@process-title-color: @heading-color;
|
|
|
|
@process-description-color: @text-color;
|
2018-12-04 13:11:31 +08:00
|
|
|
@process-icon-text-color: @text-color-inverse;
|
2017-01-01 22:20:06 +08:00
|
|
|
@wait-icon-color: @disabled-color;
|
2016-11-08 20:45:56 +08:00
|
|
|
@wait-title-color: @text-color-secondary;
|
2015-07-08 15:53:51 +08:00
|
|
|
@wait-description-color: @wait-title-color;
|
2015-07-14 13:43:25 +08:00
|
|
|
@wait-tail-color: @process-tail-color;
|
2015-07-08 15:53:51 +08:00
|
|
|
@finish-icon-color: @process-icon-color;
|
2017-09-27 22:32:49 +08:00
|
|
|
@finish-title-color: @text-color;
|
2017-10-16 21:12:49 +08:00
|
|
|
@finish-description-color: @text-color-secondary;
|
2017-09-27 22:32:49 +08:00
|
|
|
@finish-tail-color: @primary-color;
|
2016-04-06 17:07:22 +08:00
|
|
|
@error-icon-color: @error-color;
|
|
|
|
@error-title-color: @error-color;
|
|
|
|
@error-description-color: @error-color;
|
2017-09-05 19:57:59 +08:00
|
|
|
@error-tail-color: @wait-tail-color;
|
2019-08-14 11:18:36 +08:00
|
|
|
@steps-nav-active-color: @primary-color;
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{steps-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
display: flex;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 100%;
|
|
|
|
font-size: 0;
|
2020-05-27 11:56:30 +08:00
|
|
|
text-align: initial;
|
2017-09-05 19:57:59 +08:00
|
|
|
}
|
2015-06-25 18:12:42 +08:00
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
flex: 1;
|
|
|
|
overflow: hidden;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: top;
|
2016-04-06 17:07:22 +08:00
|
|
|
|
2019-08-14 11:18:36 +08:00
|
|
|
&-container {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
&:last-child {
|
|
|
|
flex: none;
|
|
|
|
}
|
2016-04-06 17:07:22 +08:00
|
|
|
|
2019-08-14 11:18:36 +08:00
|
|
|
&:last-child > &-container > &-tail,
|
|
|
|
&:last-child > &-container > &-content > &-title::after {
|
2017-09-05 19:57:59 +08:00
|
|
|
display: none;
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
&-icon,
|
|
|
|
&-content {
|
2015-06-24 20:35:43 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
2015-06-24 14:52:49 +08:00
|
|
|
}
|
2015-07-07 19:36:42 +08:00
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
&-icon {
|
2016-12-04 15:50:54 +08:00
|
|
|
width: @steps-icon-size;
|
|
|
|
height: @steps-icon-size;
|
2020-03-29 10:39:46 +08:00
|
|
|
margin: @steps-icon-margin;
|
|
|
|
font-size: @steps-icon-font-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-family: @font-family;
|
2017-09-05 19:57:59 +08:00
|
|
|
line-height: @steps-icon-size;
|
2015-06-24 20:35:43 +08:00
|
|
|
text-align: center;
|
2019-02-15 10:48:07 +08:00
|
|
|
border: @border-width-base @border-style-base @wait-icon-color;
|
2016-12-04 15:50:54 +08:00
|
|
|
border-radius: @steps-icon-size;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: background-color 0.3s, border-color 0.3s;
|
2015-06-25 16:01:04 +08:00
|
|
|
|
2020-07-27 21:40:36 +08:00
|
|
|
.@{steps-prefix-cls}-icon {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2020-03-29 10:39:46 +08:00
|
|
|
top: @steps-icon-top;
|
2015-07-08 15:18:28 +08:00
|
|
|
color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 1;
|
2015-06-24 20:35:43 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
&-tail {
|
2015-07-07 19:36:42 +08:00
|
|
|
position: absolute;
|
2019-02-15 10:48:07 +08:00
|
|
|
top: 12px;
|
2015-07-07 19:36:42 +08:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2015-08-26 18:28:29 +08:00
|
|
|
padding: 0 10px;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2017-09-06 13:15:47 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 100%;
|
2017-09-06 13:15:47 +08:00
|
|
|
height: 1px;
|
2019-02-15 10:48:07 +08:00
|
|
|
background: @border-color-split;
|
2017-09-06 13:15:47 +08:00
|
|
|
border-radius: 1px;
|
2018-12-07 20:02:01 +08:00
|
|
|
transition: background 0.3s;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: '';
|
2017-09-06 13:15:47 +08:00
|
|
|
}
|
2015-06-25 16:01:04 +08:00
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
&-title {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2017-09-05 19:57:59 +08:00
|
|
|
display: inline-block;
|
2017-10-16 21:12:49 +08:00
|
|
|
padding-right: 16px;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @text-color;
|
|
|
|
font-size: @font-size-lg;
|
2020-03-29 10:39:46 +08:00
|
|
|
line-height: @steps-title-line-height;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2017-09-05 19:57:59 +08:00
|
|
|
position: absolute;
|
2020-03-29 10:39:46 +08:00
|
|
|
top: @steps-title-line-height / 2;
|
2017-09-05 19:57:59 +08:00
|
|
|
left: 100%;
|
2019-02-15 10:48:07 +08:00
|
|
|
display: block;
|
|
|
|
width: 9999px;
|
|
|
|
height: 1px;
|
|
|
|
background: @wait-tail-color;
|
|
|
|
content: '';
|
2015-08-31 20:24:47 +08:00
|
|
|
}
|
2015-08-27 13:20:31 +08:00
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
&-subtitle {
|
|
|
|
display: inline;
|
|
|
|
margin-left: 8px;
|
2019-08-28 17:37:50 +08:00
|
|
|
color: @text-color-secondary;
|
2019-08-14 11:18:36 +08:00
|
|
|
font-weight: normal;
|
2019-08-28 17:37:50 +08:00
|
|
|
font-size: @font-size-base;
|
2019-08-14 11:18:36 +08:00
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
&-description {
|
|
|
|
color: @text-color-secondary;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-08-26 18:28:29 +08:00
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
.step-item-status(wait);
|
|
|
|
.step-item-status(process);
|
|
|
|
&-process &-icon {
|
|
|
|
background: @process-icon-color;
|
2020-07-27 21:40:36 +08:00
|
|
|
.@{steps-prefix-cls}-icon {
|
2017-09-05 19:57:59 +08:00
|
|
|
color: @process-icon-text-color;
|
2015-08-27 13:20:31 +08:00
|
|
|
}
|
|
|
|
}
|
2017-10-11 12:01:27 +08:00
|
|
|
&-process &-title {
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
.step-item-status(finish);
|
|
|
|
.step-item-status(error);
|
2015-09-01 15:30:51 +08:00
|
|
|
|
2019-02-15 10:48:07 +08:00
|
|
|
&.@{steps-prefix-cls}-next-error .@{steps-prefix-cls}-item-title::after {
|
2017-09-05 19:57:59 +08:00
|
|
|
background: @error-icon-color;
|
2016-04-15 23:04:06 +08:00
|
|
|
}
|
2020-04-20 17:05:41 +08:00
|
|
|
|
|
|
|
&-disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
}
|
2019-05-25 21:01:21 +08:00
|
|
|
|
2019-08-14 11:18:36 +08:00
|
|
|
// ===================== Clickable =====================
|
2019-09-04 20:35:27 +08:00
|
|
|
.@{steps-prefix-cls} .@{steps-prefix-cls}-item {
|
2019-08-14 11:18:36 +08:00
|
|
|
&:not(.@{steps-prefix-cls}-item-active) {
|
|
|
|
& > .@{steps-prefix-cls}-item-container[role='button'] {
|
2019-05-25 21:01:21 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-title,
|
2020-05-30 00:45:24 +08:00
|
|
|
&-subtitle,
|
2019-05-25 21:01:21 +08:00
|
|
|
&-description,
|
|
|
|
&-icon .@{steps-prefix-cls}-icon {
|
|
|
|
transition: color 0.3s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-title,
|
2019-08-14 11:18:36 +08:00
|
|
|
&-subtitle,
|
2019-05-25 21:01:21 +08:00
|
|
|
&-description {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-25 21:01:21 +08:00
|
|
|
|
2019-08-14 11:18:36 +08:00
|
|
|
&:not(.@{steps-prefix-cls}-item-process) {
|
|
|
|
& > .@{steps-prefix-cls}-item-container[role='button']:hover {
|
|
|
|
.@{steps-prefix-cls}-item {
|
2019-05-25 21:01:21 +08:00
|
|
|
&-icon {
|
|
|
|
border-color: @primary-color;
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-icon {
|
|
|
|
color: @primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-04-15 23:04:06 +08:00
|
|
|
}
|
2017-01-23 14:37:40 +08:00
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) {
|
2017-01-23 14:37:40 +08:00
|
|
|
.@{steps-prefix-cls}-item {
|
2020-07-27 21:40:36 +08:00
|
|
|
padding-left: 16px;
|
2017-09-25 11:25:57 +08:00
|
|
|
white-space: nowrap;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2020-07-27 21:40:36 +08:00
|
|
|
&:first-child {
|
|
|
|
padding-left: 0;
|
2017-01-23 14:37:40 +08:00
|
|
|
}
|
2017-10-16 21:12:49 +08:00
|
|
|
&:last-child .@{steps-prefix-cls}-item-title {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
&-tail {
|
|
|
|
display: none;
|
2017-01-23 14:37:40 +08:00
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
&-description {
|
|
|
|
max-width: @steps-desciption-max-width;
|
2018-08-24 20:25:23 +08:00
|
|
|
white-space: normal;
|
2017-01-23 14:37:40 +08:00
|
|
|
}
|
|
|
|
}
|
2017-09-05 19:57:59 +08:00
|
|
|
}
|
2017-01-23 14:37:40 +08:00
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
.step-item-status(@status) {
|
2018-12-07 20:02:01 +08:00
|
|
|
@icon-color: '@{status}-icon-color';
|
|
|
|
@title-color: '@{status}-title-color';
|
|
|
|
@description-color: '@{status}-description-color';
|
|
|
|
@tail-color: '@{status}-tail-color';
|
2017-09-05 19:57:59 +08:00
|
|
|
&-@{status} &-icon {
|
|
|
|
background-color: @steps-background;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @@icon-color;
|
2017-09-05 19:57:59 +08:00
|
|
|
> .@{steps-prefix-cls}-icon {
|
|
|
|
color: @@icon-color;
|
2017-01-23 14:37:40 +08:00
|
|
|
.@{steps-prefix-cls}-icon-dot {
|
2017-09-05 19:57:59 +08:00
|
|
|
background: @@icon-color;
|
2017-01-23 14:37:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
&-@{status} > &-container > &-content > &-title {
|
2017-09-05 19:57:59 +08:00
|
|
|
color: @@title-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
&::after {
|
2017-09-05 19:57:59 +08:00
|
|
|
background-color: @@tail-color;
|
2017-02-28 15:13:23 +08:00
|
|
|
}
|
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
&-@{status} > &-container > &-content > &-description {
|
2017-09-05 19:57:59 +08:00
|
|
|
color: @@description-color;
|
2017-01-23 14:37:40 +08:00
|
|
|
}
|
2019-08-14 11:18:36 +08:00
|
|
|
&-@{status} > &-container > &-tail::after {
|
2017-09-05 19:57:59 +08:00
|
|
|
background-color: @@tail-color;
|
2017-08-16 16:07:57 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-05 19:57:59 +08:00
|
|
|
@import 'custom-icon';
|
|
|
|
@import 'small';
|
|
|
|
@import 'vertical';
|
|
|
|
@import 'label-placement';
|
|
|
|
@import 'progress-dot';
|
2019-08-14 11:18:36 +08:00
|
|
|
@import 'nav';
|
2020-03-19 12:13:24 +08:00
|
|
|
@import './rtl';
|
2020-07-27 21:40:36 +08:00
|
|
|
@import './progress.less';
|