UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

169 lines (154 loc) 3.21 kB
@import 'variables'; .@{stepsPrefixClass} { display: flex; width: 100%; font-size: 0; line-height: 1.5; &, * { box-sizing: border-box; } } .@{stepsPrefixClass}-item { position: relative; display: inline-block; flex: 1; overflow: hidden; vertical-align: top; &:last-child { flex: none; } &:last-child &-tail, &:last-child &-title::after { display: none; } &-icon, &-content { display: inline-block; vertical-align: top; } &-icon { width: 26px; height: 26px; margin-right: 8px; font-size: 14px; line-height: 26px; text-align: center; border: 1px solid @wait-icon-color; border-radius: 26px; transition: background-color 0.3s, border-color 0.3s; > .@{stepsPrefixClass}-icon { position: relative; top: -1px; color: @primary-color; line-height: 1; &.rcicon { position: relative; top: -2px; font-size: 12px; } } } &-tail { position: absolute; top: 12px; left: 0; width: 100%; padding: 0 10px; &::after { display: inline-block; width: 100%; height: 1px; background: @wait-tail-color; border-radius: 1px; transition: background 0.3s; content: ''; } } &-content { margin-top: 3px; } &-title { position: relative; display: inline-block; margin-bottom: 4px; padding-right: 10px; color: #666; font-weight: bold; font-size: 14px; &::after { position: absolute; top: 0.55em; left: 100%; display: block; width: 1000px; height: 1px; background: @wait-tail-color; content: ''; } } &-description { color: #999; font-size: 12px; } .step-item-status(wait); .step-item-status(process); &-process &-icon { background: @process-icon-color; > .@{stepsPrefixClass}-icon { color: #fff; } } .step-item-status(finish); .step-item-status(error); &.@{stepsPrefixClass}-next-error .@{stepsPrefixClass}-item-title:after { background: @error-icon-color; } } .@{stepsPrefixClass}-horizontal:not(.@{stepsPrefixClass}-label-vertical) { .@{stepsPrefixClass}-item { margin-right: 10px; &:last-child { margin-right: 0; } &-tail { display: none; } &-description { max-width: @stepDescriptionMaxWidth; } } } .step-item-status(@status) { @icon-color: '@{status}-icon-color'; @title-color: '@{status}-title-color'; @description-color: '@{status}-description-color'; @tail-color: '@{status}-tail-color'; &-@{status} &-icon { background-color: #fff; border-color: @@icon-color; > .@{stepsPrefixClass}-icon { color: @@icon-color; .@{stepsPrefixClass}-icon-dot { background: @@icon-color; } } } &-@{status} &-title { color: @@title-color; &::after { background-color: @@tail-color; } } &-@{status} &-description { color: @@description-color; } &-@{status} &-tail:after { background-color: @@tail-color; } } @import 'custom-icon'; @import 'small'; @import 'vertical'; @import 'label-placement'; @import 'progress-dot';