UNPKG

ygd

Version:

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

102 lines (99 loc) 2.38 kB
.@{steps-prefix-cls}-dot { .@{steps-prefix-cls}-item { &-title { line-height: @line-height-base; } &-tail { top: 2px; width: 100%; margin: 0 0 0 @steps-desciption-max-width / 2; padding: 0; &::before { margin-left: 9px; display: inline-block; width: calc(50% - 5px); height: 2px; border-radius: 2px; margin-top: 4px; -webkit-transition: background 0.3s; transition: background 0.3s; content: ''; } &::after { width: calc(50% - 6px); height: 2px; margin-left: -1px; display: inline-block; border-radius: 2px; margin-top: -2px; content: ''; } } &:first-child .@{steps-prefix-cls}-icon-dot { left: 2px; } &-icon { width: @steps-dot-size; height: @steps-dot-size; margin-left: 67px; padding-right: 0; line-height: @steps-dot-size; background: transparent; border: 0; .@{steps-prefix-cls}-icon-dot { position: relative; float: left; width: 100%; height: 100%; border-radius: 100px; transition: all 0.3s; /* expand hover area */ &::after { position: absolute; top: -12px; left: -26px; width: 60px; height: 32px; background: fade(@black, 0.1%); content: ''; } } } &-content { width: @steps-desciption-max-width; } &-process .@{steps-prefix-cls}-item-icon { width: @steps-current-dot-size; height: @steps-current-dot-size; line-height: @steps-current-dot-size; .@{steps-prefix-cls}-icon-dot { top: -1px; } } } } .@{steps-prefix-cls}-vertical.@{steps-prefix-cls}-dot { .@{steps-prefix-cls}-item-icon { margin-top: 8px; margin-left: 0; } .@{steps-prefix-cls}-item-tail { top: 2px; left: -3px; margin: 0; padding: 20px 0 0px; height: ~'calc(100% - 14px)'; } .@{steps-prefix-cls}-item:first-child .@{steps-prefix-cls}-icon-dot { left: 0; } .@{steps-prefix-cls}-item-process .@{steps-prefix-cls}-icon-dot { left: 0; } .@{steps-prefix-cls}-item-tail::before { margin-top: 0px; } .@{steps-prefix-cls}-item-tail::after{ margin-left: 9px; } }