2022-05-16 20:38:04 +02:00
|
|
|
$progress-bar-width: calc(100% - 34px); // 100% - (circle size + (circle border size * 2))
|
|
|
|
$progress-bar-position-left: calc(-50% + 17px); // -50% + ((circle size / 2) + circle border size)
|
|
|
|
|
2021-07-08 02:10:12 +02:00
|
|
|
.progressbar {
|
|
|
|
counter-reset: step;
|
|
|
|
display: flex;
|
2022-05-16 20:38:04 +02:00
|
|
|
justify-content: space-between;
|
2021-10-20 20:55:59 +02:00
|
|
|
margin: 0 auto;
|
2021-10-13 19:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
ul.two-steps {
|
|
|
|
margin: 0 auto;
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li {
|
2022-05-16 20:38:04 +02:00
|
|
|
@include H7;
|
|
|
|
|
2021-07-08 02:10:12 +02:00
|
|
|
list-style-type: none;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
2022-03-19 01:43:33 +01:00
|
|
|
color: var(--color-text-alternative);
|
2021-07-08 02:10:12 +02:00
|
|
|
z-index: 2;
|
2022-05-16 20:38:04 +02:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
flex-direction: column;
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li::before {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
content: counter(step);
|
|
|
|
counter-increment: step;
|
|
|
|
line-height: 30px;
|
2022-03-19 01:43:33 +01:00
|
|
|
border: 2px solid var(--color-border-muted);
|
2022-05-16 20:38:04 +02:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2021-07-08 02:10:12 +02:00
|
|
|
text-align: center;
|
|
|
|
margin: 0 auto 10px auto;
|
|
|
|
border-radius: 50%;
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-background-default);
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li::after {
|
2022-05-16 20:38:04 +02:00
|
|
|
width: $progress-bar-width;
|
2021-07-08 02:10:12 +02:00
|
|
|
height: 2px;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-background-alternative);
|
2021-07-08 02:10:12 +02:00
|
|
|
top: 15px;
|
2022-05-16 20:38:04 +02:00
|
|
|
left: $progress-bar-position-left;
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2022-05-16 20:38:04 +02:00
|
|
|
width: $progress-bar-width;
|
2021-10-13 19:41:24 +02:00
|
|
|
height: 2px;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-background-alternative);
|
2021-10-13 19:41:24 +02:00
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li:first-child::after {
|
|
|
|
content: none;
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
|
|
|
content: none;
|
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li.active {
|
2022-03-19 01:43:33 +01:00
|
|
|
color: var(--color-primary-default);
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2022-03-19 01:43:33 +01:00
|
|
|
color: var(--color-primary-default);
|
2021-10-13 19:41:24 +02:00
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li.active::before {
|
2022-03-19 01:43:33 +01:00
|
|
|
border-color: var(--color-primary-default);
|
2021-07-08 02:10:12 +02:00
|
|
|
z-index: 1;
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2022-03-19 01:43:33 +01:00
|
|
|
border-color: var(--color-primary-default);
|
2021-10-13 19:41:24 +02:00
|
|
|
z-index: 1;
|
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
2022-03-10 17:33:53 +01:00
|
|
|
.progressbar li.complete + li::after {
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-primary-default);
|
2021-07-08 02:10:12 +02:00
|
|
|
z-index: -1;
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-primary-default);
|
2021-10-13 19:41:24 +02:00
|
|
|
z-index: -1;
|
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li.complete::before {
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-primary-default);
|
|
|
|
color: var(--color-primary-inverse);
|
2021-10-13 19:41:24 +02:00
|
|
|
|
|
|
|
[dir='rtl'] & {
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-primary-default);
|
|
|
|
color: var(--color-primary-inverse);
|
2021-10-13 19:41:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.progressbar li.two-steps::after {
|
|
|
|
height: 2px;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-background-alternative);
|
2021-10-13 19:41:24 +02:00
|
|
|
top: 15px;
|
|
|
|
z-index: -1;
|
|
|
|
|
|
|
|
[dir='rtl'] & {
|
|
|
|
width: 180px;
|
|
|
|
height: 2px;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2022-03-19 01:43:33 +01:00
|
|
|
background-color: var(--color-background-alternative);
|
2021-10-13 19:41:24 +02:00
|
|
|
z-index: -1;
|
|
|
|
}
|
2021-07-08 02:10:12 +02:00
|
|
|
}
|