@worksafevictoria/wcl7.5 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,269 @@
1
+ @import './includes.scss';
2
+
3
+ .app-header {
4
+ &.isMobile {
5
+ padding: 0;
6
+
7
+ .app-header {
8
+ &__wrap {
9
+ border-radius: 0;
10
+
11
+ nav {
12
+ width: 100%;
13
+ height: 100%;
14
+ position: fixed;
15
+ top: 90px;
16
+ left: 0;
17
+ right: 0;
18
+ background: $app-menu-black;
19
+ overflow-y: scroll;
20
+
21
+ ul {
22
+ float: none;
23
+
24
+ li {
25
+ display: inline-block;
26
+ height: 62px;
27
+ width: 100%;
28
+ margin: 0;
29
+
30
+ a {
31
+ padding: 20px 5px;
32
+ height: 100%;
33
+ color: $app-menu-white;
34
+ display: block;
35
+ border-bottom: 1px solid $app-menu-border-color;
36
+ font-size: 16px;
37
+ font-weight: normal !important;
38
+ svg {
39
+ float: right;
40
+ position: relative;
41
+ top: 0;
42
+ filter: invert(100%) sepia(100%) saturate(1%)
43
+ hue-rotate(137deg) brightness(103%) contrast(101%);
44
+ height: 16px;
45
+ width: 16px;
46
+ }
47
+
48
+ &:hover,
49
+ &:focus {
50
+ background: $app-header-active;
51
+ color: $app-menu-black;
52
+ border-bottom: none;
53
+ svg {
54
+ filter: invert(0%) sepia(12%) saturate(108%)
55
+ hue-rotate(344deg) brightness(94%) contrast(80%);
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ .nav-item {
62
+ .sub-nav-container,
63
+ .sub-nav {
64
+ display: none;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ &__mobile-menu-container {
71
+ display: table-cell;
72
+ vertical-align: middle;
73
+ text-align: left;
74
+
75
+ svg {
76
+ filter: invert(100%) sepia(5%) saturate(49%) hue-rotate(165deg)
77
+ brightness(119%) contrast(100%);
78
+ }
79
+
80
+ ul {
81
+ li {
82
+ > a {
83
+ display: inline-block;
84
+
85
+ svg {
86
+ width: 27px;
87
+ top: -2px;
88
+ position: relative;
89
+ }
90
+ span {
91
+ margin-right: 5px;
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ &__back-button-container {
99
+ position: absolute;
100
+ display: block;
101
+ left: 0;
102
+ top: 70px;
103
+ z-index: 1;
104
+ background: $app-menu-black;
105
+ right: 0;
106
+ padding: 15px 0;
107
+
108
+ button {
109
+ background: transparent;
110
+ border: none;
111
+ color: $app-menu-white;
112
+ font-size: 16px;
113
+ cursor: pointer;
114
+ position: relative;
115
+ @include fp('left', 16, 60, $start: 320, $end: 980);
116
+
117
+ svg {
118
+ margin-right: 12px;
119
+ margin-top: -4px;
120
+ filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(137deg)
121
+ brightness(103%) contrast(101%);
122
+ height: 16px;
123
+ width: 16px;
124
+ }
125
+ }
126
+ }
127
+
128
+ &__back-button {
129
+ background: transparent;
130
+ border: none;
131
+ color: $app-menu-white;
132
+ font-size: 16px;
133
+ cursor: pointer;
134
+ position: relative;
135
+ @include fp('left', 16, 60, $start: 320, $end: 980);
136
+
137
+ svg {
138
+ margin-right: 12px;
139
+ margin-top: -4px;
140
+ filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(137deg)
141
+ brightness(103%) contrast(101%);
142
+ height: 16px;
143
+ width: 16px;
144
+ }
145
+ }
146
+
147
+ &__nav-menu {
148
+ padding-top: 60px;
149
+ padding-bottom: 80px;
150
+ @include fp('padding-left', 16, 60, $start: 320, $end: 980);
151
+ @include fp('padding-right', 16, 60, $start: 320, $end: 980);
152
+
153
+ li.nav-item.isActiveParent {
154
+ .sub-nav-container {
155
+ display: block;
156
+ left: 0;
157
+ right: 0;
158
+ top: 90px;
159
+ bottom: 0;
160
+
161
+ &__wrap {
162
+ position: absolute;
163
+ max-width: 100%;
164
+ top: 0;
165
+ left: 0;
166
+ right: 0;
167
+ bottom: 0;
168
+ padding-top: 60px;
169
+ @include fp('padding-left', 16, 60, $start: 320, $end: 980);
170
+ @include fp('padding-right', 16, 60, $start: 320, $end: 980);
171
+
172
+ .selected-title {
173
+ width: 100%;
174
+ float: none;
175
+ text-align: left;
176
+ margin-top: 10px;
177
+ margin-bottom: 5px;
178
+ padding: 0;
179
+ top: 0;
180
+
181
+ span {
182
+ color: $app-header-active;
183
+ font-size: 18px !important;
184
+ }
185
+
186
+ a {
187
+ border-bottom: none;
188
+ padding-top: 5px;
189
+ padding-bottom: 5px;
190
+ &:hover,
191
+ &:focus {
192
+ background: inherit;
193
+ span {
194
+ color: $app-menu-white;
195
+ border-bottom: 3px solid transparent;
196
+ }
197
+ }
198
+ }
199
+ }
200
+ .selected-items {
201
+ width: 100%;
202
+ float: none;
203
+ padding: 0;
204
+
205
+ ul.sub-nav-group {
206
+ padding-bottom: 48px;
207
+ li.isActiveChild {
208
+ .sub-nav {
209
+ width: 100%;
210
+ height: 135vh;
211
+ float: none;
212
+ position: absolute;
213
+ text-align: left;
214
+ top: 0;
215
+ left: 0;
216
+ right: 0;
217
+ bottom: 0;
218
+ padding: 0;
219
+
220
+ &__wrap {
221
+ padding-top: 60px;
222
+ @include fp(
223
+ 'padding-left',
224
+ 32,
225
+ 60,
226
+ $start: 540,
227
+ $end: 980
228
+ );
229
+ @include fp(
230
+ 'padding-right',
231
+ 32,
232
+ 60,
233
+ $start: 540,
234
+ $end: 980
235
+ );
236
+
237
+ .selected-title {
238
+ a {
239
+ padding-top: 20px;
240
+ padding-bottom: 10px;
241
+ border-bottom: none;
242
+
243
+ span {
244
+ color: $app-header-active;
245
+
246
+ &:hover,
247
+ &:focus {
248
+ color: $app-menu-white;
249
+ }
250
+ }
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+
266
+ .mobile-close {
267
+ top: 0px !important;
268
+ }
269
+