blob: 919799716287fe4dbc085b00608a18d31cc51db9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
$index-block-height: 40px;
header {
margin-bottom: 30px;
padding-bottom: 25px;
width: 100%;
background-color: pvar(--mainColorVeryLight);
}
.header-steps {
max-width: 800px;
display: flex;
justify-content: space-between;
margin: auto;
// Useful on small screens
padding: 0 20px;
}
.step-index {
display: flex;
justify-content: center;
align-items: center;
width: $index-block-height;
height: $index-block-height;
border-radius: $index-block-height;
border: 1px solid pvar(--mainColor);
margin-bottom: 10px;
font-size: 24px;
position: relative;
.completed-icon {
$size: 14px;
width: $size;
height: $size;
border-radius: $size;
background-color: pvar(--mainBackgroundColor);
position: absolute;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
// Better than border color for aliasing
box-shadow: 0 0 0 1px var(--mainColor);
overflow: hidden;
my-global-icon {
@include apply-svg-color(pvar(--mainColor));
display: flex;
width: 12px;
height: 12px;
}
}
}
.step-label {
width: max-content;
font-size: 18px;
}
.step-info {
color: pvar(--mainColor);
display: flex;
flex-direction: column;
align-items: center;
width: $index-block-height;
opacity: 0.5;
cursor: default;
&.c-hand {
cursor: pointer;
}
&.active,
&.completed {
.step-index {
background-color: pvar(--mainColor);
color: pvar(--mainBackgroundColor);
}
.step-label {
color: pvar(--mainColor);
}
}
&.active {
opacity: 1;
}
}
.connector {
flex: auto;
margin: math.div($index-block-height, 2) 10px 0 10px;
height: 2px;
background-color: pvar(--mainColor);
opacity: 0.3;
}
@media screen and (min-width: $small-view) {
.margin-content {
max-width: 1000px;
margin: auto;
}
}
@media screen and (max-width: $small-view) {
.step-label {
width: auto;
text-align: center;
}
}
|