]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use 'sass:math'; |
2 | @use '_variables' as *; | |
3 | @use '_mixins' as *; | |
1d5342ab | 4 | |
6f03f944 | 5 | $index-block-height: 40px; |
1d5342ab | 6 | |
6f03f944 | 7 | header { |
4c8a0991 C |
8 | margin-bottom: 30px; |
9 | padding-bottom: 25px; | |
6f03f944 C |
10 | width: 100%; |
11 | background-color: pvar(--mainColorVeryLight); | |
40360c17 K |
12 | } |
13 | ||
6f03f944 C |
14 | .header-steps { |
15 | max-width: 800px; | |
1d5342ab C |
16 | display: flex; |
17 | justify-content: space-between; | |
6f03f944 C |
18 | margin: auto; |
19 | ||
20 | // Useful on small screens | |
21 | padding: 0 20px; | |
22 | } | |
1d5342ab | 23 | |
6f03f944 C |
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 { | |
9f4109e2 C |
37 | $size: 14px; |
38 | ||
39 | width: $size; | |
40 | height: $size; | |
41 | border-radius: $size; | |
6f03f944 C |
42 | background-color: pvar(--mainBackgroundColor); |
43 | position: absolute; | |
44 | bottom: 0; | |
45 | right: 0; | |
1d5342ab | 46 | display: flex; |
6f03f944 | 47 | justify-content: center; |
1d5342ab | 48 | align-items: center; |
9f4109e2 C |
49 | // Better than border color for aliasing |
50 | box-shadow: 0 0 0 1px var(--mainColor); | |
51 | overflow: hidden; | |
6f03f944 C |
52 | |
53 | my-global-icon { | |
54 | @include apply-svg-color(pvar(--mainColor)); | |
1d5342ab | 55 | |
6f03f944 C |
56 | display: flex; |
57 | width: 12px; | |
58 | height: 12px; | |
40360c17 | 59 | } |
6f03f944 C |
60 | } |
61 | } | |
40360c17 | 62 | |
6f03f944 C |
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; | |
6f03f944 C |
75 | |
76 | &.active, | |
77 | &.completed { | |
1d5342ab | 78 | .step-index { |
6f03f944 C |
79 | background-color: pvar(--mainColor); |
80 | color: pvar(--mainBackgroundColor); | |
1d5342ab C |
81 | } |
82 | ||
83 | .step-label { | |
6f03f944 | 84 | color: pvar(--mainColor); |
1d5342ab | 85 | } |
6f03f944 | 86 | } |
1d5342ab | 87 | |
6f03f944 C |
88 | &.active { |
89 | opacity: 1; | |
90 | } | |
91 | } | |
1d5342ab | 92 | |
6f03f944 C |
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; | |
e10c936b | 104 | margin: auto; |
1d5342ab | 105 | } |
6f03f944 | 106 | } |
1d5342ab | 107 | |
6f03f944 C |
108 | @media screen and (max-width: $small-view) { |
109 | .step-label { | |
110 | width: auto; | |
111 | text-align: center; | |
1d5342ab C |
112 | } |
113 | } |