123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- @import (reference) './variable.less';
- @stepsPrefix: ant-steps;
- .@{stepsPrefix} {
- display: flex;
- overflow: hidden;
- &-horizontal {
- flex-direction: row;
- justify-content: space-around;
- }
- &-vertical {
- display: block;
- padding: 64 * @rpx;
- }
- &-item:last-child &-item-indicator-vertical::after {
- display: none;
- }
- }
- .ant-steps-item-vertical:last-child {
- padding-bottom: 0;
- }
- @stepItemPrefix: ant-steps-item;
- .@{stepItemPrefix} {
- position: relative;
- z-index: 5;
- display: flex;
- margin: 16 * @rpx 0 16 * @rpx 0;
- &-vertical {
- padding-bottom: 48 * @rpx;
- margin: 0;
- .ant-steps-item-title {
- margin-bottom: 8 * @rpx;
- font-size: 26 * @rpx;
- color: @COLOR_TEXT_PRIMARY;
- }
- .ant-steps-item-desc {
- font-size: 24 * @rpx;
- color: @COLOR_TEXT_ASSIST;
- }
- &::after {
- // line
- position: absolute;
- height: 100%;
- width: 2 * @rpx;
- content: '';
- top: 27 * @rpx;
- z-index: -1;
- transform: translateX(-50%);
- }
- .ant-steps-item-text {
- display: flex;
- flex-direction: column;
- flex: 1;
- }
- }
- &-horizontal {
- flex-direction: column;
- margin-top: 16 * @rpx;
- padding: 0 16 * @rpx;
- &::after {
- position: absolute;
- width: 100%;
- height: 2 * @rpx;
- content: '';
- top: 34 * @rpx;
- left: 0;
- transform: translate(50%, -50%);
- z-index: -1;
- }
- .@{stepItemPrefix}-title,
- .@{stepItemPrefix}-desc {
- text-align: center;
- }
- .@{stepItemPrefix}-desc {
- margin-bottom: 0;
- }
- }
- &:last-child {
- &::after {
- display: none;
- }
- }
- &-indicator {
- &-vertical {
- transform: translateX(-50%);
- }
- &-horizontal {
- display: flex;
- justify-content: center;
- margin: 16 * @rpx 0 16 * @rpx 0;
- }
- &-icon {
- width: 18 * @rpx;
- height: 18 * @rpx;
- border-radius: 50%;
- }
- }
- .ant-steps-item-active-icon-image {
- transform: translateX(0);
- }
- &-horizontal {
- flex: 1;
- display: flex;
- .ant-steps-item-title {
- margin-bottom: 4 * @rpx;
- font-size: 26 * @rpx;
- &:empty {
- display: none;
- }
- }
- .ant-steps-item-desc {
- margin: 4 * @rpx 0 4 * @rpx 0;
- color: @COLOR_TEXT_ASSIST;
- font-size: 24 * @rpx;
- &:empty {
- display: none;
- }
- }
- }
- &-active {
- &::after {
- background-color: @COLOR_GREY_2;
- }
- &-icon {
- display: flex;
- justify-content: center;
- align-items: center;
- background: transparent;
- &,
- & .a-image {
- height: 36 * @rpx;
- width: 36 * @rpx;
- }
- color: @COLOR_BRAND1;
- &-default {
- height: 20 * @rpx;
- width: 20 * @rpx;
- border-radius: 50%;
- background-color: @COLOR_BRAND1;
- }
- }
- & .@{stepItemPrefix}-title {
- color: @COLOR_BRAND1;
- }
- }
- &-non-active {
- &::after {
- background-color: @COLOR_GREY_2;
- }
- &-icon {
- display: flex;
- justify-content: center;
- align-items: center;
- background: transparent;
- &,
- & .a-image {
- height: 36 * @rpx;
- width: 36 * @rpx;
- }
- color: @COLOR_GREY_2;
- &-default {
- height: 16 * @rpx;
- width: 16 * @rpx;
- border-radius: 50%;
- background-color: @COLOR_GREY_2;
- }
- }
- & .@{stepItemPrefix}-title {
- color: @COLOR_TEXT_ASSIST;
- }
- }
- &-finish {
- &::after {
- background-color: @COLOR_BRAND1;
- }
- &-icon {
- display: flex;
- justify-content: center;
- align-items: center;
- background: transparent;
- &,
- & .a-image {
- height: 36 * @rpx;
- width: 36 * @rpx;
- }
- color: @COLOR_BRAND1;
- &-default {
- height: 16 * @rpx;
- width: 16 * @rpx;
- border-radius: 50%;
- background-color: @COLOR_BRAND1;
- }
- }
- & .@{stepItemPrefix}-title {
- color: @COLOR_TEXT_PRIMARY;
- }
- }
- &-error-icon {
- display: flex;
- justify-content: center;
- align-items: center;
- background: transparent;
- &,
- & .a-image {
- height: 36 * @rpx;
- width: 36 * @rpx;
- }
- color: @COLOR_RED;
- &-default {
- height: 20 * @rpx;
- width: 20 * @rpx;
- border-radius: 50%;
- background-color: @COLOR_RED;
- }
- }
- .ant-steps-item-title-error {
- color: @COLOR_RED;
- }
- }
|