@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components.
587 lines (586 loc) • 16.2 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-steps {
display: flex;
font-size: 0;
line-height: 1.5;
}
.mds-steps .mds-steps-item {
position: relative;
display: inline-block;
vertical-align: top;
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-head-inner {
border-color: #D8DCE6;
background-color: #EEEEEE;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-head-inner > .mds-steps-icon {
color: #7F8FA4;
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: rgba(0, 0, 0, 0.2);
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-title {
color: #7F8FA4;
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-description {
color: #7F8FA4;
}
.mds-steps .mds-steps-item.mds-steps-status-wait .mds-steps-tail > i {
background-color: #D8DCE6;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-head-inner {
border-color: #0364ff;
background-color: #0364ff;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon {
color: #fff;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #0364ff;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-title {
color: #0366FF;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-description {
color: #0366FF;
}
.mds-steps .mds-steps-item.mds-steps-status-process .mds-steps-tail > i {
background-color: #D8DCE6;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-head-inner {
border-color: #0364ff;
background-color: #fff;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-head-inner > .mds-steps-icon {
color: #0364ff;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #0364ff;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-tail > i:after {
width: 100%;
background: #0364ff;
transition: all .6s;
opacity: 1;
box-shadow: 0 0 0 0 #0364ff;
animation: tailEffect .4s;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-title {
color: #0366FF;
}
.mds-steps .mds-steps-item.mds-steps-status-finish .mds-steps-description {
color: #0366FF;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-head-inner {
border-color: #EE3333;
background-color: #fff;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-head-inner > .mds-steps-icon {
color: #EE3333;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #EE3333;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-title {
color: #EE3333;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-description {
color: #EE3333;
}
.mds-steps .mds-steps-item.mds-steps-status-error .mds-steps-tail > i {
background-color: #e9e9e9;
}
.mds-steps .mds-steps-item.mds-steps-next-error .mds-steps-tail > i,
.mds-steps .mds-steps-item.mds-steps-next-error .mds-steps-tail > i:after {
background-color: #EE3333;
}
.mds-steps .mds-steps-item.mds-steps-custom .mds-steps-head-inner {
background: none;
border: 0;
height: auto;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-item.mds-steps-custom .mds-steps-head-inner > .mds-steps-icon {
display: inline-block;
font-size: 32px;
width: 32px;
height: 32px;
}
.mds-steps .mds-steps-item.mds-steps-custom.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon {
color: #0364ff;
}
.mds-steps .mds-steps-head,
.mds-steps .mds-steps-main {
position: relative;
display: block;
}
.mds-steps .mds-steps-head {
background: #fff;
}
.mds-steps .mds-steps-head-inner {
display: block;
border: 1px solid rgba(0, 0, 0, 0.2);
width: 32px;
height: 32px;
line-height: 29px;
text-align: center;
border-radius: 32px;
font-size: 14px;
margin-right: 8px;
transition: background-color 0.3s ease, border-color 0.3s ease;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
z-index: 10;
position: relative;
}
.mds-steps .mds-steps-head-inner > .mds-steps-icon {
line-height: 1;
color: #0364ff;
position: relative;
}
.mds-steps .mds-steps-head-inner > .mds-steps-icon.mdsicon {
font-size: 12px;
}
.mds-steps .mds-steps-head-inner > .mds-steps-icon.mdsicon-cross,
.mds-steps .mds-steps-head-inner > .mds-steps-icon.mdsicon-check {
font-weight: bold;
}
.mds-steps .mds-steps-title {
font-size: 14px;
line-height: 32px;
color: #666666;
font-weight: normal;
background-color: #fff;
display: inline-block;
padding-right: 10px;
}
.mds-steps .mds-steps-title > a:first-child:last-child {
color: #666666;
}
.mds-steps .mds-steps-item:last-child .mds-steps-title {
padding-right: 0;
width: 100%;
}
.mds-steps .mds-steps-item:last-child .mds-steps-tail {
display: none;
}
.mds-steps .mds-steps-description {
font-size: 14px;
color: rgba(0, 0, 0, 0.43);
}
.mds-steps .mds-steps-tail {
position: absolute;
left: 0;
width: 100%;
top: 15.5px;
padding: 0 10px;
z-index: 1;
}
.mds-steps .mds-steps-tail > i {
display: inline-block;
vertical-align: top;
background: #D8DCE6;
height: 1px;
border-radius: 1px;
width: 100%;
position: relative;
}
.mds-steps .mds-steps-tail > i:after {
position: absolute;
content: '';
top: 0;
width: 0;
background: #e9e9e9;
height: 100%;
opacity: 0;
}
.mds-steps.mds-steps-small .mds-steps-head-inner {
border: 1px solid rgba(0, 0, 0, 0.2);
width: 24px;
height: 24px;
line-height: 21px;
text-align: center;
border-radius: 24px;
font-size: 12px;
margin-right: 10px;
z-index: 10;
position: relative;
}
.mds-steps.mds-steps-small .mds-steps-head-inner > .mds-steps-icon.mdsicon {
display: inline-block;
font-size: 12px;
font-size: 9px ;
transform: scale(0.75) rotate(0deg);
/* IE6-IE8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)";
zoom: 1;
top: 0;
}
:root .mds-steps.mds-steps-small .mds-steps-head-inner > .mds-steps-icon.mdsicon {
filter: none;
}
:root .mds-steps.mds-steps-small .mds-steps-head-inner > .mds-steps-icon.mdsicon {
font-size: 12px;
}
.mds-steps.mds-steps-small .mds-steps-main {
margin-top: 0;
}
.mds-steps.mds-steps-small .mds-steps-title {
font-size: 12px;
line-height: 24px;
color: #666666;
font-weight: normal;
}
.mds-steps.mds-steps-small .mds-steps-description {
font-size: 12px;
color: rgba(0, 0, 0, 0.43);
}
.mds-steps.mds-steps-small .mds-steps-tail {
top: 11.5px;
padding: 0 8px;
}
.mds-steps.mds-steps-small .mds-steps-tail > i {
height: 1px;
border-radius: 1px;
width: 100%;
}
.mds-steps.mds-steps-small .mds-steps-custom .mds-steps-head-inner > .mds-steps-icon {
font-size: 24px;
width: 24px;
height: 24px;
}
.mds-steps-vertical {
flex-flow: column;
height: 100%;
}
.mds-steps-vertical > .mds-steps-item {
display: block;
}
.mds-steps-vertical > .mds-steps-item > .mds-steps-tail {
position: absolute;
left: 15.5px;
top: 0;
height: 100%;
width: 1px;
padding: 30px 0 0;
}
.mds-steps-vertical > .mds-steps-item > .mds-steps-tail > i {
height: 100%;
width: 1px;
}
.mds-steps-vertical > .mds-steps-item > .mds-steps-tail > i:after {
height: 0;
width: 100%;
}
.mds-steps-vertical > .mds-steps-item > .mds-steps-step {
display: flex;
}
.mds-steps-vertical .mds-steps-status-finish .mds-steps-tail > i:after {
height: 100%;
}
.mds-steps-vertical .mds-steps-head {
flex-grow: 0;
margin-right: 16px;
}
.mds-steps-vertical .mds-steps-head-inner {
z-index: 10;
position: relative;
}
.mds-steps-vertical .mds-steps-main {
flex-grow: 1;
min-height: 47px;
overflow: hidden;
display: block;
}
.mds-steps-vertical .mds-steps-main .mds-steps-title {
line-height: 32px;
}
.mds-steps-vertical .mds-steps-main .mds-steps-description {
padding-bottom: 12px;
}
.mds-steps-vertical.mds-steps-small .mds-steps-tail {
position: absolute;
left: 11.5px;
top: 0;
padding: 22px 0 0;
}
.mds-steps-vertical.mds-steps-small .mds-steps-tail > i {
height: 100%;
}
.mds-steps-vertical.mds-steps-small .mds-steps-title {
line-height: 24px;
}
.mds-steps-horizontal.mds-steps-hidden {
visibility: hidden;
}
.mds-steps-horizontal .mds-steps-description {
max-width: 120px;
}
.mds-steps-horizontal .mds-steps-item:not(:first-child) .mds-steps-head {
padding-left: 10px;
margin-left: -10px;
}
.mds-steps-dot .mds-steps-item .mds-steps-step {
display: inline-block;
text-align: center;
width: 120px;
}
.mds-steps-dot .mds-steps-item:not(:first-child) .mds-steps-head {
margin-left: 0;
padding-left: 0;
}
.mds-steps-dot .mds-steps-tail {
margin: 0 0 0 60px;
padding: 0;
width: 100%;
top: 1px;
}
.mds-steps-dot .mds-steps-tail > i {
height: 3px;
}
.mds-steps-dot .mds-steps-head {
display: inline-block;
padding-right: 0;
}
.mds-steps-dot .mds-steps-head-inner {
margin: 0 auto;
width: 5px;
height: 5px;
line-height: 5px;
border: 0;
z-index: 10;
position: relative;
}
.mds-steps-dot .mds-steps-head-inner .mds-steps-icon-dot {
float: left;
width: 100%;
height: 100%;
border-radius: 2.5px;
position: relative;
}
.mds-steps-dot .mds-steps-head-inner .mds-steps-icon-dot:after {
content: '';
background: rgba(255, 255, 255, 0.001);
width: 40px;
height: 24px;
position: absolute;
top: -8px;
left: -16px;
}
.mds-steps-dot .mds-steps-head-inner .mds-steps-icon-dot:hover {
transform: scale(1.3);
}
.mds-steps-dot .mds-steps-main {
display: block;
margin-top: 10px;
}
.mds-steps-dot .mds-steps-main .mds-steps-title {
padding-right: 0;
background-color: transparent;
}
.mds-steps-dot .mds-steps-status-process .mds-steps-head {
top: -1px;
}
.mds-steps-dot .mds-steps-status-process .mds-steps-head-inner {
width: 7px;
height: 7px;
line-height: 7px;
z-index: 10;
position: relative;
}
.mds-steps-dot .mds-steps-status-process .mds-steps-head-inner .mds-steps-icon-dot {
border-radius: 3.5px;
}
.mds-steps-dot.mds-steps-vertical .mds-steps-tail {
left: 2px;
height: 100%;
padding: 0;
top: 15px;
}
.mds-steps-dot.mds-steps-vertical .mds-steps-tail > i {
height: 100%;
width: 3px;
}
.mds-steps-dot.mds-steps-vertical .mds-steps-head {
top: 12px;
left: 1px;
}
.mds-steps-dot.mds-steps-vertical .mds-steps-status-process .mds-steps-head {
left: 0;
}
@keyframes tailEffect {
to {
box-shadow: 0 0 3px 3px transparent;
}
}
.mds-steps--simple {
padding: 13px 8%;
border-radius: 4px;
background: #f5f7fa;
}
.mds-steps--simple .mds-steps-simple .mds-steps-tail {
position: absolute;
left: 11.5px;
top: 0;
padding: 22px 0 0;
}
.mds-steps--simple .mds-steps-simple .mds-steps-tail > i {
height: 100%;
}
.mds-steps--simple .mds-steps-simple .mds-steps-step {
display: flex;
}
.mds-steps--simple .mds-steps-simple .mds-steps-step .mds-steps-head {
background: none;
}
.mds-steps--simple .mds-steps-simple .mds-steps-step .mds-steps-main {
width: 100%;
}
.mds-steps--simple .mds-steps-simple .mds-steps-step .mds-steps-main .mds-steps-title {
background: none;
}
.mds-steps--simple .mds-steps-title {
display: flex;
flex: 1;
}
.mds-steps--simple .mds-steps-title .mds-steps--simple-icon {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
}
.mds-steps--simple .mds-steps-simple:last-child {
flex-basis: auto;
flex-shrink: 0;
flex-grow: 0;
}
.mds-steps--simple .mds-steps-simple:last-child .mdsicon {
display: none;
}
.mds-steps--simple .mds-steps-simple {
position: relative;
display: inline-block;
vertical-align: top;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-head-inner {
border-color: #D8DCE6;
background-color: #EEEEEE;
z-index: 10;
position: relative;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-head-inner > .mds-steps-icon {
color: #7F8FA4;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: rgba(0, 0, 0, 0.2);
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-title {
color: #7F8FA4;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-description {
color: #7F8FA4;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-wait .mds-steps-tail > i {
background-color: #D8DCE6;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-head-inner {
border-color: #0364ff;
background-color: #0364ff;
z-index: 10;
position: relative;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon {
color: #fff;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #0364ff;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-title {
color: #0366FF;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-description {
color: #0366FF;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-process .mds-steps-tail > i {
background-color: #D8DCE6;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-head-inner {
border-color: #0364ff;
background-color: #fff;
z-index: 10;
position: relative;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-head-inner > .mds-steps-icon {
color: #0364ff;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #0364ff;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-tail > i:after {
width: 100%;
background: #0364ff;
transition: all .6s;
opacity: 1;
box-shadow: 0 0 0 0 #0364ff;
animation: tailEffect .4s;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-title {
color: #0366FF;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-finish .mds-steps-description {
color: #0366FF;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-head-inner {
border-color: #EE3333;
background-color: #fff;
z-index: 10;
position: relative;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-head-inner > .mds-steps-icon {
color: #EE3333;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-head-inner > .mds-steps-icon .mds-steps-icon-dot {
background: #EE3333;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-title {
color: #EE3333;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-description {
color: #EE3333;
}
.mds-steps--simple .mds-steps-simple.mds-steps-status-error .mds-steps-tail > i {
background-color: #e9e9e9;
}
.mds-steps--simple .mds-steps-simple.mds-steps-next-error .mds-steps-tail > i,
.mds-steps--simple .mds-steps-simple.mds-steps-next-error .mds-steps-tail > i:after {
background-color: #EE3333;
}
.mds-steps--simple .mds-steps-simple.mds-steps-custom .mds-steps-head-inner {
background: none;
border: 0;
height: auto;
z-index: 10;
position: relative;
}
.mds-steps--simple .mds-steps-simple.mds-steps-custom .mds-steps-head-inner > .mds-steps-icon {
display: inline-block;
font-size: 32px;
width: 32px;
height: 32px;
}
.mds-steps--simple .mds-steps-simple.mds-steps-custom.mds-steps-status-process .mds-steps-head-inner > .mds-steps-icon {
color: #0364ff;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */