2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2015-09-01 21:15:31 +08:00
|
|
|
|
2018-12-07 16:17:45 +08:00
|
|
|
@timeline-prefix-cls: ~'@{ant-prefix}-timeline';
|
2015-09-01 21:15:31 +08:00
|
|
|
|
|
|
|
.@{timeline-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2016-04-18 16:17:16 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
2016-04-18 16:17:16 +08:00
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-item {
|
|
|
|
position: relative;
|
2016-04-18 16:17:16 +08:00
|
|
|
margin: 0;
|
2020-01-20 10:28:51 +08:00
|
|
|
padding-bottom: @timeline-item-padding-bottom;
|
2017-09-21 18:12:53 +08:00
|
|
|
font-size: @font-size-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
list-style: none;
|
2015-09-01 21:15:31 +08:00
|
|
|
|
|
|
|
&-tail {
|
|
|
|
position: absolute;
|
2019-07-30 10:54:47 +08:00
|
|
|
top: 10px;
|
2019-02-15 10:48:07 +08:00
|
|
|
left: 4px;
|
2019-07-30 10:54:47 +08:00
|
|
|
height: calc(100% - 10px);
|
2019-07-17 18:43:10 +08:00
|
|
|
border-left: @timeline-width solid @timeline-color;
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
|
|
|
|
2018-01-09 17:42:31 +08:00
|
|
|
&-pending &-head {
|
|
|
|
font-size: @font-size-sm;
|
2019-07-30 10:54:47 +08:00
|
|
|
background-color: transparent;
|
2018-01-09 17:42:31 +08:00
|
|
|
}
|
|
|
|
|
2016-01-14 16:43:48 +08:00
|
|
|
&-pending &-tail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-head {
|
2015-09-01 21:39:29 +08:00
|
|
|
position: absolute;
|
2017-10-18 17:42:00 +08:00
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
2019-07-17 18:43:10 +08:00
|
|
|
background-color: @timeline-dot-bg;
|
|
|
|
border: @timeline-dot-border-width solid transparent;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-radius: 100px;
|
2017-09-21 18:12:53 +08:00
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-blue {
|
2016-05-07 02:13:08 +08:00
|
|
|
color: @primary-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @primary-color;
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
2019-07-17 18:43:10 +08:00
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-red {
|
2016-05-07 02:13:08 +08:00
|
|
|
color: @error-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @error-color;
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
2019-07-17 18:43:10 +08:00
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-green {
|
2016-05-07 02:13:08 +08:00
|
|
|
color: @success-color;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-color: @success-color;
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
2019-07-19 14:08:39 +08:00
|
|
|
|
|
|
|
&-gray {
|
|
|
|
color: @disabled-color;
|
|
|
|
border-color: @disabled-color;
|
|
|
|
}
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
|
|
|
|
2016-05-07 02:13:08 +08:00
|
|
|
&-head-custom {
|
|
|
|
position: absolute;
|
2019-02-15 10:48:07 +08:00
|
|
|
top: 5.5px;
|
|
|
|
left: 5px;
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
2017-09-27 22:32:49 +08:00
|
|
|
margin-top: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: 3px 1px;
|
|
|
|
line-height: 1;
|
|
|
|
text-align: center;
|
2016-05-07 02:13:08 +08:00
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2017-09-27 22:32:49 +08:00
|
|
|
transform: translate(-50%, -50%);
|
2016-05-07 02:13:08 +08:00
|
|
|
}
|
|
|
|
|
2015-09-01 21:15:31 +08:00
|
|
|
&-content {
|
2017-10-18 17:42:00 +08:00
|
|
|
position: relative;
|
|
|
|
top: -(@font-size-base * @line-height-base - @font-size-base) + 1px;
|
2020-03-29 10:39:46 +08:00
|
|
|
margin: 0 0 0 @margin-lg + 2px;
|
2019-08-05 18:07:25 +08:00
|
|
|
word-break: break-word;
|
2015-09-02 12:12:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-last {
|
2019-01-05 17:07:06 +08:00
|
|
|
> .@{timeline-prefix-cls}-item-tail {
|
2016-01-14 16:43:48 +08:00
|
|
|
display: none;
|
2015-09-02 12:12:11 +08:00
|
|
|
}
|
2019-01-05 17:07:06 +08:00
|
|
|
> .@{timeline-prefix-cls}-item-content {
|
2015-09-07 11:31:37 +08:00
|
|
|
min-height: 48px;
|
2015-09-02 12:12:11 +08:00
|
|
|
}
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
|
|
|
}
|
2016-01-14 16:43:48 +08:00
|
|
|
|
2018-07-30 23:18:31 +08:00
|
|
|
&.@{timeline-prefix-cls}-alternate,
|
2020-02-26 17:21:44 +08:00
|
|
|
&.@{timeline-prefix-cls}-right,
|
|
|
|
&.@{timeline-prefix-cls}-label {
|
2018-07-28 00:25:23 +08:00
|
|
|
.@{timeline-prefix-cls}-item {
|
|
|
|
&-tail,
|
|
|
|
&-head,
|
|
|
|
&-head-custom {
|
|
|
|
left: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-head {
|
|
|
|
margin-left: -4px;
|
2020-01-02 19:10:16 +08:00
|
|
|
|
2018-07-28 00:25:23 +08:00
|
|
|
&-custom {
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-left {
|
|
|
|
.@{timeline-prefix-cls}-item-content {
|
2019-08-05 19:01:42 +08:00
|
|
|
left: calc(50% - 4px);
|
|
|
|
width: calc(50% - 14px);
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: left;
|
2018-07-28 00:25:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-right {
|
|
|
|
.@{timeline-prefix-cls}-item-content {
|
2019-08-12 17:43:48 +08:00
|
|
|
width: calc(50% - 12px);
|
2019-08-05 19:01:42 +08:00
|
|
|
margin: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
text-align: right;
|
2018-07-28 00:25:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-30 23:18:31 +08:00
|
|
|
&.@{timeline-prefix-cls}-right {
|
2018-07-28 00:25:23 +08:00
|
|
|
.@{timeline-prefix-cls}-item-right {
|
|
|
|
.@{timeline-prefix-cls}-item-tail,
|
|
|
|
.@{timeline-prefix-cls}-item-head,
|
|
|
|
.@{timeline-prefix-cls}-item-head-custom {
|
2019-09-16 20:38:20 +08:00
|
|
|
// stylelint-disable-next-line function-calc-no-invalid
|
2019-08-05 19:01:42 +08:00
|
|
|
left: calc(100% - 4px - @timeline-width);
|
2018-07-28 00:25:23 +08:00
|
|
|
}
|
|
|
|
.@{timeline-prefix-cls}-item-content {
|
2019-08-05 19:01:42 +08:00
|
|
|
width: calc(100% - 18px);
|
2018-07-28 00:25:23 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-14 16:43:48 +08:00
|
|
|
&&-pending &-item-last &-item-tail {
|
|
|
|
display: block;
|
2019-07-30 10:54:47 +08:00
|
|
|
height: calc(100% - 14px);
|
2019-02-15 10:48:07 +08:00
|
|
|
border-left: 2px dotted @timeline-color;
|
2016-01-14 16:43:48 +08:00
|
|
|
}
|
2018-04-20 11:23:37 +08:00
|
|
|
|
|
|
|
&&-reverse &-item-last &-item-tail {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&&-reverse &-item-pending {
|
|
|
|
.@{timeline-prefix-cls}-item-tail {
|
2019-07-30 10:54:47 +08:00
|
|
|
top: 15px;
|
2018-04-20 11:23:37 +08:00
|
|
|
display: block;
|
2019-07-30 10:54:47 +08:00
|
|
|
height: calc(100% - 15px);
|
2019-02-15 10:48:07 +08:00
|
|
|
border-left: 2px dotted @timeline-color;
|
2018-04-20 11:23:37 +08:00
|
|
|
}
|
|
|
|
.@{timeline-prefix-cls}-item-content {
|
|
|
|
min-height: 48px;
|
|
|
|
}
|
|
|
|
}
|
2020-02-26 17:21:44 +08:00
|
|
|
&.@{timeline-prefix-cls}-label {
|
|
|
|
.@{timeline-prefix-cls}-item-label {
|
|
|
|
position: absolute;
|
|
|
|
top: -(@font-size-base * @line-height-base - @font-size-base) + 1px;
|
|
|
|
width: calc(50% - 12px);
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
.@{timeline-prefix-cls}-item-right {
|
|
|
|
.@{timeline-prefix-cls}-item-label {
|
|
|
|
left: calc(50% + 14px);
|
|
|
|
width: calc(50% - 14px);
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-01 21:15:31 +08:00
|
|
|
}
|
2020-03-18 12:54:30 +08:00
|
|
|
|
2020-03-23 10:57:37 +08:00
|
|
|
@import './rtl';
|