ygd
Version:
An enterprise-class UI design language and React-based implementation
663 lines (662 loc) • 17.1 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 */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-steps {
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
display: flex;
width: 100%;
box-sizing: content-box;
font-size: 0;
}
.yg-steps-item {
position: relative;
display: inline-block;
flex: 1;
overflow: hidden;
vertical-align: top;
}
.yg-steps-item:last-child {
flex: none;
}
.yg-steps-item:last-child .yg-steps-item-tail,
.yg-steps-item:last-child .yg-steps-item-title::after {
display: none;
}
.yg-steps-item-icon,
.yg-steps-item-content {
display: inline-block;
vertical-align: top;
}
.yg-steps-item-icon {
width: 26px;
height: 26px;
margin-right: 0;
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
line-height: 28px;
text-align: center;
border: 2px solid rgba(51, 51, 51, 0.25);
border-radius: 50%;
transition: background-color 0.3s, border-color 0.3s;
}
.yg-steps-item-icon > .yg-steps-icon {
position: relative;
top: 0px;
color: #00a1ff;
line-height: 1;
}
.yg-steps-item-tail {
position: absolute;
top: 12px;
left: 0;
width: 100%;
padding: 0 10px;
}
.yg-steps-item-tail::after {
display: inline-block;
width: 50%;
height: 2px;
margin-left: -1px;
border-radius: 2px;
transition: background 0.3s;
content: '';
}
.yg-steps-item-tail::before {
display: inline-block;
width: 50%;
height: 2px;
border-radius: 2px;
transition: background 0.3s;
content: '';
}
.yg-steps-item-title {
position: relative;
display: inline-block;
padding-right: 16px;
color: #00a1ff;
font-size: 14px;
line-height: 28px;
}
.yg-steps-item-title::after {
position: absolute;
top: 14px;
left: 100%;
display: block;
width: 9999px;
height: 2px;
background: #c0ccda;
content: '';
}
.yg-steps-item-description {
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
}
.yg-steps-item-wait .yg-steps-item-icon {
background-color: #fff;
border-color: rgba(51, 51, 51, 0.25);
}
.yg-steps-item-wait .yg-steps-item-icon > .yg-steps-icon {
color: rgba(51, 51, 51, 0.25);
}
.yg-steps-item-wait .yg-steps-item-icon > .yg-steps-icon .yg-steps-icon-dot {
background: rgba(51, 51, 51, 0.25);
}
.yg-steps-item-finish .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-wait > .yg-steps-item-content > .yg-steps-item-title {
color: rgba(0, 0, 0, 0.45);
}
.yg-steps-item-wait > .yg-steps-item-content > .yg-steps-item-title::after {
background-color: #c0ccda;
}
.yg-steps-item-wait > .yg-steps-item-content > .yg-steps-item-description {
color: rgba(0, 0, 0, 0.45);
}
.yg-steps-item-wait > .yg-steps-item-tail::after {
background-color: #c0ccda;
}
.yg-steps-item-wait > .yg-steps-item-tail::before {
background-color: #c0ccda;
}
.yg-steps-item-process > .yg-steps-item-tail::before {
background-color: #00a1ff;
}
.yg-steps-item-process {
color: #f00;
}
.yg-steps-item-process .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-process .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-process .yg-steps-item-icon > .yg-steps-icon .yg-steps-icon-dot {
background: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-process > .yg-steps-item-content > .yg-steps-item-title {
color: #333333;
}
.yg-steps-item-process > .yg-steps-item-content > .yg-steps-item-title::after {
background-color: #c0ccda;
}
.yg-steps-item-process > .yg-steps-item-content > .yg-steps-item-description {
color: #333;
}
.yg-steps-item-process > .yg-steps-item-tail::after {
background-color: #c0ccda;
}
.yg-steps-item-process > .yg-steps-item-tail::before {
background-color: #c0ccda;
}
.yg-steps-item-process > .yg-steps-item-tail::before {
background-color: #00a1ff;
}
.yg-steps-item-process {
color: #f00;
}
.yg-steps-item-process .yg-steps-item-icon {
background: #00a1ff;
}
.yg-steps-item-process .yg-steps-item-icon > .yg-steps-icon {
color: #fff;
}
.yg-steps-item-process .yg-steps-item-title {
font-weight: 500;
}
.yg-steps-item-finish .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon .yg-steps-icon-dot {
background: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-finish > .yg-steps-item-content > .yg-steps-item-title {
color: #00a1ff;
}
.yg-steps-item-finish > .yg-steps-item-content > .yg-steps-item-title::after {
background-color: #00a1ff;
}
.yg-steps-item-finish > .yg-steps-item-content > .yg-steps-item-description {
color: #00a1ff;
}
.yg-steps-item-finish > .yg-steps-item-tail::after {
background-color: #00a1ff;
}
.yg-steps-item-finish > .yg-steps-item-tail::before {
background-color: #00a1ff;
}
.yg-steps-item-process > .yg-steps-item-tail::before {
background-color: #00a1ff;
}
.yg-steps-item-process {
color: #f00;
}
.yg-steps-item-error .yg-steps-item-icon {
background-color: #fff;
border-color: #e2062c;
}
.yg-steps-item-error .yg-steps-item-icon > .yg-steps-icon {
color: #e2062c;
}
.yg-steps-item-error .yg-steps-item-icon > .yg-steps-icon .yg-steps-icon-dot {
background: #e2062c;
}
.yg-steps-item-finish .yg-steps-item-icon {
background-color: #fff;
border-color: #00a1ff;
}
.yg-steps-item-finish .yg-steps-item-icon > .yg-steps-icon {
color: #00a1ff;
}
.yg-steps-item-error > .yg-steps-item-content > .yg-steps-item-title {
color: #e2062c;
}
.yg-steps-item-error > .yg-steps-item-content > .yg-steps-item-title::after {
background-color: #e2062c;
}
.yg-steps-item-error > .yg-steps-item-content > .yg-steps-item-description {
color: #e2062c;
}
.yg-steps-item-error > .yg-steps-item-tail::after {
background-color: #e2062c;
}
.yg-steps-item-error > .yg-steps-item-tail::before {
background-color: #e2062c;
}
.yg-steps-item-process > .yg-steps-item-tail::before {
background-color: #00a1ff;
}
.yg-steps-item-process {
color: #f00;
}
.yg-steps-item.yg-steps-item-error .yg-steps-item-tail::after {
background-color: #c0ccda;
}
.yg-steps-item.yg-steps-next-error .yg-steps-item-title::after {
background: #e2062c;
}
.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item {
margin-right: 16px;
white-space: nowrap;
}
.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item:last-child {
margin-right: 0;
}
.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item:last-child .yg-steps-item-title {
padding-right: 0;
}
.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item-tail {
display: none;
}
.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item-description {
max-width: 140px;
white-space: normal;
}
.yg-steps-item-custom .yg-steps-item-icon {
width: 26px;
height: 26px;
}
.yg-steps-item-custom .yg-steps-item-icon > .yg-steps-icon {
top: 0;
left: 0.5px;
width: 28px;
height: 28px;
font-size: 20px;
line-height: 28px;
}
.yg-steps-item-custom .yg-steps-item-finish {
background-color: #00a1ff;
border-color: #00a1ff;
}
.yg-steps-item-custom .yg-steps-item-finish > .yg-steps-icon {
color: #fff;
}
.yg-steps-item-custom .yg-steps-item-process {
background-color: #00a1ff;
border-color: #00a1ff;
}
.yg-steps-item-custom .yg-steps-item-process > .yg-steps-icon {
color: #fff;
}
.yg-steps-item-custom .yg-steps-item-content {
margin-left: 5px;
}
.yg-steps-item-custom .yg-steps-item-content .yg-steps-item-title::after {
position: absolute;
top: 0;
left: 100%;
display: block;
width: 0px;
height: 0px;
background: #c0ccda;
content: ' > ';
}
.yg-steps-item-custom.yg-steps-item-process .yg-steps-item-icon > .yg-steps-icon {
color: #fff;
}
.yg-steps:not(.yg-steps-vertical) .yg-steps-item-custom .yg-steps-item-icon {
width: 26px;
border-width: 2px;
}
.yg-steps-small.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item {
margin-right: 12px;
}
.yg-steps-small.yg-steps-horizontal:not(.yg-steps-label-vertical) .yg-steps-item:last-child {
margin-right: 0;
}
.yg-steps-small .yg-steps-item-icon {
width: 24px;
height: 24px;
font-size: 12px;
line-height: 24px;
text-align: center;
border-radius: 24px;
}
.yg-steps-small .yg-steps-item-title {
padding-right: 12px;
font-size: 12px;
line-height: 24px;
}
.yg-steps-small .yg-steps-item-title::after {
top: 12px;
}
.yg-steps-small .yg-steps-item-description {
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
}
.yg-steps-small .yg-steps-item-tail {
top: 8px;
padding: 0 8px;
}
.yg-steps-small .yg-steps-item-custom .yg-steps-item-icon {
width: inherit;
height: inherit;
line-height: inherit;
background: none;
border: 0;
border-radius: 0;
}
.yg-steps-small .yg-steps-item-custom .yg-steps-item-icon > .yg-steps-icon {
font-size: 24px;
line-height: 24px;
transform: none;
}
.yg-steps-vertical {
display: block;
}
.yg-steps-vertical .yg-steps-item {
display: block;
overflow: visible;
}
.yg-steps-vertical .yg-steps-item-icon {
float: left;
margin-right: 10px;
}
.yg-steps-vertical .yg-steps-item-content {
display: block;
min-height: 48px;
overflow: hidden;
}
.yg-steps-vertical .yg-steps-item-title {
line-height: 28px;
display: inline-block;
padding-right: 0px;
margin-right: 20px;
}
.yg-steps-vertical .yg-steps-item-description {
padding-bottom: 12px;
display: inline-block;
}
.yg-steps-vertical > .yg-steps-item > .yg-steps-item-tail {
position: absolute;
top: 0;
left: 14px;
width: 2px;
height: calc(100% - 28px);
padding: 28px 0 6px;
}
.yg-steps-vertical > .yg-steps-item > .yg-steps-item-tail::before {
width: 2px;
height: 50%;
display: inline-block;
border-radius: 2px;
transition: background 0.3s;
content: '';
}
.yg-steps-vertical > .yg-steps-item > .yg-steps-item-tail::after {
width: 2px;
height: 50%;
display: inline-block;
border-radius: 2px;
transition: background 0.3s;
margin-top: -1px;
margin-left: 0;
content: '';
}
.yg-steps-vertical > .yg-steps-item:not(:last-child) > .yg-steps-item-tail {
display: block;
}
.yg-steps-vertical > .yg-steps-item > .yg-steps-item-content > .yg-steps-item-title::after {
display: none;
}
.yg-steps-vertical.yg-steps-small .yg-steps-item-tail {
position: absolute;
top: 0;
left: 12px;
padding: 30px 0 6px;
}
.yg-steps-vertical.yg-steps-small .yg-steps-item-title {
line-height: 24px;
}
.yg-steps-vertical-process > .yg-steps-vertical-tail::before {
background-color: #00a1ff;
}
@media (max-width: 480px) {
.yg-steps-horizontal.yg-steps-label-horizontal {
display: block;
}
.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item {
display: block;
overflow: visible;
}
.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item-icon {
float: left;
margin-right: 10px;
}
.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item-content {
display: block;
min-height: 48px;
overflow: hidden;
}
.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item-title {
line-height: 28px;
display: inline-block;
padding-right: 0px;
margin-right: 20px;
}
.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item-description {
padding-bottom: 12px;
display: inline-block;
}
.yg-steps-horizontal.yg-steps-label-horizontal > .yg-steps-item > .yg-steps-item-tail {
position: absolute;
top: 0;
left: 14px;
width: 2px;
height: calc(100% - 28px);
padding: 28px 0 6px;
}
.yg-steps-horizontal.yg-steps-label-horizontal > .yg-steps-item > .yg-steps-item-tail::before {
width: 2px;
height: 50%;
display: inline-block;
border-radius: 2px;
transition: background 0.3s;
content: '';
}
.yg-steps-horizontal.yg-steps-label-horizontal > .yg-steps-item > .yg-steps-item-tail::after {
width: 2px;
height: 50%;
display: inline-block;
border-radius: 2px;
transition: background 0.3s;
margin-top: -1px;
margin-left: 0;
content: '';
}
.yg-steps-horizontal.yg-steps-label-horizontal > .yg-steps-item:not(:last-child) > .yg-steps-item-tail {
display: block;
}
.yg-steps-horizontal.yg-steps-label-horizontal > .yg-steps-item > .yg-steps-item-content > .yg-steps-item-title::after {
display: none;
}
.yg-steps-horizontal.yg-steps-label-horizontal.yg-steps-small .yg-steps-item-tail {
position: absolute;
top: 0;
left: 12px;
padding: 30px 0 6px;
}
.yg-steps-horizontal.yg-steps-label-horizontal.yg-steps-small .yg-steps-item-title {
line-height: 24px;
}
}
.yg-steps-label-vertical .yg-steps-item {
overflow: visible;
}
.yg-steps-label-vertical .yg-steps-item-tail {
margin-left: 42px;
padding: 3.5px 24px;
width: calc(100% - 30px);
}
.yg-steps-label-vertical .yg-steps-item-content {
display: block;
width: 100px;
margin-top: 8px;
text-align: center;
}
.yg-steps-label-vertical .yg-steps-item-icon {
display: inline-block;
margin-left: 35px;
}
.yg-steps-label-vertical .yg-steps-item-title {
padding-right: 0;
}
.yg-steps-label-vertical .yg-steps-item-title::after {
display: none;
}
.yg-steps-label-vertical.yg-steps-small .yg-steps-item-icon {
margin-left: 40px;
}
.yg-steps-dot .yg-steps-item-title {
line-height: 28px;
}
.yg-steps-dot .yg-steps-item-tail {
top: 2px;
width: 100%;
margin: 0 0 0 70px;
padding: 0;
}
.yg-steps-dot .yg-steps-item-tail::before {
margin-left: 9px;
display: inline-block;
width: calc(50% - 5px);
height: 2px;
border-radius: 2px;
margin-top: 4px;
transition: background 0.3s;
content: '';
}
.yg-steps-dot .yg-steps-item-tail::after {
width: calc(50% - 6px);
height: 2px;
margin-left: -1px;
display: inline-block;
border-radius: 2px;
margin-top: -2px;
content: '';
}
.yg-steps-dot .yg-steps-item:first-child .yg-steps-icon-dot {
left: 2px;
}
.yg-steps-dot .yg-steps-item-icon {
width: 14px;
height: 14px;
margin-left: 67px;
padding-right: 0;
line-height: 14px;
background: transparent;
border: 0;
}
.yg-steps-dot .yg-steps-item-icon .yg-steps-icon-dot {
position: relative;
float: left;
width: 100%;
height: 100%;
border-radius: 100px;
transition: all 0.3s;
/* expand hover area */
}
.yg-steps-dot .yg-steps-item-icon .yg-steps-icon-dot::after {
position: absolute;
top: -12px;
left: -26px;
width: 60px;
height: 32px;
background: rgba(0, 0, 0, 0.001);
content: '';
}
.yg-steps-dot .yg-steps-item-content {
width: 140px;
}
.yg-steps-dot .yg-steps-item-process .yg-steps-item-icon {
width: 14px;
height: 14px;
line-height: 14px;
}
.yg-steps-dot .yg-steps-item-process .yg-steps-item-icon .yg-steps-icon-dot {
top: -1px;
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item-icon {
margin-top: 8px;
margin-left: 0;
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item-tail {
top: 2px;
left: -3px;
margin: 0;
padding: 20px 0 0px;
height: calc(100% - 14px);
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item:first-child .yg-steps-icon-dot {
left: 0;
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item-process .yg-steps-icon-dot {
left: 0;
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item-tail::before {
margin-top: 0px;
}
.yg-steps-vertical.yg-steps-dot .yg-steps-item-tail::after {
margin-left: 9px;
}
.yg-steps-flex-not-supported.yg-steps-horizontal.yg-steps-label-horizontal .yg-steps-item {
margin-left: -16px;
padding-left: 16px;
background: #fff;
}
.yg-steps-flex-not-supported.yg-steps-horizontal.yg-steps-label-horizontal.yg-steps-small .yg-steps-item {
margin-left: -12px;
padding-left: 12px;
}
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item:last-child {
overflow: hidden;
}
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item:last-child .yg-steps-icon-dot::after {
right: -200px;
width: 200px;
}
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item .yg-steps-icon-dot::before,
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item .yg-steps-icon-dot::after {
position: absolute;
top: 0;
left: -10px;
width: 10px;
height: 8px;
background: #fff;
content: '';
}
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item .yg-steps-icon-dot::after {
right: -10px;
left: auto;
}
.yg-steps-flex-not-supported.yg-steps-dot .yg-steps-item-wait .yg-steps-item-icon > .yg-steps-icon .yg-steps-icon-dot {
background: #ccc;
}