123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- .@{steps-prefix-cls} {
- &-rtl {
- direction: rtl;
- }
- }
- .@{steps-prefix-cls}-item {
- &-icon {
- .@{steps-prefix-cls}.@{steps-prefix-cls}-rtl & {
- 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;
- }
- .@{steps-prefix-cls}-item-subtitle {
- .@{steps-prefix-cls}-rtl & {
- float: left;
- margin-right: 8px;
- margin-left: 0;
- }
- }
- &::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& {
- padding-right: 16px;
- padding-left: 0;
- }
- &:first-child {
- .@{steps-prefix-cls}-rtl& {
- padding-right: 0;
- }
- }
- &:last-child .@{steps-prefix-cls}-item-title {
- .@{steps-prefix-cls}-rtl& {
- padding-left: 0;
- }
- }
- }
- }
- // 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& {
- padding-right: 12px;
- padding-left: 0;
- }
- &:first-child {
- .@{steps-prefix-cls}-rtl& {
- padding-right: 0;
- }
- }
- }
- .@{steps-prefix-cls}-item-title {
- .@{steps-prefix-cls}-rtl& {
- padding-right: 0;
- padding-left: 12px;
- }
- }
- }
- // vertical
- .@{steps-prefix-cls}-vertical {
- > .@{steps-prefix-cls}-item {
- .@{steps-prefix-cls}-item-icon {
- .@{steps-prefix-cls}-rtl& {
- float: right;
- margin-right: 0;
- margin-left: @steps-vertical-icon-width;
- }
- }
- }
- > .@{steps-prefix-cls}-item
- > .@{steps-prefix-cls}-item-container
- > .@{steps-prefix-cls}-item-tail {
- .@{steps-prefix-cls}-rtl& {
- right: @steps-vertical-tail-width;
- left: auto;
- }
- }
- &.@{steps-prefix-cls}-small .@{steps-prefix-cls}-item-container {
- .@{steps-prefix-cls}-item-tail {
- .@{steps-prefix-cls}-rtl& {
- right: @steps-vertical-tail-width-sm;
- left: auto;
- }
- }
- }
- }
- // label
- .@{steps-prefix-cls}-label-vertical {
- .@{steps-prefix-cls}-item {
- &-title {
- .@{steps-prefix-cls}-rtl& {
- padding-left: 0;
- }
- }
- }
- }
- // progress-dot
- .@{steps-prefix-cls}-dot,
- .@{steps-prefix-cls}-dot.@{steps-prefix-cls}-small {
- .@{steps-prefix-cls}-item {
- &-tail {
- .@{steps-prefix-cls}-rtl& {
- margin: 0 (@steps-description-max-width / 2) 0 0;
- }
- &::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;
- }
- }
- &-icon {
- .@{steps-prefix-cls}-rtl& {
- margin-right: 67px;
- margin-left: 0;
- }
- .@{steps-prefix-cls}-icon-dot {
- .@{steps-prefix-cls}-rtl& {
- float: right;
- }
- /* 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;
- }
- }
- }
- // RTL Steps with progress
- .@{steps-prefix-cls}-rtl.@{steps-prefix-cls}-with-progress {
- &.@{steps-prefix-cls}-vertical > .@{steps-prefix-cls}-item {
- padding-right: 4px;
- > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
- right: @steps-vertical-tail-width + 3;
- }
- }
- &.@{steps-prefix-cls}-small.@{steps-prefix-cls}-vertical > .@{steps-prefix-cls}-item {
- > .@{steps-prefix-cls}-item-container > .@{steps-prefix-cls}-item-tail {
- right: @steps-vertical-tail-width-sm + 3;
- }
- }
- &.@{steps-prefix-cls}-horizontal.@{steps-prefix-cls}-label-horizontal {
- .@{steps-prefix-cls}-item:first-child {
- padding-right: 4px;
- padding-left: 0;
- &.@{steps-prefix-cls}-item-active {
- padding-right: 4px;
- }
- }
- }
- }
|