2019-04-16 21:59:25 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@progress-prefix-cls: ~'@{ant-prefix}-progress';
|
2015-06-14 19:50:23 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{progress-prefix-cls} {
|
2020-12-22 11:08:12 +08:00
|
|
|
.reset-component();
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2016-04-05 16:51:26 +08:00
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&-line {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2015-07-29 22:20:05 +08:00
|
|
|
width: 100%;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2019-11-22 10:46:33 +08:00
|
|
|
&-steps {
|
|
|
|
display: inline-block;
|
|
|
|
&-outer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
&-item {
|
|
|
|
flex-shrink: 0;
|
|
|
|
min-width: 2px;
|
|
|
|
margin-right: 2px;
|
2019-12-25 20:24:40 +08:00
|
|
|
background: @progress-steps-item-bg;
|
2020-05-29 13:43:53 +08:00
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
background: @progress-default-color;
|
|
|
|
}
|
2019-11-22 10:46:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-27 22:32:49 +08:00
|
|
|
&-small&-line,
|
|
|
|
&-small&-line &-text .@{iconfont-css-prefix} {
|
|
|
|
font-size: @font-size-sm;
|
|
|
|
}
|
|
|
|
|
2016-04-05 16:51:26 +08:00
|
|
|
&-outer {
|
2016-03-28 16:52:00 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
2016-04-05 16:51:26 +08:00
|
|
|
margin-right: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
.@{progress-prefix-cls}-show-info & {
|
2018-12-07 16:17:45 +08:00
|
|
|
margin-right: ~'calc(-2em - 8px)';
|
2019-02-15 10:48:07 +08:00
|
|
|
padding-right: ~'calc(2em + 8px)';
|
2015-07-30 17:27:41 +08:00
|
|
|
}
|
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
|
|
|
&-inner {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2015-06-14 19:50:23 +08:00
|
|
|
display: inline-block;
|
2015-07-29 22:20:05 +08:00
|
|
|
width: 100%;
|
2019-08-02 18:21:24 +08:00
|
|
|
overflow: hidden;
|
2019-02-15 10:48:07 +08:00
|
|
|
vertical-align: middle;
|
2017-04-29 04:04:41 +08:00
|
|
|
background-color: @progress-remaining-color;
|
2019-07-17 18:28:02 +08:00
|
|
|
border-radius: @progress-radius;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2017-02-22 19:33:15 +08:00
|
|
|
&-circle-trail {
|
2017-04-29 04:04:41 +08:00
|
|
|
stroke: @progress-remaining-color;
|
2017-02-22 19:33:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-circle-path {
|
2018-12-07 16:17:45 +08:00
|
|
|
animation: ~'@{ant-prefix}-progress-appear' 0.3s;
|
2019-08-15 10:30:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-inner:not(.@{ant-prefix}-progress-circle-gradient) {
|
|
|
|
.@{ant-prefix}-progress-circle-path {
|
|
|
|
stroke: @progress-default-color;
|
|
|
|
}
|
2017-02-22 19:33:15 +08:00
|
|
|
}
|
|
|
|
|
2018-01-19 15:22:37 +08:00
|
|
|
&-success-bg,
|
2016-04-05 16:51:26 +08:00
|
|
|
&-bg {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2017-11-03 09:43:02 +08:00
|
|
|
background-color: @progress-default-color;
|
2019-07-17 18:28:02 +08:00
|
|
|
border-radius: @progress-radius;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.4s @ease-out-circ 0s;
|
2015-06-14 19:50:23 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2018-01-19 15:22:37 +08:00
|
|
|
&-success-bg {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
background-color: @success-color;
|
2018-01-19 15:22:37 +08:00
|
|
|
}
|
|
|
|
|
2016-04-05 16:51:26 +08:00
|
|
|
&-text {
|
2019-02-15 10:48:07 +08:00
|
|
|
display: inline-block;
|
2017-06-05 14:12:59 +08:00
|
|
|
width: 2em;
|
2017-11-06 21:28:51 +08:00
|
|
|
margin-left: 8px;
|
2021-02-02 12:07:31 +08:00
|
|
|
color: @progress-info-text-color;
|
2020-04-28 11:16:01 +08:00
|
|
|
font-size: @progress-text-font-size;
|
2017-11-06 21:28:51 +08:00
|
|
|
line-height: 1;
|
2019-02-15 10:48:07 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
text-align: left;
|
|
|
|
vertical-align: middle;
|
|
|
|
word-break: normal;
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-06-14 19:50:23 +08:00
|
|
|
}
|
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
|
|
|
&-status-active {
|
2019-02-15 10:48:07 +08:00
|
|
|
.@{progress-prefix-cls}-bg::before {
|
2015-07-30 15:07:38 +08:00
|
|
|
position: absolute;
|
2015-08-20 16:55:42 +08:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: 0;
|
2016-11-29 11:56:10 +08:00
|
|
|
background: @component-background;
|
2015-07-30 15:07:38 +08:00
|
|
|
border-radius: 10px;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0;
|
2018-12-07 16:17:45 +08:00
|
|
|
animation: ~'@{ant-prefix}-progress-active' 2.4s @ease-out-quint infinite;
|
2019-02-15 10:48:07 +08:00
|
|
|
content: '';
|
2015-07-30 15:07:38 +08:00
|
|
|
}
|
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
|
|
|
&-status-exception {
|
|
|
|
.@{progress-prefix-cls}-bg {
|
2015-07-30 15:07:38 +08:00
|
|
|
background-color: @error-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
.@{progress-prefix-cls}-text {
|
2015-07-30 15:07:38 +08:00
|
|
|
color: @error-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2019-08-15 10:30:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-status-exception &-inner:not(.@{progress-prefix-cls}-circle-gradient) {
|
2017-02-22 19:33:15 +08:00
|
|
|
.@{progress-prefix-cls}-circle-path {
|
|
|
|
stroke: @error-color;
|
|
|
|
}
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
|
|
|
&-status-success {
|
|
|
|
.@{progress-prefix-cls}-bg {
|
2015-07-30 15:07:38 +08:00
|
|
|
background-color: @success-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
.@{progress-prefix-cls}-text {
|
2015-07-30 15:07:38 +08:00
|
|
|
color: @success-color;
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2019-08-15 10:30:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-status-success &-inner:not(.@{progress-prefix-cls}-circle-gradient) {
|
2017-02-22 19:33:15 +08:00
|
|
|
.@{progress-prefix-cls}-circle-path {
|
|
|
|
stroke: @success-color;
|
|
|
|
}
|
2015-07-29 22:20:05 +08:00
|
|
|
}
|
2015-06-14 20:07:21 +08:00
|
|
|
|
2016-04-05 16:51:26 +08:00
|
|
|
&-circle &-inner {
|
2015-06-14 20:07:21 +08:00
|
|
|
position: relative;
|
2015-06-14 23:04:43 +08:00
|
|
|
line-height: 1;
|
2016-04-05 16:51:26 +08:00
|
|
|
background-color: transparent;
|
2015-06-14 20:07:21 +08:00
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
|
|
|
&-circle &-text {
|
2015-06-14 20:07:21 +08:00
|
|
|
position: absolute;
|
2015-06-15 17:30:24 +08:00
|
|
|
top: 50%;
|
2019-01-01 11:42:08 +08:00
|
|
|
left: 50%;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 100%;
|
2016-04-05 16:51:26 +08:00
|
|
|
margin: 0;
|
2019-01-01 11:42:08 +08:00
|
|
|
padding: 0;
|
2018-08-28 11:36:00 +08:00
|
|
|
color: @progress-text-color;
|
2020-04-28 11:16:01 +08:00
|
|
|
font-size: @progress-circle-text-font-size;
|
2019-02-15 10:48:07 +08:00
|
|
|
line-height: 1;
|
2018-10-19 11:04:43 +08:00
|
|
|
white-space: normal;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: center;
|
|
|
|
transform: translate(-50%, -50%);
|
2015-06-14 20:07:21 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{iconfont-css-prefix} {
|
2020-12-25 14:31:44 +08:00
|
|
|
font-size: (14 / 12em);
|
2015-06-14 20:07:21 +08:00
|
|
|
}
|
|
|
|
}
|
2016-04-05 16:51:26 +08:00
|
|
|
|
2017-11-06 21:28:51 +08:00
|
|
|
&-circle&-status-exception {
|
2016-04-05 16:51:26 +08:00
|
|
|
.@{progress-prefix-cls}-text {
|
2015-07-30 15:54:08 +08:00
|
|
|
color: @error-color;
|
2015-07-29 23:32:24 +08:00
|
|
|
}
|
|
|
|
}
|
2017-11-06 21:28:51 +08:00
|
|
|
&-circle&-status-success {
|
2016-04-05 16:51:26 +08:00
|
|
|
.@{progress-prefix-cls}-text {
|
2015-07-30 15:54:08 +08:00
|
|
|
color: @success-color;
|
2015-07-29 23:32:24 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-15 11:00:27 +08:00
|
|
|
}
|
2015-07-30 15:07:38 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@keyframes ~"@{ant-prefix}-progress-active" {
|
2015-07-30 15:07:38 +08:00
|
|
|
0% {
|
2021-06-25 14:00:18 +08:00
|
|
|
transform: translateX(-100%) scaleX(0);
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0.1;
|
2017-01-09 23:05:18 +08:00
|
|
|
}
|
|
|
|
20% {
|
2021-06-25 14:00:18 +08:00
|
|
|
transform: translateX(-100%) scaleX(0);
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0.5;
|
2015-07-30 15:07:38 +08:00
|
|
|
}
|
|
|
|
100% {
|
2021-06-25 14:00:18 +08:00
|
|
|
transform: translateX(0) scaleX(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 0;
|
2015-07-30 15:07:38 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
2020-03-23 10:57:37 +08:00
|
|
|
@import './rtl';
|