]>
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; | |
75 | cursor: default; | |
76 | ||
77 | &.c-hand { | |
78 | cursor: pointer; | |
79 | } | |
80 | ||
81 | &.active, | |
82 | &.completed { | |
1d5342ab | 83 | .step-index { |
6f03f944 C |
84 | background-color: pvar(--mainColor); |
85 | color: pvar(--mainBackgroundColor); | |
1d5342ab C |
86 | } |
87 | ||
88 | .step-label { | |
6f03f944 | 89 | color: pvar(--mainColor); |
1d5342ab | 90 | } |
6f03f944 | 91 | } |
1d5342ab | 92 | |
6f03f944 C |
93 | &.active { |
94 | opacity: 1; | |
95 | } | |
96 | } | |
1d5342ab | 97 | |
6f03f944 C |
98 | .connector { |
99 | flex: auto; | |
100 | margin: math.div($index-block-height, 2) 10px 0 10px; | |
101 | height: 2px; | |
102 | background-color: pvar(--mainColor); | |
103 | opacity: 0.3; | |
104 | } | |
105 | ||
106 | @media screen and (min-width: $small-view) { | |
107 | .margin-content { | |
108 | max-width: 1000px; | |
e10c936b | 109 | margin: auto; |
1d5342ab | 110 | } |
6f03f944 | 111 | } |
1d5342ab | 112 | |
6f03f944 C |
113 | @media screen and (max-width: $small-view) { |
114 | .step-label { | |
115 | width: auto; | |
116 | text-align: center; | |
1d5342ab C |
117 | } |
118 | } |