choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
467 lines (466 loc) • 12.6 kB
CSS
/* 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 */
.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-item {
position: relative;
display: inline-block;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
overflow: hidden;
vertical-align: top;
}
.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-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: 0.28rem;
height: 0.28rem;
line-height: 0.28rem;
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: 0.14rem;
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 {
background-color: rgba(0, 0, 0, 0.36);
}
.c7n-steps-item-wait .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot {
background: rgba(0, 0, 0, 0.36);
}
.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 > .c7n-steps-item-tail::after {
background-color: rgba(0, 0, 0, 0.26);
}
.c7n-steps-item-process .c7n-steps-item-icon {
background-color: #3f51b5;
}
.c7n-steps-item-process .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot {
background: #3f51b5;
}
.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 > .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-finish .c7n-steps-item-icon {
background-color: #3f51b5;
}
.c7n-steps-item-finish .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot {
background: #3f51b5;
}
.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 > .c7n-steps-item-tail::after {
background-color: rgba(0, 0, 0, 0.26);
}
.c7n-steps-item-error .c7n-steps-item-icon {
background-color: #d50000;
}
.c7n-steps-item-error .c7n-steps-item-icon > .c7n-steps-icon .c7n-steps-icon-dot {
background: #d50000;
}
.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 > .c7n-steps-item-tail::after {
background-color: rgba(0, 0, 0, 0.26);
}
.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 .c7n-steps-item-icon {
width: auto;
height: auto;
color: inherit;
background: none;
border: 0;
}
.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: 0.12rem;
}
.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: 0.34rem 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: 0.3rem 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: 0.34rem 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: 0.3rem 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 0.7rem;
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;
}