UNPKG

hy-checkbox

Version:

checkbox & radio ui components for react

120 lines (117 loc) 2.75 kB
/* * @Author: SiMeiyu * @Date: 2017-07-04 09:53:43 */ @import "../../app/variables.less"; @step-nav-next-bg: fade(@black, 20%); @step-nav-next-text: @text-caption; @step-nav-active: @primary-active; @step-nav-prev-text: @text-title; @step-nav-prev-bg: @primary-loading; @step-progress-bg: fade(@black, 30%); @step-progress-bar: @primary; .@{ult-prefix}-step { display: flex; flex-direction: column; &-nav { display: flex; justify-content: space-around; &-item { flex: 1 1 auto; display: flex; padding: 0 @base-space; cursor: default; color: @step-nav-prev-text; .iconfont { display: inline-block; width: @base-space * 4; height: @base-space * 4; border-radius: @base-space * 2; background-color: @step-nav-prev-bg; color: @white; text-align: center; &::before { line-height: @base-space * 4; } } &-active { .iconfont { background-color: @step-nav-active; } & ~ li { color: @step-nav-next-text; .iconfont { background-color: @step-nav-next-bg; } } } &-title { font-size: @font-size-base; h5 { font-weight: bold; font-size: 14px; line-height: 1.5; padding: @base-space / 2 @base-space; p { font-weight: normal; font-size: @font-size-base; } } } &:last-child { flex: 0 0 auto; } &:not(:last-child) { &::after { content: ''; flex: 1 1 auto; height: 1px; background-color: @step-nav-next-bg; margin-top: @base-space * 2; } } } } &-head-progress { .@{ult-prefix}-step-nav{ align-items: center; } .@{ult-prefix}-step-nav-item { text-align: center; display: block; .iconfont { border-radius: @border-radius * 2; } .@{ult-prefix}-step-nav-item-title { margin-top: @base-space; } &:last-child { flex: 1 1 auto; } &::after { display: none; } } } &-progress { width: 100%; height: 2px; background-color: @step-progress-bg; position: relative; margin-top: @base-space * 2; &-bar { position: absolute; top: 0; background-color: @step-progress-bar; height: 2px; transition: @transi; } } &-body { padding: @base-space * 2; flex-grow: 1; } &-foot { text-align: right; } }