refactoring: setup wizard pages with simple architecture.

This commit is contained in:
Ahmed Bouhuolia
2020-10-11 20:35:01 +02:00
parent b98ecb7569
commit e15a48dcdd
29 changed files with 608 additions and 513 deletions

View File

@@ -1,5 +1,5 @@
.register-page {
.setup-page {
&__right-section {
padding-left: 25%;
@@ -60,13 +60,14 @@
}
}
// Register Wizard Steps
.wizard-container {
width: 80%;
margin: 60px auto;
.setup-page-steps {
.wizard-wrapper li {
&-container {
width: 80%;
margin: 60px auto;
}
li{
position: relative;
list-style-type: none;
width: 25%;
@@ -74,48 +75,54 @@
text-align: center;
color: #000;
font-size: 15px;
}
.wizard-wrapper li::before {
width: 13px;
height: 13px;
content: '';
line-height: 30px;
display: block;
text-align: center;
margin: 0 auto 10px auto;
border-radius: 50%;
background-color: #75859c;
}
.wizard-wrapper li::after {
width: 100%;
height: 2px;
content: '';
position: absolute;
background-color: #75859c;
top: 6px;
left: -50%;
z-index: -1;
}
.wizard-wrapper li:first-child::after {
display: none;
}
.wizard-wrapper > li.complete::before {
background-color: #75859c;
}
&::before {
width: 13px;
height: 13px;
content: '';
line-height: 30px;
display: block;
text-align: center;
margin: 0 auto 10px auto;
border-radius: 50%;
background-color: #75859c;
}
.wizard-wrapper > li.complete ~ li::before {
background: #ebebeb;
}
&::after {
width: 100%;
height: 2px;
content: '';
position: absolute;
background-color: #75859c;
top: 6px;
left: -50%;
z-index: -1;
}
.wizard-wrapper > li.complete ~ li::after {
background: #ebebeb;
}
.wizard-wrapper > li.complete p.wizard-info {
color: #004dd0;
&:first-child::after {
display: none;
}
&.is-active {
&::before {
background-color: #75859c;
}
~ li {
&:before,
&:after {
background: #ebebeb;
}
}
p.wizard-info {
color: #004dd0;
}
}
}
}
// @import './billing.scss';
//Register Subscription form