2019-08-01 14:52:52 +08:00
|
|
|
@import './mixins/mixins.scss';
|
|
|
|
@import './theme/default.scss';
|
|
|
|
|
|
|
|
@include b(steps) {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(step) {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
.n-step__splitor {
|
2019-08-01 18:19:03 +08:00
|
|
|
transition: color .3s $default-cubic-bezier, background-color .3s $default-cubic-bezier;
|
2019-08-01 14:52:52 +08:00
|
|
|
height: 1px;
|
|
|
|
flex: 1;
|
|
|
|
align-self: flex-start;
|
|
|
|
margin-top: 10px;
|
|
|
|
margin-left: 11px;
|
|
|
|
margin-right: 11px;
|
|
|
|
background-color: rgba(255,255,255,0.3);
|
|
|
|
}
|
|
|
|
.n-step__splitor.n-step__splitor--left {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
.n-step__splitor.n-step__splitor--right {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.n-step-content {
|
|
|
|
.n-step-content__title {
|
|
|
|
&::after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&.n-step--finished {
|
|
|
|
.n-step__splitor {
|
|
|
|
background-color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
.n-step-content {
|
|
|
|
.n-step-content__title {
|
|
|
|
color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
.n-step-content__description {
|
|
|
|
color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-step-indicator {
|
|
|
|
box-shadow: 0 0 0 1px rgba(99,226,183,1);
|
2019-08-01 18:19:03 +08:00
|
|
|
.n-step-indicator__icon, .n-step-indicator__index {
|
2019-08-01 14:52:52 +08:00
|
|
|
color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
}
|
2019-08-01 18:19:03 +08:00
|
|
|
&.n-step--error {
|
|
|
|
.n-step__splitor {
|
|
|
|
background-color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
.n-step-content {
|
|
|
|
.n-step-content__title {
|
|
|
|
color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
.n-step-content__description {
|
|
|
|
color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-step-indicator {
|
|
|
|
box-shadow: 0 0 0 1px rgba(255, 146, 164, 1);
|
|
|
|
.n-step-indicator__icon, .n-step-indicator__index {
|
|
|
|
color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-01 14:52:52 +08:00
|
|
|
}
|
|
|
|
&.n-step--active {
|
|
|
|
.n-step-content {
|
|
|
|
.n-step-content__title {
|
|
|
|
color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
.n-step-content__description {
|
|
|
|
color: rgba(99,226,183,1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-step-indicator {
|
|
|
|
background-color: rgba(99,226,183,1);
|
|
|
|
box-shadow: 0 0 0 1px rgba(99,226,183,1);
|
2019-08-01 18:19:03 +08:00
|
|
|
.n-step-indicator__icon, .n-step-indicator__index {
|
2019-08-01 14:52:52 +08:00
|
|
|
color: rgba(23, 29, 51, 1);
|
|
|
|
}
|
|
|
|
}
|
2019-08-01 18:19:03 +08:00
|
|
|
&.n-step--error {
|
|
|
|
.n-step-content {
|
|
|
|
.n-step-content__title {
|
|
|
|
color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
.n-step-content__description {
|
|
|
|
color: rgba(255, 146, 164, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-step-indicator {
|
|
|
|
background-color: rgba(255, 146, 164, 1);
|
|
|
|
box-shadow: 0 0 0 1px rgba(255, 146, 164, 1);
|
|
|
|
.n-step-indicator__icon, .n-step-indicator__index {
|
|
|
|
color: rgba(23, 29, 51, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-08-01 14:52:52 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(step-content) {
|
|
|
|
flex: 1;
|
|
|
|
.n-step-content__title {
|
2019-08-01 18:19:03 +08:00
|
|
|
transition: color .3s $default-cubic-bezier, background-color .3s $default-cubic-bezier;
|
2019-08-01 14:52:52 +08:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
color: rgba(255,255,255,0.3);
|
|
|
|
font-weight: bold;
|
|
|
|
margin-left: 9px;
|
|
|
|
.n-step-content__title-inner {
|
|
|
|
white-space: nowrap;
|
|
|
|
flex: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.n-step-content__description {
|
2019-08-01 18:19:03 +08:00
|
|
|
transition: color .3s $default-cubic-bezier, background-color .3s $default-cubic-bezier;
|
2019-08-01 14:52:52 +08:00
|
|
|
color: rgba(255,255,255,0.3);
|
|
|
|
margin-top: 12px;
|
|
|
|
margin-left: 9px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include b(step-indicator) {
|
2019-08-01 18:19:03 +08:00
|
|
|
position: relative;
|
2019-08-01 14:52:52 +08:00
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
border-radius: 10px;
|
|
|
|
box-shadow: 0 0 0 1px rgba(255,255,255,0.3);
|
2019-08-01 18:19:03 +08:00
|
|
|
transition: background-color .3s $default-cubic-bezier, box-shadow .3s $default-cubic-bezier;
|
|
|
|
.n-step-indicator__icon {
|
|
|
|
@include fade-in-transition-ease-in-out(step-indicator, .3s);
|
|
|
|
transition: color .3s $default-cubic-bezier;
|
|
|
|
color: rgba(255,255,255,0.3);
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
|
|
|
}
|
2019-08-01 14:52:52 +08:00
|
|
|
.n-step-indicator__index {
|
2019-08-01 18:19:03 +08:00
|
|
|
@include fade-in-transition-ease-in-out(step-indicator, .3s);
|
|
|
|
transition: color .3s $default-cubic-bezier;
|
2019-08-01 14:52:52 +08:00
|
|
|
color: rgba(255,255,255,0.3);
|
|
|
|
font-size: 13px;
|
2019-08-01 18:19:03 +08:00
|
|
|
position: absolute;
|
|
|
|
left: 50%;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateX(-50%) translateY(-50%);
|
2019-08-01 14:52:52 +08:00
|
|
|
}
|
|
|
|
}
|