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