2020-03-17 15:14:29 +08:00
|
|
|
.@{steps-prefix-cls} {
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-icon {
|
2020-04-24 17:55:44 +08:00
|
|
|
.@{steps-prefix-cls}.@{steps-prefix-cls}-rtl & {
|
2020-03-17 15:14:29 +08:00
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-tail {
|
|
|
|
.@{steps-prefix-cls}-rtl & {
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
.@{steps-prefix-cls}-rtl & {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
.@{steps-prefix-cls}-rtl & {
|
|
|
|
right: 100%;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical) {
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-08-09 20:28:08 +08:00
|
|
|
padding-right: 16px;
|
|
|
|
padding-left: 0;
|
2020-03-17 15:14:29 +08:00
|
|
|
}
|
|
|
|
|
2020-08-09 20:28:08 +08:00
|
|
|
&:first-child {
|
2020-03-17 15:14:29 +08:00
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-08-09 20:28:08 +08:00
|
|
|
padding-right: 0;
|
2020-03-17 15:14:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&:last-child .@{steps-prefix-cls}-item-title {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-19 12:13:24 +08:00
|
|
|
|
|
|
|
// custom-icon
|
|
|
|
.@{steps-prefix-cls}-item-custom {
|
|
|
|
.@{steps-prefix-cls}-item-icon {
|
|
|
|
> .@{steps-prefix-cls}-icon {
|
|
|
|
.@{steps-prefix-cls}-rtl & {
|
|
|
|
right: 0.5px;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// nav
|
|
|
|
.@{steps-prefix-cls}-navigation {
|
|
|
|
&.@{steps-prefix-cls}-small {
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-container {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
margin-right: -12px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-container {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
margin-right: -16px;
|
|
|
|
margin-left: 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
.@{steps-prefix-cls}-item-title {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: 100%;
|
|
|
|
left: auto;
|
|
|
|
margin-right: -2px;
|
|
|
|
margin-left: 0;
|
|
|
|
transform: rotate(225deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// small
|
|
|
|
.@{steps-prefix-cls}-small {
|
|
|
|
&.@{steps-prefix-cls}-horizontal:not(.@{steps-prefix-cls}-label-vertical)
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-08-09 20:28:08 +08:00
|
|
|
padding-right: 12px;
|
|
|
|
padding-left: 0;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
|
2020-08-09 20:28:08 +08:00
|
|
|
&:first-child {
|
2020-03-19 12:13:24 +08:00
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-08-09 20:28:08 +08:00
|
|
|
padding-right: 0;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-item-title {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
padding-right: 0;
|
2020-04-24 17:55:44 +08:00
|
|
|
padding-left: 12px;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// vertical
|
2020-11-25 14:55:56 +08:00
|
|
|
.@{steps-prefix-cls}-vertical {
|
|
|
|
> .@{steps-prefix-cls}-item {
|
|
|
|
.@{steps-prefix-cls}-item-icon {
|
2020-03-19 12:13:24 +08:00
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
float: right;
|
|
|
|
margin-right: 0;
|
2020-05-05 13:55:05 +08:00
|
|
|
margin-left: @steps-vertical-icon-width;
|
2020-03-19 12:13:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .@{steps-prefix-cls}-item
|
|
|
|
> .@{steps-prefix-cls}-item-container
|
|
|
|
> .@{steps-prefix-cls}-item-tail {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-05-05 13:55:05 +08:00
|
|
|
right: @steps-vertical-tail-width;
|
2020-03-19 12:13:24 +08:00
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item-container {
|
|
|
|
.@{steps-prefix-cls}-item-tail {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-05-05 13:55:05 +08:00
|
|
|
right: @steps-vertical-tail-width-sm;
|
2020-03-19 12:13:24 +08:00
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-23 17:50:39 +08:00
|
|
|
|
|
|
|
// label
|
|
|
|
.@{steps-prefix-cls}-label-vertical {
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-title {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-13 13:53:42 +08:00
|
|
|
|
|
|
|
// progress-dot
|
|
|
|
.@{steps-prefix-cls}-dot,
|
|
|
|
.@{steps-prefix-cls}-dot.@{steps-prefix-cls}-small {
|
|
|
|
.@{steps-prefix-cls}-item {
|
|
|
|
&-tail {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
2020-12-25 14:31:44 +08:00
|
|
|
margin: 0 (@steps-description-max-width / 2) 0 0;
|
2020-04-13 13:53:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
margin-right: 12px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:first-child .@{steps-prefix-cls}-icon-dot {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: 2px;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2020-04-13 13:53:42 +08:00
|
|
|
&-icon {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
margin-right: 67px;
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-icon-dot {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
float: right;
|
|
|
|
}
|
2021-10-22 13:35:36 +08:00
|
|
|
|
2020-04-13 13:53:42 +08:00
|
|
|
/* expand hover area */
|
|
|
|
&::after {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: -26px;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{steps-prefix-cls}-vertical.@{steps-prefix-cls}-dot {
|
|
|
|
.@{steps-prefix-cls}-item-icon {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// https://github.com/ant-design/ant-design/issues/18354
|
|
|
|
.@{steps-prefix-cls}-item > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: -9px;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{steps-prefix-cls}-item-process .@{steps-prefix-cls}-icon-dot {
|
|
|
|
.@{steps-prefix-cls}-rtl& {
|
|
|
|
right: -2px;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-05 22:46:31 +08:00
|
|
|
|
|
|
|
// RTL Steps with progress
|
|
|
|
.@{steps-prefix-cls}-rtl.@{steps-prefix-cls}-with-progress.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
|
|
|
|
.@{steps-prefix-cls}-item:first-child.@{steps-prefix-cls}-item-active {
|
|
|
|
padding-right: 4px;
|
|
|
|
}
|
|
|
|
}
|