UNPKG

choerodon-ui

Version:

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

704 lines (703 loc) 20.1 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ .c7n-steps { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; width: 100%; font-size: 0; } .c7n-steps-header { position: absolute; top: -0.3rem; left: 0; padding: 0.05rem; color: #fff; font-size: 0.13rem; background: #3f51b5; border-top-left-radius: 0.1rem; border-bottom-right-radius: 0.1rem; } .c7n-steps-group { position: relative; margin-top: 0.3rem; padding: 0.3rem 0.2rem; } .c7n-steps-dropdown { display: inline-block; } .c7n-steps-dropdown-menu { max-height: 2rem; overflow-y: auto; } .c7n-steps-dropdown-menu .c7n-steps-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .c7n-steps-dropdown-title { position: relative; display: inline-block; padding-right: 0.16rem; color: #000000; font-size: 0.16rem; line-height: 0.28rem; } .c7n-steps-dropdown-wait .c7n-steps-dropdown-icon { color: #fff; background-color: rgba(0, 0, 0, 0.36); border-color: rgba(0, 0, 0, 0.36); } .c7n-steps-dropdown-wait .c7n-steps-dropdown-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: rgba(0, 0, 0, 0.36); } .c7n-steps-dropdown-wait:hover .c7n-steps-dropdown-icon { color: #fff; border-color: rgba(0, 0, 0, 0.36); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-dropdown-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-content > .c7n-steps-dropdown-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-dropdown-wait:hover > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-dropdown-wait:hover > .c7n-steps-dropdown-content > .c7n-steps-dropdown-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-dropdown-wait > .c7n-steps-dropdown-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-dropdown-process .c7n-steps-dropdown-icon { color: #fff; background-color: #3f51b5; border-color: #3f51b5; } .c7n-steps-dropdown-process .c7n-steps-dropdown-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: #3f51b5; } .c7n-steps-dropdown-process:hover .c7n-steps-dropdown-icon { color: #fff; border-color: #3f51b5; } .c7n-steps-dropdown-process > .c7n-steps-dropdown-dropdown-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-dropdown-process > .c7n-steps-dropdown-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-dropdown-process > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-dropdown-process > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-dropdown-process > .c7n-steps-dropdown-content > .c7n-steps-dropdown-description { color: #000000; } .c7n-steps-dropdown-process:hover > .c7n-steps-dropdown-content > .c7n-steps-dropdown-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-dropdown-process:hover > .c7n-steps-dropdown-content > .c7n-steps-dropdown-description { color: #000000; } .c7n-steps-dropdown-process > .c7n-steps-dropdown-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-horizontal { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; width: 100%; } .c7n-steps-item { position: relative; display: inline-block; -webkit-box-flex: 1; -ms-flex: 1; flex: 1; overflow: hidden; vertical-align: top; cursor: unset; } .c7n-steps-item:last-child { -webkit-box-flex: 0; -ms-flex: none; flex: none; } .c7n-steps-item:last-child .c7n-steps-item-tail, .c7n-steps-item:last-child .c7n-steps-item-title::after { display: none; } .c7n-steps-item-icon, .c7n-steps-item-content { display: inline-block; vertical-align: top; } .c7n-steps-item-icon { width: 0.28rem; height: 0.28rem; margin-right: 0.08rem; color: #fff; font-size: 0.16rem; font-family: 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 0.28rem; text-align: center; border: 0rem solid #e0e0e0; border-radius: 0.28rem; -webkit-transition: background-color 0.3s, border-color 0.3s; transition: background-color 0.3s, border-color 0.3s; } .c7n-steps-item-icon > .c7n-steps-icon { position: relative; top: -0.01rem; line-height: 1; } .c7n-steps-item-icon span.icon { width: calc(0.28rem - 2 * 0rem); height: calc(0.28rem - 2 * 0rem); margin-right: 0; line-height: calc(0.28rem - 2 * 0rem); vertical-align: initial; } .c7n-steps-item-tail { position: absolute; top: 0.12rem; left: 0; width: 100%; padding: 0 0.1rem; } .c7n-steps-item-tail::after { display: inline-block; width: 100%; height: 0.01rem; background: rgba(0, 0, 0, 0.26); border-radius: 0.01rem; -webkit-transition: background 0.3s; transition: background 0.3s; content: ''; } .c7n-steps-item-title { position: relative; display: inline-block; padding-right: 0.16rem; color: #000000; font-size: 0.16rem; line-height: 0.28rem; } .c7n-steps-item-title::after { position: absolute; top: calc(0.28rem / 2); left: 100%; display: block; width: 99.99rem; height: 0.01rem; background: rgba(0, 0, 0, 0.26); content: ''; } .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); font-size: 0.13rem; } .c7n-steps-item-wait .c7n-steps-item-icon { color: #fff; background-color: rgba(0, 0, 0, 0.36); border-color: rgba(0, 0, 0, 0.36); } .c7n-steps-item-wait .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: rgba(0, 0, 0, 0.36); } .c7n-steps-item-wait:hover .c7n-steps-item-icon { color: #fff; border-color: rgba(0, 0, 0, 0.36); } .c7n-steps-item-wait > .c7n-steps-item-dropdown-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-wait > .c7n-steps-item-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-wait > .c7n-steps-item-content > .c7n-steps-item-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-wait > .c7n-steps-item-content > .c7n-steps-item-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-wait > .c7n-steps-item-content > .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-wait:hover > .c7n-steps-item-content > .c7n-steps-item-title { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-wait:hover > .c7n-steps-item-content > .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-wait > .c7n-steps-item-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-process .c7n-steps-item-icon { color: #fff; background-color: #3f51b5; border-color: #3f51b5; } .c7n-steps-item-process .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: #3f51b5; } .c7n-steps-item-process:hover .c7n-steps-item-icon { color: #fff; border-color: #3f51b5; } .c7n-steps-item-process > .c7n-steps-item-dropdown-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-item-process > .c7n-steps-item-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-process > .c7n-steps-item-content > .c7n-steps-item-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-item-process > .c7n-steps-item-content > .c7n-steps-item-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-process > .c7n-steps-item-content > .c7n-steps-item-description { color: #000000; } .c7n-steps-item-process:hover > .c7n-steps-item-content > .c7n-steps-item-title { color: rgba(0, 0, 0, 0.85); } .c7n-steps-item-process:hover > .c7n-steps-item-content > .c7n-steps-item-description { color: #000000; } .c7n-steps-item-process > .c7n-steps-item-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-process .c7n-steps-item-title { font-weight: 500; } .c7n-steps-item-dropdown-icon { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; width: 0.3rem; height: 0.3rem; cursor: pointer; } .c7n-steps-item-dropdown-icon:hover { -webkit-box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12); box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12); } .c7n-steps-item-dropdown-icon .c7n-steps-icon { font-size: 0.16rem; } .c7n-steps-item-finish .c7n-steps-item-icon { color: #fff; background-color: #3f51b5; border-color: #3f51b5; } .c7n-steps-item-finish .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: #3f51b5; } .c7n-steps-item-finish:hover .c7n-steps-item-icon { color: #fff; border-color: #3f51b5; } .c7n-steps-item-finish > .c7n-steps-item-dropdown-title { color: #000000; } .c7n-steps-item-finish > .c7n-steps-item-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-finish > .c7n-steps-item-content > .c7n-steps-item-title { color: #000000; } .c7n-steps-item-finish > .c7n-steps-item-content > .c7n-steps-item-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-finish > .c7n-steps-item-content > .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-finish:hover > .c7n-steps-item-content > .c7n-steps-item-title { color: #000000; } .c7n-steps-item-finish:hover > .c7n-steps-item-content > .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); } .c7n-steps-item-finish > .c7n-steps-item-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-error .c7n-steps-item-icon { color: #fff; background-color: #d50000; border-color: #d50000; } .c7n-steps-item-error .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot { background-color: #d50000; } .c7n-steps-item-error:hover .c7n-steps-item-icon { color: #fff; border-color: #d50000; } .c7n-steps-item-error > .c7n-steps-item-dropdown-title { color: #d50000; } .c7n-steps-item-error > .c7n-steps-item-dropdown-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-error > .c7n-steps-item-content > .c7n-steps-item-title { color: #d50000; } .c7n-steps-item-error > .c7n-steps-item-content > .c7n-steps-item-title::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-item-error > .c7n-steps-item-content > .c7n-steps-item-description { color: #d50000; } .c7n-steps-item-error:hover > .c7n-steps-item-content > .c7n-steps-item-title { color: #d50000; } .c7n-steps-item-error:hover > .c7n-steps-item-content > .c7n-steps-item-description { color: #d50000; } .c7n-steps-item-error > .c7n-steps-item-tail::after { background-color: rgba(0, 0, 0, 0.26); } .c7n-steps-navigation { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; width: auto; } .c7n-steps-navigation-container { max-width: calc(100% - 0.3rem); padding: 0.07rem 0.24rem; overflow: scroll; white-space: nowrap; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; } .c7n-steps-navigation-container::-webkit-scrollbar { display: none; } .c7n-steps-navigation .c7n-steps-item-title { display: -webkit-box; display: -ms-flexbox; display: flex; padding-right: 0; } .c7n-steps-navigation .c7n-steps-item-title-icon { width: 0.14rem; height: 0.14rem; margin: 0 0 0 0.16rem; color: rgba(0, 0, 0, 0.26); line-height: 1.5; } .c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item { margin-right: 0.16rem; white-space: nowrap; } .c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item:last-child { margin-right: 0; } .c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item:last-child .c7n-steps-item-title { padding-right: 0; } .c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item-tail { display: none; } .c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item-description { max-width: 1.4rem; } .c7n-steps-item-custom:hover .c7n-steps-item-icon, .c7n-steps-item-custom .c7n-steps-item-icon { width: auto; height: auto; color: inherit; background: none; border: 0; } .c7n-steps-item-custom.c7n-steps-item-process:hover .c7n-steps-item-icon, .c7n-steps-item-custom.c7n-steps-item-process .c7n-steps-item-icon { color: #3f51b5; } .c7n-steps-small.c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item { margin-right: 0.12rem; } .c7n-steps-small.c7n-steps-horizontal:not(.c7n-steps-label-vertical) .c7n-steps-item:last-child { margin-right: 0; } .c7n-steps-small .c7n-steps-item-icon { width: 0.24rem; height: 0.24rem; font-size: 0.12rem; line-height: 0.24rem; text-align: center; border-radius: 0.24rem; } .c7n-steps-small .c7n-steps-item-icon span.icon { width: 0.24rem; height: 0.24rem; font-size: 0.16rem; line-height: 0.24rem; vertical-align: initial; } .c7n-steps-small .c7n-steps-item-title { padding-right: 0.12rem; font-size: 0.13rem; line-height: 0.24rem; } .c7n-steps-small .c7n-steps-item-title::after { top: calc(0.24rem / 2); } .c7n-steps-small .c7n-steps-item-description { color: rgba(0, 0, 0, 0.45); font-size: 0.13rem; } .c7n-steps-small .c7n-steps-item-tail { top: 0.08rem; padding: 0 0.08rem; } .c7n-steps-small .c7n-steps-item-custom .c7n-steps-item-icon { width: inherit; height: inherit; line-height: inherit; background: none; border: 0; border-radius: 0; } .c7n-steps-small .c7n-steps-item-custom .c7n-steps-item-icon > .c7n-steps-icon { font-size: 0.24rem; line-height: 0.24rem; -webkit-transform: none; -ms-transform: none; transform: none; } .c7n-steps-vertical { display: block; } .c7n-steps-vertical .c7n-steps-item { display: block; overflow: visible; } .c7n-steps-vertical .c7n-steps-item-icon { float: left; margin-right: 0.16rem; } .c7n-steps-vertical .c7n-steps-item-content { display: block; min-height: 0.48rem; overflow: hidden; } .c7n-steps-vertical .c7n-steps-item-title { line-height: 0.28rem; } .c7n-steps-vertical .c7n-steps-item-description { padding-bottom: 0.12rem; } .c7n-steps-vertical > .c7n-steps-item > .c7n-steps-item-tail { position: absolute; top: 0; left: 0.16rem; width: 0.01rem; height: 100%; padding: calc(0.28rem + 0.06rem) 0 0.06rem; } .c7n-steps-vertical > .c7n-steps-item > .c7n-steps-item-tail::after { width: 0.01rem; height: 100%; } .c7n-steps-vertical > .c7n-steps-item:not(:last-child) > .c7n-steps-item-tail { display: block; } .c7n-steps-vertical > .c7n-steps-item > .c7n-steps-item-content > .c7n-steps-item-title::after { display: none; } .c7n-steps-vertical.c7n-steps-small .c7n-steps-item-tail { position: absolute; top: 0; left: 0.12rem; padding: calc(0.24rem + 0.06rem) 0 0.06rem; } .c7n-steps-vertical.c7n-steps-small .c7n-steps-item-title { line-height: 0.24rem; } @media (max-width: 480px) { .c7n-steps-horizontal.c7n-steps-label-horizontal { display: block; } .c7n-steps-horizontal.c7n-steps-label-horizontal .c7n-steps-item { display: block; overflow: visible; } .c7n-steps-horizontal.c7n-steps-label-horizontal .c7n-steps-item-icon { float: left; margin-right: 0.16rem; } .c7n-steps-horizontal.c7n-steps-label-horizontal .c7n-steps-item-content { display: block; min-height: 0.48rem; overflow: hidden; } .c7n-steps-horizontal.c7n-steps-label-horizontal .c7n-steps-item-title { line-height: 0.28rem; } .c7n-steps-horizontal.c7n-steps-label-horizontal .c7n-steps-item-description { padding-bottom: 0.12rem; } .c7n-steps-horizontal.c7n-steps-label-horizontal > .c7n-steps-item > .c7n-steps-item-tail { position: absolute; top: 0; left: 0.16rem; width: 0.01rem; height: 100%; padding: calc(0.28rem + 0.06rem) 0 0.06rem; } .c7n-steps-horizontal.c7n-steps-label-horizontal > .c7n-steps-item > .c7n-steps-item-tail::after { width: 0.01rem; height: 100%; } .c7n-steps-horizontal.c7n-steps-label-horizontal > .c7n-steps-item:not(:last-child) > .c7n-steps-item-tail { display: block; } .c7n-steps-horizontal.c7n-steps-label-horizontal > .c7n-steps-item > .c7n-steps-item-content > .c7n-steps-item-title::after { display: none; } .c7n-steps-horizontal.c7n-steps-label-horizontal.c7n-steps-small .c7n-steps-item-tail { position: absolute; top: 0; left: 0.12rem; padding: calc(0.24rem + 0.06rem) 0 0.06rem; } .c7n-steps-horizontal.c7n-steps-label-horizontal.c7n-steps-small .c7n-steps-item-title { line-height: 0.24rem; } } .c7n-steps-label-vertical .c7n-steps-item { overflow: visible; } .c7n-steps-label-vertical .c7n-steps-item-tail { margin-left: 0.48rem; padding: 0 0.24rem; } .c7n-steps-label-vertical .c7n-steps-item-content { display: block; width: 1.4rem; margin-top: 0.08rem; text-align: center; } .c7n-steps-label-vertical .c7n-steps-item-icon { display: inline-block; margin-left: 0.36rem; } .c7n-steps-label-vertical .c7n-steps-item-title { padding-right: 0; } .c7n-steps-label-vertical .c7n-steps-item-title::after { display: none; } .c7n-steps-label-vertical .c7n-steps-item-description { text-align: left; } .c7n-steps-dot .c7n-steps-item-title { line-height: 1.5; } .c7n-steps-dot .c7n-steps-item-tail { top: 0.02rem; width: 100%; margin: 0 0 0 calc(1.4rem / 2); padding: 0; } .c7n-steps-dot .c7n-steps-item-tail::after { width: calc(100% - .2rem); height: 0.03rem; margin-left: 0.12rem; } .c7n-steps-dot .c7n-steps-item:first-child .c7n-steps-icon-dot { left: 0.02rem; } .c7n-steps-dot .c7n-steps-item-icon { width: 0.08rem; height: 0.08rem; margin-left: 0.67rem; padding-right: 0; line-height: 0.08rem; background: transparent; border: 0; } .c7n-steps-dot .c7n-steps-item-icon .c7n-steps-icon-dot { position: relative; float: left; width: 100%; height: 100%; border-radius: 1rem; -webkit-transition: all 0.3s; transition: all 0.3s; /* expand hover area */ } .c7n-steps-dot .c7n-steps-item-icon .c7n-steps-icon-dot::after { position: absolute; top: -0.12rem; left: -0.26rem; width: 0.6rem; height: 0.32rem; background: rgba(0, 0, 0, 0.001); content: ''; } .c7n-steps-dot .c7n-steps-item-process .c7n-steps-item-icon { width: 0.1rem; height: 0.1rem; line-height: 0.1rem; } .c7n-steps-dot .c7n-steps-item-process .c7n-steps-item-icon .c7n-steps-icon-dot { top: -0.01rem; } .c7n-steps-vertical.c7n-steps-dot .c7n-steps-item-icon { margin-top: 0.08rem; margin-left: 0; } .c7n-steps-vertical.c7n-steps-dot .c7n-steps-item-tail { top: 0.02rem; left: -0.09rem; margin: 0; padding: 0.22rem 0 0.04rem; } .c7n-steps-vertical.c7n-steps-dot .c7n-steps-item:first-child .c7n-steps-icon-dot { left: 0; } .c7n-steps-vertical.c7n-steps-dot .c7n-steps-item-process .c7n-steps-icon-dot { left: -0.02rem; }