antd
Version:
An enterprise-class UI design language and React-based implementation
302 lines (301 loc) • 7.71 kB
CSS
.ant-steps {
font-size: 0;
width: 100%;
line-height: 1.5;
}
.ant-steps .ant-steps-item {
position: relative;
display: inline-block;
vertical-align: top;
}
.ant-steps .ant-steps-item.ant-steps-status-wait .ant-steps-head-inner {
border-color: #ccc;
background-color: #fff;
}
.ant-steps .ant-steps-item.ant-steps-status-wait .ant-steps-head-inner > .ant-steps-icon {
color: #ccc;
}
.ant-steps .ant-steps-item.ant-steps-status-wait .ant-steps-title {
color: #999;
}
.ant-steps .ant-steps-item.ant-steps-status-wait .ant-steps-description {
color: #999;
}
.ant-steps .ant-steps-item.ant-steps-status-wait .ant-steps-tail > i {
background-color: #e9e9e9;
}
.ant-steps .ant-steps-item.ant-steps-status-process .ant-steps-head-inner {
border-color: #2db7f5;
background-color: #2db7f5;
}
.ant-steps .ant-steps-item.ant-steps-status-process .ant-steps-head-inner > .ant-steps-icon {
color: #fff;
}
.ant-steps .ant-steps-item.ant-steps-status-process .ant-steps-title {
color: #666;
}
.ant-steps .ant-steps-item.ant-steps-status-process .ant-steps-description {
color: #666;
}
.ant-steps .ant-steps-item.ant-steps-status-process .ant-steps-tail > i {
background-color: #e9e9e9;
}
.ant-steps .ant-steps-item.ant-steps-status-finish .ant-steps-head-inner {
border-color: #2db7f5;
background-color: #fff;
}
.ant-steps .ant-steps-item.ant-steps-status-finish .ant-steps-head-inner > .ant-steps-icon {
color: #2db7f5;
}
.ant-steps .ant-steps-item.ant-steps-status-finish .ant-steps-tail > i:after {
width: 100%;
background: #2db7f5;
-webkit-transition: all 0.4s ease;
transition: all 0.4s ease;
opacity: 1;
}
.ant-steps .ant-steps-item.ant-steps-status-finish .ant-steps-title {
color: #999;
}
.ant-steps .ant-steps-item.ant-steps-status-finish .ant-steps-description {
color: #999;
}
.ant-steps .ant-steps-item.ant-steps-status-error .ant-steps-head-inner {
border-color: #f50;
background-color: #fff;
}
.ant-steps .ant-steps-item.ant-steps-status-error .ant-steps-head-inner > .ant-steps-icon {
color: #f50;
}
.ant-steps .ant-steps-item.ant-steps-status-error .ant-steps-title {
color: #f50;
}
.ant-steps .ant-steps-item.ant-steps-status-error .ant-steps-description {
color: #f50;
}
.ant-steps .ant-steps-item.ant-steps-status-error .ant-steps-tail > i {
background-color: #e9e9e9;
}
.ant-steps .ant-steps-item.ant-steps-next-error .ant-steps-tail > i,
.ant-steps .ant-steps-item.ant-steps-next-error .ant-steps-tail > i:after {
background-color: #f50;
}
.ant-steps .ant-steps-item.ant-steps-custom .ant-steps-head-inner {
background: none;
border: 0;
width: auto;
height: auto;
}
.ant-steps .ant-steps-item.ant-steps-custom .ant-steps-head-inner > .ant-steps-icon {
font-size: 20px;
top: 2px;
width: 20px;
height: 20px;
}
.ant-steps .ant-steps-item.ant-steps-custom.ant-steps-status-process .ant-steps-head-inner > .ant-steps-icon {
color: #2db7f5;
}
.ant-steps .ant-steps-head,
.ant-steps .ant-steps-main {
position: relative;
display: inline-block;
vertical-align: top;
}
.ant-steps .ant-steps-head {
background: #fff;
}
.ant-steps .ant-steps-head-inner {
display: block;
border: 1px solid #ccc;
width: 26px;
height: 26px;
line-height: 26px;
text-align: center;
border-radius: 26px;
font-size: 14px;
margin-right: 8px;
-webkit-transition: background-color 0.3s ease, border-color 0.3s ease;
transition: background-color 0.3s ease, border-color 0.3s ease;
}
.ant-steps .ant-steps-head-inner > .ant-steps-icon {
line-height: 1;
top: -1.5px;
color: #2db7f5;
position: relative;
}
.ant-steps .ant-steps-head-inner > .ant-steps-icon.anticon {
font-size: 12px;
}
.ant-steps .ant-steps-head-inner > .ant-steps-icon.anticon-cross,
.ant-steps .ant-steps-head-inner > .ant-steps-icon.anticon-check {
font-weight: bold;
}
.ant-steps .ant-steps-main {
margin-top: 2.5px;
}
.ant-steps .ant-steps-title {
font-size: 14px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
background: #fff;
display: inline-block;
padding-right: 10px;
}
.ant-steps .ant-steps-title > a:first-child:last-child {
color: #666;
}
.ant-steps .ant-steps-item-last .ant-steps-title {
padding-right: 0;
width: 100%;
}
.ant-steps .ant-steps-description {
font-size: 12px;
color: #999;
}
.ant-steps .ant-steps-tail {
position: absolute;
left: 0;
width: 100%;
top: 13px;
padding: 0 10px;
}
.ant-steps .ant-steps-tail > i {
display: inline-block;
vertical-align: top;
background: #e9e9e9;
height: 1px;
border-radius: 1px;
width: 100%;
position: relative;
}
.ant-steps .ant-steps-tail > i:after {
position: absolute;
content: '';
top: 0;
width: 0;
background: #e9e9e9;
height: 100%;
opacity: 0;
}
.ant-steps.ant-steps-small .ant-steps-head-inner {
border: 1px solid #ccc;
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
border-radius: 18px;
font-size: 12px;
margin-right: 10px;
}
.ant-steps.ant-steps-small .ant-steps-head-inner > .ant-steps-icon.anticon {
display: inline-block;
font-size: 12px;
font-size: 9px \9;
-webkit-transform: scale(0.75) rotate(0deg);
-ms-transform: scale(0.75) rotate(0deg);
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 .ant-steps.ant-steps-small .ant-steps-head-inner > .ant-steps-icon.anticon {
-webkit-filter: none;
filter: none;
}
:root .ant-steps.ant-steps-small .ant-steps-head-inner > .ant-steps-icon.anticon {
font-size: 12px;
}
.ant-steps.ant-steps-small .ant-steps-main {
margin-top: 0;
}
.ant-steps.ant-steps-small .ant-steps-title {
font-size: 12px;
margin-bottom: 4px;
color: #666;
font-weight: bold;
}
.ant-steps.ant-steps-small .ant-steps-description {
font-size: 12px;
color: #999;
}
.ant-steps.ant-steps-small .ant-steps-tail {
top: 8px;
padding: 0 8px;
}
.ant-steps.ant-steps-small .ant-steps-tail > i {
height: 1px;
border-radius: 1px;
width: 100%;
}
.ant-steps.ant-steps-small .ant-steps-item.ant-steps-custom .ant-steps-head-inner,
.ant-steps .ant-steps-item.ant-steps-custom .ant-steps-head-inner {
width: inherit;
height: inherit;
line-height: inherit;
border-radius: 0;
border: 0;
background: none;
}
.ant-steps-vertical .ant-steps-item {
display: block;
}
.ant-steps-vertical .ant-steps-tail {
position: absolute;
left: 13px;
top: 0;
height: 100%;
width: 1px;
padding: 30px 0 4px 0;
}
.ant-steps-vertical .ant-steps-tail > i {
height: 100%;
width: 1px;
}
.ant-steps-vertical .ant-steps-tail > i:after {
height: 0;
width: 100%;
}
.ant-steps-vertical .ant-steps-status-finish .ant-steps-tail > i:after {
height: 100%;
}
.ant-steps-vertical .ant-steps-head {
float: left;
}
.ant-steps-vertical .ant-steps-head-inner {
margin-right: 16px;
}
.ant-steps-vertical .ant-steps-main {
min-height: 47px;
overflow: hidden;
display: block;
}
.ant-steps-vertical .ant-steps-main .ant-steps-title {
line-height: 26px;
}
.ant-steps-vertical .ant-steps-main .ant-steps-description {
padding-bottom: 12px;
}
.ant-steps-vertical.ant-steps-small .ant-steps-tail {
position: absolute;
left: 9px;
top: 0;
padding: 22px 0 4px 0;
}
.ant-steps-vertical.ant-steps-small .ant-steps-tail > i {
height: 100%;
}
.ant-steps-vertical.ant-steps-small .ant-steps-title {
line-height: 18px;
}
.ant-steps-horizontal.ant-steps-hidden {
visibility: hidden;
}
.ant-steps-horizontal .ant-steps-description {
max-width: 100px;
}
.ant-steps-horizontal .ant-steps-item:not(:first-child) .ant-steps-head {
padding-left: 10px;
margin-left: -10px;
}