mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-25 14:39:53 +05:30
82 lines
1.4 KiB
SCSS
82 lines
1.4 KiB
SCSS
@import '~app/components/ui/colors.scss';
|
|
|
|
.steps {
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.step {
|
|
position: relative;
|
|
text-align: end;
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
background: #d8d5ce;
|
|
|
|
&:first-child {
|
|
width: 12px;
|
|
}
|
|
|
|
&:before {
|
|
content: '';
|
|
display: block;
|
|
|
|
position: absolute;
|
|
height: 4px;
|
|
inset-inline-start: 0;
|
|
inset-inline-end: 100%;
|
|
top: 50%;
|
|
margin-top: -2px;
|
|
|
|
background: #aaa;
|
|
transition: 0.4s ease 0.1s;
|
|
}
|
|
|
|
&:after {
|
|
content: '';
|
|
display: inline-block;
|
|
position: relative;
|
|
top: -7px;
|
|
z-index: 1;
|
|
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 100%;
|
|
box-sizing: border-box;
|
|
|
|
background: #aaa;
|
|
border: 2px solid #aaa;
|
|
transition: background 0.4s ease, border-color 0.4s cubic-bezier(0.19, 1, 0.22, 1); // easeOutExpo
|
|
}
|
|
}
|
|
|
|
.activeStep {
|
|
&:before {
|
|
inset-inline-end: 0;
|
|
transition-delay: unset;
|
|
}
|
|
|
|
&:after {
|
|
transition-delay: 0.3s;
|
|
}
|
|
}
|
|
|
|
.greenSteps {
|
|
.activeStep {
|
|
&:after {
|
|
background: $green;
|
|
border-color: darker($green);
|
|
}
|
|
}
|
|
}
|
|
|
|
.violetSteps {
|
|
.activeStep {
|
|
&:after {
|
|
background: $violet;
|
|
border-color: darker($violet);
|
|
}
|
|
}
|
|
}
|