@ongov/ontario-design-system-complete-styles 6.0.0-alpha.4 → 6.0.0-alpha.5
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.
- package/dist/styles/components/ontario-header/ontario-application-header.scss +102 -487
- package/dist/styles/components/ontario-header/ontario-header.scss +123 -319
- package/dist/styles/components/ontario-header/service-ontario-header.scss +17 -14
- package/dist/styles/components/ontario-header-overflow-menu/ontario-header-overflow-menu.scss +103 -0
- package/dist/styles/scss/6-components/_all.component.scss +4 -3
- package/dist/styles/styles/header.scss +103 -0
- package/package.json +4 -4
|
@@ -15,20 +15,21 @@
|
|
|
15
15
|
@use 'pkg:@ongov/ontario-design-system-global-styles/dist/styles/scss/7-overrides/_visibility.overrides.scss';
|
|
16
16
|
|
|
17
17
|
@use '../../styles/text-inputs.scss';
|
|
18
|
+
@use '../../styles/header.scss';
|
|
18
19
|
|
|
19
20
|
$navigation-link-bg--hover: #e5e5e5;
|
|
20
|
-
$
|
|
21
|
-
|
|
22
|
-
$
|
|
23
|
-
|
|
21
|
+
$application-subheader-heading-padding-top-bottom: globalFunctions.px-to-rem(6);
|
|
22
|
+
$application-subheader-heading-max-width: 65%;
|
|
23
|
+
$application-header-logo-width: 100px;
|
|
24
|
+
$application-header-logo-height: 25px;
|
|
25
|
+
$application-header-lang-toggle-font-size: globalFunctions.px-to-rem(16);
|
|
26
|
+
$application-header-lang-toggle-line-height: globalFunctions.px-to-rem(22);
|
|
27
|
+
$menu-button-icon-margin-right: 6px;
|
|
28
|
+
$border-width-2: 2px;
|
|
29
|
+
|
|
30
|
+
/* Ontario Application Header */
|
|
24
31
|
.ontario-application-header {
|
|
25
|
-
|
|
26
|
-
align-items: center;
|
|
27
|
-
background-color: colours.$ontario-colour-black;
|
|
28
|
-
color: colours.$ontario-colour-white;
|
|
29
|
-
height: 3.125rem !important;
|
|
30
|
-
position: relative;
|
|
31
|
-
z-index: calc(zIndex.$ontario-z-index-above-high + 1);
|
|
32
|
+
@extend %ontario-application-header;
|
|
32
33
|
|
|
33
34
|
> .ontario-row {
|
|
34
35
|
display: flex;
|
|
@@ -38,198 +39,66 @@ $ontario-application-header-menu-button-icon--margin-right: 6px;
|
|
|
38
39
|
|
|
39
40
|
.ontario-application-header-container {
|
|
40
41
|
position: relative;
|
|
41
|
-
width:
|
|
42
|
+
width: globalVariables.$full-width;
|
|
43
|
+
z-index: zIndex.$ontario-z-index-above-high;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
/* Header Buttons */
|
|
47
|
+
.ontario-header-button {
|
|
48
|
+
@extend %ontario-header-button;
|
|
49
|
+
border: $border-width-2 solid colours.$ontario-colour-white;
|
|
50
|
+
padding: spacing.$spacing-2 spacing.$spacing-4;
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
&:
|
|
52
|
-
|
|
52
|
+
&:hover,
|
|
53
|
+
&:focus {
|
|
54
|
+
@extend %ontario-focus;
|
|
55
|
+
background-color: colours.$ontario-greyscale-70;
|
|
56
|
+
color: colours.$ontario-colour-white;
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
.ontario-header-button--with-outline {
|
|
57
|
-
|
|
58
|
-
margin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;
|
|
59
|
-
padding: 0.375rem spacing.$spacing-4;
|
|
61
|
+
@extend %ontario-header-button--with-outline;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
.ontario-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ontario-header-button--closed {
|
|
68
|
-
&:focus {
|
|
69
|
-
box-shadow: none;
|
|
70
|
-
outline: none;
|
|
71
|
-
transition: none;
|
|
64
|
+
.ontario-header-button--without-outline {
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: colours.$ontario-greyscale-70;
|
|
72
67
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.ontario-application-header__logo,
|
|
76
|
-
.ontario-application-header__logo a,
|
|
77
|
-
.ontario-application-header__lang-toggle,
|
|
78
|
-
.ontario-application-subheader__container,
|
|
79
|
-
.ontario-application-subheader__menu-container,
|
|
80
|
-
.ontario-application-subheader__menu {
|
|
81
|
-
display: flex;
|
|
82
|
-
align-items: center;
|
|
83
|
-
outline: none;
|
|
84
|
-
}
|
|
85
68
|
|
|
86
|
-
.ontario-application-header__logo a {
|
|
87
69
|
&:focus {
|
|
88
70
|
box-shadow: focusPlaceholders.$ontario-focus-box-shadow;
|
|
71
|
+
outline: 4px solid transparent;
|
|
89
72
|
transition: all 0.1s ease-in-out;
|
|
90
73
|
}
|
|
91
74
|
}
|
|
92
75
|
|
|
93
|
-
|
|
94
|
-
.ontario-application-header__logo img {
|
|
95
|
-
width: 100px;
|
|
96
|
-
height: 25px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.ontario-application-header__lang-toggle {
|
|
100
|
-
justify-content: flex-end;
|
|
101
|
-
|
|
102
|
-
a {
|
|
103
|
-
font-size: globalFunctions.px-to-rem(16);
|
|
104
|
-
line-height: globalFunctions.px-to-rem(22);
|
|
105
|
-
height: auto;
|
|
106
|
-
outline: none;
|
|
107
|
-
padding: spacing.$spacing-2 spacing.$spacing-3;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* Ontario application subheader styles */
|
|
76
|
+
/* Subheader */
|
|
112
77
|
.ontario-application-subheader {
|
|
113
78
|
padding: (spacing.$spacing-2 + spacing.$spacing-3) 0;
|
|
114
79
|
background-color: darken(colours.$ontario-colour-white, 75);
|
|
115
|
-
overflow: visible;
|
|
116
80
|
position: relative;
|
|
117
|
-
z-index:
|
|
81
|
+
z-index: zIndex.$ontario-z-index-above-high;
|
|
118
82
|
|
|
119
83
|
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
120
84
|
z-index: zIndex.$ontario-z-index-neutral;
|
|
121
85
|
}
|
|
122
86
|
|
|
123
|
-
|
|
124
|
-
position: relative;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.ontario-application-header-container {
|
|
129
|
-
position: relative;
|
|
130
|
-
z-index: calc(zIndex.$ontario-z-index-above-high + 1);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ontario-application-header > .ontario-row {
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.ontario-application-subheader .ontario-header-button {
|
|
139
|
-
visibility: visible;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ontario-application-subheader .ontario-header-button,
|
|
143
|
-
.ontario-application-navigation .ontario-header-button {
|
|
144
|
-
background-color: colours.$ontario-greyscale-70;
|
|
145
|
-
|
|
146
|
-
&:hover {
|
|
147
|
-
background-color: colours.$ontario-greyscale-60;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&:active {
|
|
151
|
-
background-color: colours.$ontario-colour-black;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.ontario-header-button--without-outline {
|
|
156
|
-
&:hover {
|
|
87
|
+
.ontario-header-button {
|
|
157
88
|
background-color: colours.$ontario-greyscale-70;
|
|
158
|
-
|
|
89
|
+
visibility: visible;
|
|
159
90
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
outline: 4px solid transparent;
|
|
163
|
-
transition: all 0.1s ease-in-out;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.ontario-application-subheader__heading {
|
|
168
|
-
padding: 0.375rem spacing.$spacing-0;
|
|
169
|
-
@extend %h4-styles;
|
|
170
|
-
margin-bottom: spacing.$spacing-0;
|
|
171
|
-
max-width: 65%;
|
|
172
|
-
|
|
173
|
-
a {
|
|
174
|
-
color: colours.$ontario-colour-white;
|
|
175
|
-
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
176
|
-
text-decoration: none;
|
|
177
|
-
|
|
178
|
-
&:focus {
|
|
179
|
-
box-shadow: focusPlaceholders.$ontario-focus-box-shadow;
|
|
180
|
-
transition: all 0.1s ease-in-out;
|
|
91
|
+
&:hover {
|
|
92
|
+
background-color: colours.$ontario-greyscale-60;
|
|
181
93
|
}
|
|
182
94
|
|
|
183
|
-
&:
|
|
184
|
-
|
|
185
|
-
&:visited {
|
|
186
|
-
color: colours.$ontario-colour-white;
|
|
187
|
-
text-decoration: underline;
|
|
95
|
+
&:active {
|
|
96
|
+
background-color: colours.$ontario-colour-black;
|
|
188
97
|
}
|
|
189
98
|
}
|
|
190
99
|
}
|
|
191
100
|
|
|
192
|
-
.ontario-application-subheader .ontario-header-button {
|
|
193
|
-
visibility: visible;
|
|
194
|
-
background-color: colours.$ontario-greyscale-70;
|
|
195
|
-
|
|
196
|
-
&:hover {
|
|
197
|
-
background-color: colours.$ontario-greyscale-60;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
&:active {
|
|
201
|
-
background-color: colours.$ontario-colour-black;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.ontario-header__menu-toggler {
|
|
206
|
-
span {
|
|
207
|
-
display: flex;
|
|
208
|
-
|
|
209
|
-
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
210
|
-
&:last-of-type {
|
|
211
|
-
display: none;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
svg {
|
|
217
|
-
margin-right: $ontario-application-header-menu-button-icon--margin-right;
|
|
218
|
-
|
|
219
|
-
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
220
|
-
margin-right: spacing.$spacing-0;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.ontario-application-subheader__container {
|
|
226
|
-
align-items: center;
|
|
227
|
-
justify-content: space-between;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
101
|
.ontario-application-subheader__menu {
|
|
231
|
-
display: flex;
|
|
232
|
-
align-items: center;
|
|
233
102
|
list-style: none;
|
|
234
103
|
margin: spacing.$spacing-0;
|
|
235
104
|
padding-left: spacing.$spacing-0;
|
|
@@ -278,363 +147,109 @@ $ontario-application-header-menu-button-icon--margin-right: 6px;
|
|
|
278
147
|
}
|
|
279
148
|
}
|
|
280
149
|
|
|
281
|
-
.ontario-application-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
286
|
-
position: relative;
|
|
287
|
-
max-width: $navigation-max-width;
|
|
288
|
-
width: auto;
|
|
289
|
-
margin: spacing.$spacing-0 auto;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.ontario-application-navigation .ontario-header-button {
|
|
294
|
-
visibility: hidden;
|
|
295
|
-
position: absolute;
|
|
296
|
-
top: (-(spacing.$spacing-9) + -(spacing.$spacing-1));
|
|
297
|
-
right: spacing.$spacing-4;
|
|
298
|
-
z-index: calc(zIndex.$ontario-z-index-above-high + 2);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.ontario-application-navigation__container {
|
|
302
|
-
background: colours.$ontario-colour-white;
|
|
303
|
-
position: absolute;
|
|
304
|
-
top: 0;
|
|
305
|
-
width: 100%;
|
|
306
|
-
z-index: zIndex.$ontario-z-index-above-high;
|
|
307
|
-
|
|
308
|
-
@media screen and (min-width: breakpoints.$small-breakpoint) {
|
|
309
|
-
background: colours.$ontario-colour-white;
|
|
310
|
-
position: absolute;
|
|
311
|
-
z-index: zIndex.$ontario-z-index-above-high;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
315
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
316
|
-
border-radius: globalVariables.$global-radius;
|
|
317
|
-
position: absolute;
|
|
318
|
-
right: spacing.$spacing-3;
|
|
319
|
-
top: -0.6rem;
|
|
320
|
-
min-width: 290px;
|
|
321
|
-
max-width: 30%;
|
|
322
|
-
z-index: calc(zIndex.$ontario-z-index-above-medium + 1);
|
|
323
|
-
transition: none !important;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.ontario-application-navigation ul {
|
|
328
|
-
list-style: none;
|
|
329
|
-
padding: spacing.$spacing-2 spacing.$spacing-0;
|
|
330
|
-
margin: spacing.$spacing-0;
|
|
331
|
-
border-bottom: 1px solid colours.$ontario-greyscale-20;
|
|
332
|
-
|
|
333
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
334
|
-
border-bottom: none;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
.ontario-application-navigation li {
|
|
339
|
-
border-top: 1px solid colours.$ontario-greyscale-20;
|
|
340
|
-
padding: spacing.$spacing-0;
|
|
150
|
+
.ontario-application-subheader__heading {
|
|
151
|
+
padding: $application-subheader-heading-padding-top-bottom spacing.$spacing-0;
|
|
152
|
+
@extend %h4-styles;
|
|
341
153
|
margin-bottom: spacing.$spacing-0;
|
|
154
|
+
max-width: $application-subheader-heading-max-width;
|
|
342
155
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
.ontario-application-navigation a {
|
|
349
|
-
color: colours.$ontario-colour-black;
|
|
350
|
-
display: block;
|
|
351
|
-
font-size: 1.125rem;
|
|
352
|
-
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
353
|
-
font-family: fonts.$ontario-font-open-sans;
|
|
354
|
-
text-decoration: none;
|
|
355
|
-
padding: calc(spacing.$spacing-3 - math.div(spacing.$spacing-1, 3.25)) spacing.$spacing-5;
|
|
356
|
-
|
|
357
|
-
&:hover {
|
|
358
|
-
text-decoration: underline;
|
|
359
|
-
background-color: $navigation-link-bg--hover;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&:active {
|
|
363
|
-
text-decoration: underline;
|
|
364
|
-
background-color: colours.$ontario-greyscale-20;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
&:focus,
|
|
368
|
-
&:active {
|
|
369
|
-
@extend %ontario-focus;
|
|
370
|
-
box-shadow: focusPlaceholders.$ontario-focus-box-shadow inset;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
&.ontario-link--active {
|
|
374
|
-
border-left: 6px solid colours.$ontario-colour-black;
|
|
375
|
-
background-color: colours.$ontario-greyscale-5;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.ontario-navigation--open {
|
|
380
|
-
visibility: visible;
|
|
381
|
-
transform: translateY(0);
|
|
382
|
-
transition: transform 0.4s ease-in-out;
|
|
383
|
-
|
|
384
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
385
|
-
z-index: calc(zIndex.$ontario-z-index-above-high + 1);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.ontario-navigation--closed {
|
|
390
|
-
background: colours.$ontario-colour-white;
|
|
391
|
-
position: absolute;
|
|
392
|
-
transform: translateY(-100%);
|
|
393
|
-
transition:
|
|
394
|
-
transform 0.3s ease-in-out,
|
|
395
|
-
visibility 0.1s ease;
|
|
396
|
-
width: 100%;
|
|
397
|
-
visibility: hidden;
|
|
398
|
-
z-index: zIndex.$ontario-z-index-above-high;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.ontario-application-navigation.ontario-navigation--open .ontario-application-navigation__container {
|
|
402
|
-
visibility: visible;
|
|
403
|
-
transform: translateY(0);
|
|
404
|
-
transition: transform 0.4s ease-in-out;
|
|
405
|
-
|
|
406
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
407
|
-
transition: none;
|
|
408
|
-
display: block;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.ontario-overlay {
|
|
413
|
-
position: fixed;
|
|
414
|
-
top: 0;
|
|
415
|
-
left: 0;
|
|
416
|
-
background: rgba(0, 0, 0, 0.6);
|
|
417
|
-
width: 100%;
|
|
418
|
-
height: 100%;
|
|
419
|
-
z-index: zIndex.$ontario-z-index-above-medium;
|
|
420
|
-
}
|
|
156
|
+
a {
|
|
157
|
+
color: colours.$ontario-colour-white;
|
|
158
|
+
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
159
|
+
text-decoration: none;
|
|
421
160
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
}
|
|
161
|
+
&:focus {
|
|
162
|
+
@extend %ontario-focus;
|
|
163
|
+
}
|
|
426
164
|
|
|
427
|
-
|
|
428
|
-
|
|
165
|
+
&:hover,
|
|
166
|
+
&:active,
|
|
167
|
+
&:visited {
|
|
168
|
+
color: colours.$ontario-colour-white;
|
|
169
|
+
text-decoration: underline;
|
|
170
|
+
}
|
|
429
171
|
}
|
|
430
172
|
}
|
|
431
173
|
|
|
432
|
-
.ontario-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
174
|
+
.ontario-application-subheader__container {
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: space-between;
|
|
436
177
|
}
|
|
437
178
|
|
|
438
|
-
/*
|
|
439
|
-
.ontario-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
color: colours.$ontario-colour-white;
|
|
446
|
-
cursor: pointer;
|
|
447
|
-
|
|
179
|
+
/* Logo */
|
|
180
|
+
.ontario-application-header__logo,
|
|
181
|
+
.ontario-application-header__logo a,
|
|
182
|
+
.ontario-application-header__lang-toggle,
|
|
183
|
+
.ontario-application-subheader__container,
|
|
184
|
+
.ontario-application-subheader__menu-container,
|
|
185
|
+
.ontario-application-subheader__menu {
|
|
448
186
|
display: flex;
|
|
449
187
|
align-items: center;
|
|
450
|
-
|
|
451
|
-
font-size: 1.125rem;
|
|
452
|
-
font-weight: fontWeights.$ontario-font-weights-semi-bold;
|
|
453
|
-
font-family: fonts.$ontario-font-open-sans;
|
|
454
|
-
height: globalVariables.$standard-input-height;
|
|
455
|
-
line-height: math.div(14, 9);
|
|
456
|
-
text-align: center;
|
|
457
|
-
text-decoration: none;
|
|
458
|
-
|
|
459
|
-
&:focus {
|
|
460
|
-
@extend %ontario-focus;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
&:hover,
|
|
464
|
-
&:focus,
|
|
465
|
-
&:visited {
|
|
466
|
-
color: colours.$ontario-colour-white;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
.ontario-header-button--with-outline,
|
|
471
|
-
.ontario-header-button--without-outline {
|
|
472
|
-
background-color: colours.$ontario-colour-black;
|
|
473
|
-
color: colours.$ontario-colour-white;
|
|
474
|
-
|
|
475
|
-
&:hover {
|
|
476
|
-
background-color: colours.$ontario-greyscale-70;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
&:active {
|
|
480
|
-
background-color: colours.$ontario-greyscale-60;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
&:focus {
|
|
484
|
-
background-color: colours.$ontario-greyscale-70;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.ontario-header-button--with-outline {
|
|
489
|
-
border: 2px solid colours.$ontario-colour-white;
|
|
490
|
-
margin: spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-0 spacing.$spacing-4;
|
|
491
|
-
padding: math.div(spacing.$spacing-3, 2) spacing.$spacing-4;
|
|
492
|
-
|
|
493
|
-
&:hover {
|
|
494
|
-
border: 2px solid colours.$ontario-colour-white;
|
|
495
|
-
color: colours.$ontario-colour-white;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
&:focus {
|
|
499
|
-
background-color: colours.$ontario-greyscale-70;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
503
|
-
padding: math.div(spacing.$spacing-3, 2);
|
|
504
|
-
}
|
|
188
|
+
outline: none;
|
|
505
189
|
}
|
|
506
190
|
|
|
507
|
-
.ontario-
|
|
508
|
-
padding: math.div(spacing.$spacing-3, 2) spacing.$spacing-4;
|
|
509
|
-
|
|
510
|
-
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
511
|
-
padding-left: spacing.$spacing-2;
|
|
512
|
-
padding-right: spacing.$spacing-2;
|
|
513
|
-
}
|
|
514
|
-
|
|
191
|
+
.ontario-application-header__logo {
|
|
515
192
|
span {
|
|
516
193
|
display: flex;
|
|
517
194
|
|
|
518
195
|
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
519
|
-
|
|
196
|
+
&:last-of-type {
|
|
197
|
+
display: none;
|
|
198
|
+
}
|
|
520
199
|
}
|
|
521
200
|
}
|
|
522
|
-
|
|
523
201
|
svg {
|
|
524
|
-
margin-right:
|
|
202
|
+
margin-right: $menu-button-icon-margin-right;
|
|
525
203
|
|
|
526
204
|
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
527
205
|
margin-right: spacing.$spacing-0;
|
|
528
206
|
}
|
|
529
207
|
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.ontario-application-navigation__container {
|
|
533
|
-
background: colours.$ontario-colour-white;
|
|
534
|
-
position: absolute;
|
|
535
|
-
transform: translateY(-100%);
|
|
536
|
-
transition:
|
|
537
|
-
transform 0.3s ease-in-out,
|
|
538
|
-
visibility 0.1s ease;
|
|
539
|
-
width: 100%;
|
|
540
|
-
visibility: hidden;
|
|
541
|
-
z-index: zIndex.$ontario-z-index-above-high;
|
|
542
|
-
|
|
543
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
544
|
-
box-shadow: 0 globalVariables.$global-radius 12px rgba(0, 0, 0, 0.3);
|
|
545
|
-
border-radius: globalVariables.$global-radius;
|
|
546
|
-
display: none;
|
|
547
|
-
position: absolute;
|
|
548
|
-
right: spacing.$spacing-4;
|
|
549
|
-
top: calc(100% - #{spacing.$spacing-2});
|
|
550
|
-
min-width: 290px; // this value is to control the min-width size the dropdown navigation list can be
|
|
551
|
-
max-width: 30%;
|
|
552
|
-
z-index: calc(zIndex.$ontario-z-index-above-high + 1);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.ontario-application-navigation.ontario-navigation--open .ontario-application-navigation__container {
|
|
557
|
-
background: colours.$ontario-colour-white;
|
|
558
|
-
visibility: visible;
|
|
559
|
-
transform: translateY(0);
|
|
560
|
-
transition: transform 0.4s ease-in-out;
|
|
561
|
-
|
|
562
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
563
|
-
transition: none;
|
|
564
|
-
display: block;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
208
|
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
.ontario-application-navigation ul {
|
|
574
|
-
list-style: none;
|
|
575
|
-
padding: spacing.$spacing-2 spacing.$spacing-0;
|
|
576
|
-
margin: spacing.$spacing-0;
|
|
577
|
-
border-bottom: 1px solid colours.$ontario-greyscale-20;
|
|
578
|
-
|
|
579
|
-
@media screen and (min-width: breakpoints.$medium-breakpoint) {
|
|
580
|
-
border-bottom: none;
|
|
209
|
+
a {
|
|
210
|
+
&:focus {
|
|
211
|
+
box-shadow: focusPlaceholders.$ontario-focus-box-shadow;
|
|
212
|
+
transition: all 0.1s ease-in-out;
|
|
213
|
+
}
|
|
581
214
|
}
|
|
582
215
|
}
|
|
583
216
|
|
|
584
|
-
.ontario-application-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
&:last-of-type {
|
|
590
|
-
border-bottom: 1px solid colours.$ontario-greyscale-20;
|
|
591
|
-
}
|
|
217
|
+
.ontario-application-header__logo svg,
|
|
218
|
+
.ontario-application-header__logo img {
|
|
219
|
+
width: $application-header-logo-width;
|
|
220
|
+
height: $application-header-logo-height;
|
|
592
221
|
}
|
|
593
222
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
display:
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
font-family: fonts.$ontario-font-open-sans;
|
|
600
|
-
text-decoration: none;
|
|
601
|
-
padding: (spacing.$spacing-3 - math.div(spacing.$spacing-1, 3.25)) spacing.$spacing-5;
|
|
602
|
-
|
|
603
|
-
&:hover {
|
|
604
|
-
text-decoration: underline;
|
|
605
|
-
background-color: $navigation-link-bg--hover;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
&:active {
|
|
609
|
-
text-decoration: underline;
|
|
610
|
-
background-color: colours.$ontario-greyscale-20;
|
|
611
|
-
}
|
|
223
|
+
/* Menu Toggler */
|
|
224
|
+
.ontario-header__menu-toggler {
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
padding: spacing.$spacing-2 spacing.$spacing-4;
|
|
612
228
|
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
box-shadow: focusPlaceholders.$ontario-focus-box-shadow inset;
|
|
229
|
+
@media screen and (max-width: breakpoints.$xsmall-breakpoint) {
|
|
230
|
+
padding-left: spacing.$spacing-2;
|
|
231
|
+
padding-right: spacing.$spacing-2;
|
|
617
232
|
}
|
|
618
233
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
background-color: colours.$ontario-greyscale-5;
|
|
234
|
+
svg {
|
|
235
|
+
margin-right: $menu-button-icon-margin-right;
|
|
622
236
|
}
|
|
623
237
|
}
|
|
624
238
|
|
|
625
|
-
/*
|
|
626
|
-
.ontario-overlay {
|
|
627
|
-
position: fixed;
|
|
628
|
-
top: 0;
|
|
629
|
-
left: 0;
|
|
630
|
-
background: rgba(0, 0, 0, 0.6);
|
|
631
|
-
width: 100%;
|
|
632
|
-
height: 100%;
|
|
633
|
-
z-index: zIndex.$ontario-z-index-above-medium;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
/* Ontario header helper styles */
|
|
239
|
+
/* Icon Container */
|
|
637
240
|
.ontario-header__icon-container {
|
|
638
241
|
display: flex;
|
|
639
242
|
align-items: center;
|
|
640
243
|
}
|
|
244
|
+
|
|
245
|
+
.ontario-application-header__lang-toggle {
|
|
246
|
+
justify-content: flex-end;
|
|
247
|
+
|
|
248
|
+
a {
|
|
249
|
+
font-size: $application-header-lang-toggle-font-size;
|
|
250
|
+
line-height: $application-header-lang-toggle-line-height;
|
|
251
|
+
height: auto;
|
|
252
|
+
outline: none;
|
|
253
|
+
padding: spacing.$spacing-2 spacing.$spacing-3;
|
|
254
|
+
}
|
|
255
|
+
}
|