@uoguelph/web-components 0.0.26 → 0.0.27
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/cjs/uofg-alert_6.cjs.entry.js +803 -198
- package/dist/collection/components/uofg-alert/uofg-alert.css +13 -27
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +2 -5
- package/dist/collection/components/uofg-footer/uofg-footer.css +39 -50
- package/dist/collection/components/uofg-footer/uofg-footer.js +19 -4
- package/dist/collection/components/uofg-header/uofg-header.css +55 -234
- package/dist/collection/components/uofg-header/uofg-header.js +25 -9
- package/dist/collection/components/uofg-menu/uofg-menu.js +1 -1
- package/dist/collection/components/uofg-modal/uofg-modal.css +45 -51
- package/dist/collection/components/uofg-modal/uofg-modal.js +41 -2
- package/dist/collection/utils/utils.js +9 -2
- package/dist/components/_commonjsHelpers.js +15 -0
- package/dist/components/font-awesome-icon.js +10 -0
- package/dist/components/index2.js +1 -81
- package/dist/components/uofg-alert.js +3 -2
- package/dist/components/uofg-back-to-top.js +3 -2
- package/dist/components/uofg-footer.js +569 -64
- package/dist/components/uofg-header.js +173 -60
- package/dist/components/uofg-menu2.js +1 -1
- package/dist/components/uofg-modal.js +44 -4
- package/dist/components/utils.js +10 -3
- package/dist/esm/uofg-alert_6.entry.js +803 -198
- package/dist/types/components/uofg-header/uofg-header.d.ts +11 -1
- package/dist/types/components/uofg-modal/uofg-modal.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +3 -2
- package/dist/uofg-web-components/p-d1e2ecf9.entry.js +1 -0
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/collection/components/uofg-footer/footer-links.js +0 -5
- package/dist/collection/components/uofg-footer/social-links.js +0 -5
- package/dist/collection/components/uofg-header/global-links.js +0 -2
- package/dist/collection/components/uofg-header/hello-you.js +0 -4
- package/dist/collection/components/uofg-header/page-specific.js +0 -15
- package/dist/collection/components/uofg-header/search.js +0 -4
- package/dist/collection/components/uofg-header/single-sign-on.js +0 -2
- package/dist/types/components/uofg-footer/footer-links.d.ts +0 -2
- package/dist/types/components/uofg-footer/social-links.d.ts +0 -2
- package/dist/types/components/uofg-header/global-links.d.ts +0 -2
- package/dist/types/components/uofg-header/hello-you.d.ts +0 -6
- package/dist/types/components/uofg-header/page-specific.d.ts +0 -17
- package/dist/types/components/uofg-header/search.d.ts +0 -2
- package/dist/types/components/uofg-header/single-sign-on.d.ts +0 -2
- package/dist/uofg-web-components/p-1976d7da.entry.js +0 -1
- /package/dist/collection/components/uofg-header/{logo-full-size.svg → logo-full.svg} +0 -0
- /package/dist/collection/components/uofg-header/{logo-reduced-size.svg → logo-reduced.svg} +0 -0
|
@@ -3,41 +3,41 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
* {
|
|
6
|
-
|
|
7
|
-
box-sizing: border-box;
|
|
6
|
+
box-sizing: border-box;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
button {
|
|
10
|
+
border: none;
|
|
11
|
+
background-color: transparent;
|
|
12
|
+
cursor: pointer;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
a {
|
|
16
|
-
display: -webkit-box;
|
|
17
|
-
display: -ms-flexbox;
|
|
18
|
-
display: flex;
|
|
19
|
-
-webkit-box-align: center;
|
|
20
|
-
-ms-flex-align: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
text-decoration: none;
|
|
23
16
|
color: inherit;
|
|
24
|
-
-
|
|
25
|
-
transition-property: color, background-color;
|
|
26
|
-
-webkit-transition-duration: 0.2s;
|
|
27
|
-
transition-duration: 0.2s;
|
|
28
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
29
|
-
transition-timing-function: ease-in-out;
|
|
17
|
+
text-decoration: none;
|
|
30
18
|
}
|
|
31
19
|
|
|
32
20
|
ul {
|
|
33
21
|
list-style: none;
|
|
34
|
-
margin: 0;
|
|
35
22
|
padding: 0;
|
|
23
|
+
margin: unset;
|
|
36
24
|
}
|
|
37
25
|
ul > li {
|
|
38
26
|
display: contents;
|
|
39
27
|
}
|
|
40
28
|
|
|
29
|
+
a {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
transition-property: color, background-color;
|
|
33
|
+
transition-duration: 0.2s;
|
|
34
|
+
transition-timing-function: ease-in-out;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
li {
|
|
38
|
+
display: contents;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
41
|
button {
|
|
42
42
|
border: none;
|
|
43
43
|
background: none;
|
|
@@ -48,44 +48,9 @@ button {
|
|
|
48
48
|
line-height: inherit;
|
|
49
49
|
word-spacing: inherit;
|
|
50
50
|
letter-spacing: inherit;
|
|
51
|
-
-webkit-transition-property: color, background-color;
|
|
52
51
|
transition-property: color, background-color;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
56
|
-
transition-timing-function: ease-in-out;
|
|
57
|
-
}
|
|
58
|
-
button[type=submit] {
|
|
59
|
-
display: -webkit-box;
|
|
60
|
-
display: -ms-flexbox;
|
|
61
|
-
display: flex;
|
|
62
|
-
-webkit-box-align: center;
|
|
63
|
-
-ms-flex-align: center;
|
|
64
|
-
align-items: center;
|
|
65
|
-
-webkit-box-pack: center;
|
|
66
|
-
-ms-flex-pack: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
background-color: #d50029;
|
|
69
|
-
color: #fff;
|
|
70
|
-
padding: 0.5rem;
|
|
71
|
-
font-size: inherit;
|
|
72
|
-
font-family: inherit;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
input[type=text],
|
|
76
|
-
input[type=password] {
|
|
77
|
-
background-color: #eff6f7;
|
|
78
|
-
border: 1px solid #69a3b9;
|
|
79
|
-
padding: 1rem;
|
|
80
|
-
color: #555555;
|
|
81
|
-
font-size: inherit;
|
|
82
|
-
font-family: inherit;
|
|
83
|
-
}
|
|
84
|
-
input[type=text]:focus-visible, input[type=text]:focus,
|
|
85
|
-
input[type=password]:focus-visible,
|
|
86
|
-
input[type=password]:focus {
|
|
87
|
-
outline: none;
|
|
88
|
-
background-color: #fffdf7;
|
|
52
|
+
transition-duration: 0.2s;
|
|
53
|
+
transition-timing-function: ease-in-out;
|
|
89
54
|
}
|
|
90
55
|
|
|
91
56
|
uofg-menu {
|
|
@@ -96,12 +61,8 @@ uofg-menu {
|
|
|
96
61
|
position: relative;
|
|
97
62
|
}
|
|
98
63
|
uofg-menu > [slot=button] {
|
|
99
|
-
display: -webkit-box;
|
|
100
|
-
display: -ms-flexbox;
|
|
101
64
|
display: flex;
|
|
102
|
-
-
|
|
103
|
-
-ms-flex-align: center;
|
|
104
|
-
align-items: center;
|
|
65
|
+
align-items: center;
|
|
105
66
|
gap: 0.5rem;
|
|
106
67
|
height: 100%;
|
|
107
68
|
padding: 0 1rem;
|
|
@@ -109,31 +70,20 @@ uofg-menu > [slot=button] {
|
|
|
109
70
|
uofg-menu > [slot=button] > svg {
|
|
110
71
|
height: 1em;
|
|
111
72
|
fill: currentColor;
|
|
112
|
-
-webkit-transition-property: -webkit-transform;
|
|
113
|
-
transition-property: -webkit-transform;
|
|
114
73
|
transition-property: transform;
|
|
115
|
-
transition-
|
|
116
|
-
-
|
|
117
|
-
transition-duration: 0.2s;
|
|
118
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
119
|
-
transition-timing-function: ease-in-out;
|
|
74
|
+
transition-duration: 0.2s;
|
|
75
|
+
transition-timing-function: ease-in-out;
|
|
120
76
|
}
|
|
121
77
|
uofg-menu > [slot=content] {
|
|
122
|
-
display: -webkit-box;
|
|
123
|
-
display: -ms-flexbox;
|
|
124
78
|
display: flex;
|
|
125
|
-
-
|
|
126
|
-
-webkit-box-direction: normal;
|
|
127
|
-
-ms-flex-direction: column;
|
|
128
|
-
flex-direction: column;
|
|
79
|
+
flex-direction: column;
|
|
129
80
|
position: absolute;
|
|
130
81
|
z-index: 1;
|
|
131
82
|
min-width: 20rem;
|
|
132
83
|
right: 0;
|
|
133
84
|
background-color: #fff;
|
|
134
85
|
color: #000;
|
|
135
|
-
|
|
136
|
-
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
|
|
86
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.2);
|
|
137
87
|
}
|
|
138
88
|
|
|
139
89
|
#uofg-header {
|
|
@@ -147,16 +97,10 @@ uofg-menu > [slot=content] {
|
|
|
147
97
|
#uofg-header-top-content-container,
|
|
148
98
|
#uofg-header-main-content-container,
|
|
149
99
|
#uofg-header-sub-content-container {
|
|
150
|
-
display: -webkit-box;
|
|
151
|
-
display: -ms-flexbox;
|
|
152
100
|
display: flex;
|
|
153
101
|
position: relative;
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
align-items: center;
|
|
157
|
-
-webkit-box-pack: end;
|
|
158
|
-
-ms-flex-pack: end;
|
|
159
|
-
justify-content: flex-end;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: flex-end;
|
|
160
104
|
width: 100%;
|
|
161
105
|
padding: 0 calc((100vw - 1500px) / 2);
|
|
162
106
|
}
|
|
@@ -168,12 +112,8 @@ uofg-menu > [slot=content] {
|
|
|
168
112
|
z-index: 3;
|
|
169
113
|
}
|
|
170
114
|
#uofg-header-top-content-container > ul {
|
|
171
|
-
display: -webkit-box;
|
|
172
|
-
display: -ms-flexbox;
|
|
173
115
|
display: flex;
|
|
174
|
-
-
|
|
175
|
-
-ms-flex-align: center;
|
|
176
|
-
align-items: center;
|
|
116
|
+
align-items: center;
|
|
177
117
|
height: 100%;
|
|
178
118
|
}
|
|
179
119
|
#uofg-header-top-content-container > ul > li > a {
|
|
@@ -197,9 +137,7 @@ uofg-menu > [slot=content] {
|
|
|
197
137
|
color: #000;
|
|
198
138
|
}
|
|
199
139
|
#uofg-header-top-content-container > uofg-menu > [slot=button][aria-expanded=true] > svg {
|
|
200
|
-
|
|
201
|
-
-ms-transform: rotate(180deg);
|
|
202
|
-
transform: rotate(180deg);
|
|
140
|
+
transform: rotate(180deg);
|
|
203
141
|
}
|
|
204
142
|
#uofg-header-top-content-container > uofg-menu > [slot=content] {
|
|
205
143
|
background-color: #ddd;
|
|
@@ -228,8 +166,6 @@ uofg-menu > [slot=content] {
|
|
|
228
166
|
}
|
|
229
167
|
|
|
230
168
|
#uofg-header-logo-container {
|
|
231
|
-
display: -webkit-box;
|
|
232
|
-
display: -ms-flexbox;
|
|
233
169
|
display: flex;
|
|
234
170
|
height: 100%;
|
|
235
171
|
margin-right: auto;
|
|
@@ -259,7 +195,6 @@ uofg-menu > [slot=content] {
|
|
|
259
195
|
height: 100%;
|
|
260
196
|
position: relative;
|
|
261
197
|
margin-left: 1rem;
|
|
262
|
-
-webkit-transition: opacity 0.2s ease-in-out;
|
|
263
198
|
transition: opacity 0.2s ease-in-out;
|
|
264
199
|
}
|
|
265
200
|
#uofg-header-logo > svg {
|
|
@@ -278,8 +213,6 @@ uofg-menu > [slot=content] {
|
|
|
278
213
|
|
|
279
214
|
#uofg-header-full-main-content,
|
|
280
215
|
#uofg-header-reduced-main-content {
|
|
281
|
-
display: -webkit-box;
|
|
282
|
-
display: -ms-flexbox;
|
|
283
216
|
display: flex;
|
|
284
217
|
}
|
|
285
218
|
#uofg-header-full-main-content svg,
|
|
@@ -289,34 +222,21 @@ uofg-menu > [slot=content] {
|
|
|
289
222
|
}
|
|
290
223
|
|
|
291
224
|
#uofg-header-full-main-content > ul {
|
|
292
|
-
display: -webkit-box;
|
|
293
|
-
display: -ms-flexbox;
|
|
294
225
|
display: flex;
|
|
295
|
-
-
|
|
296
|
-
-ms-flex-align: center;
|
|
297
|
-
align-items: center;
|
|
226
|
+
align-items: center;
|
|
298
227
|
}
|
|
299
228
|
#uofg-header-full-main-content > ul > li > a,
|
|
300
229
|
#uofg-header-full-main-content > a,
|
|
301
230
|
#uofg-header-full-main-content > uofg-menu > [slot=button] {
|
|
302
|
-
display: -webkit-box;
|
|
303
|
-
display: -ms-flexbox;
|
|
304
231
|
display: flex;
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
align-items: center;
|
|
308
|
-
-webkit-box-pack: center;
|
|
309
|
-
-ms-flex-pack: center;
|
|
310
|
-
justify-content: center;
|
|
232
|
+
align-items: center;
|
|
233
|
+
justify-content: center;
|
|
311
234
|
height: 100%;
|
|
312
235
|
padding: 0 1.5rem;
|
|
313
236
|
font-size: 1.8rem;
|
|
314
|
-
-webkit-transition-property: color, background-color;
|
|
315
237
|
transition-property: color, background-color;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
319
|
-
transition-timing-function: ease-in-out;
|
|
238
|
+
transition-duration: 0.2s;
|
|
239
|
+
transition-timing-function: ease-in-out;
|
|
320
240
|
}
|
|
321
241
|
#uofg-header-full-main-content > ul > li > a:hover, #uofg-header-full-main-content > ul > li > a:focus-visible,
|
|
322
242
|
#uofg-header-full-main-content > a:hover,
|
|
@@ -347,9 +267,7 @@ uofg-menu > [slot=content] {
|
|
|
347
267
|
|
|
348
268
|
#uofg-header-reduced-main-content > uofg-menu > [slot=button],
|
|
349
269
|
#uofg-header-reduced-main-content > a {
|
|
350
|
-
-
|
|
351
|
-
-ms-flex-pack: center;
|
|
352
|
-
justify-content: center;
|
|
270
|
+
justify-content: center;
|
|
353
271
|
padding: 0 1.5rem;
|
|
354
272
|
font-size: 2rem;
|
|
355
273
|
border-left: 1px solid rgba(255, 255, 255, 0.15);
|
|
@@ -386,8 +304,6 @@ uofg-menu > [slot=content] {
|
|
|
386
304
|
position: relative;
|
|
387
305
|
}
|
|
388
306
|
#uofg-header-main-menu uofg-menu > [slot=button] {
|
|
389
|
-
display: -webkit-box;
|
|
390
|
-
display: -ms-flexbox;
|
|
391
307
|
display: flex;
|
|
392
308
|
padding: 0.75rem;
|
|
393
309
|
height: auto;
|
|
@@ -402,25 +318,19 @@ uofg-menu > [slot=content] {
|
|
|
402
318
|
background-color: rgba(0, 0, 0, 0.1);
|
|
403
319
|
}
|
|
404
320
|
#uofg-header-main-menu uofg-menu > [slot=button][aria-expanded=true] > svg {
|
|
405
|
-
|
|
406
|
-
-ms-transform: rotate(180deg);
|
|
407
|
-
transform: rotate(180deg);
|
|
321
|
+
transform: rotate(180deg);
|
|
408
322
|
}
|
|
409
323
|
#uofg-header-main-menu uofg-menu > [slot=content] {
|
|
410
324
|
position: relative;
|
|
411
|
-
|
|
412
|
-
box-shadow: none;
|
|
325
|
+
box-shadow: none;
|
|
413
326
|
padding: 0;
|
|
414
327
|
}
|
|
415
328
|
#uofg-header-main-menu uofg-menu > [slot=content] > li > a {
|
|
416
329
|
padding: 0.75rem;
|
|
417
330
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
418
|
-
-webkit-transition-property: color, background-color;
|
|
419
331
|
transition-property: color, background-color;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
423
|
-
transition-timing-function: ease-in-out;
|
|
332
|
+
transition-duration: 0.2s;
|
|
333
|
+
transition-timing-function: ease-in-out;
|
|
424
334
|
}
|
|
425
335
|
#uofg-header-main-menu uofg-menu > [slot=content] > li > a:hover, #uofg-header-main-menu uofg-menu > [slot=content] > li > a:focus-visible {
|
|
426
336
|
background-color: rgba(0, 0, 0, 0.1);
|
|
@@ -439,71 +349,14 @@ uofg-menu > [slot=content] {
|
|
|
439
349
|
width: 100%;
|
|
440
350
|
color: inherit;
|
|
441
351
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
442
|
-
-webkit-transition-property: color, background-color;
|
|
443
352
|
transition-property: color, background-color;
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
447
|
-
transition-timing-function: ease-in-out;
|
|
353
|
+
transition-duration: 0.2s;
|
|
354
|
+
transition-timing-function: ease-in-out;
|
|
448
355
|
}
|
|
449
356
|
#uofg-header-main-menu ul > li > a:hover, #uofg-header-main-menu ul > li > a:focus-visible, #uofg-header-main-menu ul > li > a[aria-expanded=true] {
|
|
450
357
|
background-color: rgba(0, 0, 0, 0.1);
|
|
451
358
|
}
|
|
452
359
|
|
|
453
|
-
/*
|
|
454
|
-
.uofg-header-account-menu {
|
|
455
|
-
.uofg-header-single-sign-on {
|
|
456
|
-
display: flex;
|
|
457
|
-
flex-direction: column;
|
|
458
|
-
width: 100%;
|
|
459
|
-
gap: 1rem;
|
|
460
|
-
|
|
461
|
-
label {
|
|
462
|
-
display: flex;
|
|
463
|
-
flex-direction: column;
|
|
464
|
-
gap: 0.5rem;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
> input[type='text'],
|
|
468
|
-
> input[type='password'] {
|
|
469
|
-
height: 4rem;
|
|
470
|
-
width: 100%;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
> button[type='submit'] {
|
|
474
|
-
height: 4rem;
|
|
475
|
-
width: 100%;
|
|
476
|
-
margin-top: 1rem;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
> a {
|
|
480
|
-
color: #69a3b9;
|
|
481
|
-
text-decoration: underline;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
*/
|
|
486
|
-
.uofg-header-search-menu .uofg-header-search-bar {
|
|
487
|
-
display: -webkit-box;
|
|
488
|
-
display: -ms-flexbox;
|
|
489
|
-
display: flex;
|
|
490
|
-
-webkit-box-align: center;
|
|
491
|
-
-ms-flex-align: center;
|
|
492
|
-
align-items: center;
|
|
493
|
-
-webkit-box-pack: center;
|
|
494
|
-
-ms-flex-pack: center;
|
|
495
|
-
justify-content: center;
|
|
496
|
-
}
|
|
497
|
-
.uofg-header-search-menu .uofg-header-search-bar > input {
|
|
498
|
-
-webkit-box-flex: 1;
|
|
499
|
-
-ms-flex: 1;
|
|
500
|
-
flex: 1;
|
|
501
|
-
}
|
|
502
|
-
.uofg-header-search-menu .uofg-header-search-bar > button[type=submit] {
|
|
503
|
-
width: 4rem;
|
|
504
|
-
height: 4rem;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
360
|
#uofg-header-sub-content-container {
|
|
508
361
|
height: 4rem;
|
|
509
362
|
background-color: #ddd;
|
|
@@ -511,12 +364,8 @@ uofg-menu > [slot=content] {
|
|
|
511
364
|
z-index: 1;
|
|
512
365
|
}
|
|
513
366
|
#uofg-header-sub-content-container #uofg-header-page-title {
|
|
514
|
-
display: -webkit-box;
|
|
515
|
-
display: -ms-flexbox;
|
|
516
367
|
display: flex;
|
|
517
|
-
-
|
|
518
|
-
-ms-flex-align: center;
|
|
519
|
-
align-items: center;
|
|
368
|
+
align-items: center;
|
|
520
369
|
margin-right: auto;
|
|
521
370
|
padding: 0 1rem;
|
|
522
371
|
height: 100%;
|
|
@@ -543,27 +392,16 @@ uofg-menu > [slot=content] {
|
|
|
543
392
|
}
|
|
544
393
|
#uofg-header-sub-content-container uofg-menu > [slot=content] > li > a {
|
|
545
394
|
padding: 0.75rem;
|
|
546
|
-
-
|
|
547
|
-
-ms-flex-pack: start;
|
|
548
|
-
justify-content: flex-start;
|
|
395
|
+
justify-content: flex-start;
|
|
549
396
|
}
|
|
550
397
|
#uofg-header-sub-content-container a {
|
|
551
|
-
display: -webkit-box;
|
|
552
|
-
display: -ms-flexbox;
|
|
553
398
|
display: flex;
|
|
554
|
-
-
|
|
555
|
-
|
|
556
|
-
align-items: center;
|
|
557
|
-
-webkit-box-pack: center;
|
|
558
|
-
-ms-flex-pack: center;
|
|
559
|
-
justify-content: center;
|
|
399
|
+
align-items: center;
|
|
400
|
+
justify-content: center;
|
|
560
401
|
height: 100%;
|
|
561
|
-
-webkit-transition-property: color, background-color;
|
|
562
402
|
transition-property: color, background-color;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
-webkit-transition-timing-function: ease-in-out;
|
|
566
|
-
transition-timing-function: ease-in-out;
|
|
403
|
+
transition-duration: 0.2s;
|
|
404
|
+
transition-timing-function: ease-in-out;
|
|
567
405
|
}
|
|
568
406
|
#uofg-header-sub-content-container a:hover, #uofg-header-sub-content-container a:focus-visible {
|
|
569
407
|
background-color: #ffc72a;
|
|
@@ -583,26 +421,16 @@ uofg-menu > [slot=content] {
|
|
|
583
421
|
height: 100%;
|
|
584
422
|
}
|
|
585
423
|
#uofg-header-full-sub-content > ul {
|
|
586
|
-
display: -webkit-box;
|
|
587
|
-
display: -ms-flexbox;
|
|
588
424
|
display: flex;
|
|
589
|
-
-
|
|
590
|
-
-ms-flex-align: center;
|
|
591
|
-
align-items: center;
|
|
425
|
+
align-items: center;
|
|
592
426
|
}
|
|
593
427
|
#uofg-header-full-sub-content uofg-menu > [slot=button][aria-expanded=true] > svg {
|
|
594
|
-
|
|
595
|
-
-ms-transform: rotate(180deg);
|
|
596
|
-
transform: rotate(180deg);
|
|
428
|
+
transform: rotate(180deg);
|
|
597
429
|
}
|
|
598
430
|
#uofg-header-full-sub-content .uofg-header-page-specific {
|
|
599
|
-
display: -webkit-box;
|
|
600
|
-
display: -ms-flexbox;
|
|
601
431
|
display: flex;
|
|
602
432
|
height: 100%;
|
|
603
|
-
-
|
|
604
|
-
-ms-flex-align: center;
|
|
605
|
-
align-items: center;
|
|
433
|
+
align-items: center;
|
|
606
434
|
}
|
|
607
435
|
|
|
608
436
|
#uofg-header-reduced-sub-content > uofg-menu {
|
|
@@ -630,12 +458,8 @@ uofg-menu > [slot=content] {
|
|
|
630
458
|
height: auto;
|
|
631
459
|
padding: 1rem;
|
|
632
460
|
width: 100%;
|
|
633
|
-
-
|
|
634
|
-
|
|
635
|
-
align-items: flex-start;
|
|
636
|
-
-webkit-box-pack: start;
|
|
637
|
-
-ms-flex-pack: start;
|
|
638
|
-
justify-content: flex-start;
|
|
461
|
+
align-items: flex-start;
|
|
462
|
+
justify-content: flex-start;
|
|
639
463
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
640
464
|
}
|
|
641
465
|
#uofg-header-reduced-sub-content > uofg-menu > [slot=content] a:hover, #uofg-header-reduced-sub-content > uofg-menu > [slot=content] a:focus-visible {
|
|
@@ -658,13 +482,10 @@ uofg-menu > [slot=content] {
|
|
|
658
482
|
color: #000;
|
|
659
483
|
}
|
|
660
484
|
#uofg-header-reduced-sub-content > uofg-menu > [slot=content] uofg-menu > [slot=button][aria-expanded=true] > svg {
|
|
661
|
-
|
|
662
|
-
-ms-transform: rotate(180deg);
|
|
663
|
-
transform: rotate(180deg);
|
|
485
|
+
transform: rotate(180deg);
|
|
664
486
|
}
|
|
665
487
|
#uofg-header-reduced-sub-content > uofg-menu > [slot=content] uofg-menu > [slot=content] {
|
|
666
488
|
position: static;
|
|
667
489
|
background-color: rgba(0, 0, 0, 0.1);
|
|
668
|
-
|
|
669
|
-
box-shadow: none;
|
|
490
|
+
box-shadow: none;
|
|
670
491
|
}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { PageSpecific, } from "./page-specific";
|
|
3
2
|
import Decoration from "./decoration.svg";
|
|
4
|
-
import FullSizeLogo from "./logo-full
|
|
5
|
-
import ReducedSizeLogo from "./logo-reduced
|
|
6
|
-
import { GlobalLinks } from "./global-links";
|
|
3
|
+
import FullSizeLogo from "./logo-full.svg";
|
|
4
|
+
import ReducedSizeLogo from "./logo-reduced.svg";
|
|
7
5
|
import { FontAwesomeIcon } from "../../utils/font-awesome-icon";
|
|
8
|
-
import { faBars
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { faBars } from "@fortawesome/free-solid-svg-icons/faBars";
|
|
7
|
+
import { faRightToBracket } from "@fortawesome/free-solid-svg-icons/faRightToBracket";
|
|
8
|
+
import { faSearch } from "@fortawesome/free-solid-svg-icons/faSearch";
|
|
9
|
+
import { faCaretDown } from "@fortawesome/free-solid-svg-icons/faCaretDown";
|
|
10
|
+
const TopLinks = () => (h("ul", null, h("li", null, h("a", { href: "https://bbis.alumni.uoguelph.ca/BBIS_Cannon/give/uofg" }, "GIVE")), h("li", null, h("a", { href: "https://uoguelph.ca/apply" }, "APPLY")), h("li", null, h("a", { href: "https://news.uoguelph.ca/" }, "NEWS"))));
|
|
11
|
+
const HelloYouMenu = props => (h("uofg-menu", { class: "uofg-header-hello-you-menu", "auto-collapse": props.autoCollapse }, h("button", { slot: "button", "aria-label": "Hello, YOU! menu" }, h("span", null, "Hello, YOU!"), h(FontAwesomeIcon, { icon: faCaretDown })), h("ul", { slot: "content" }, h("li", null, h("a", { href: "https://uoguelph.ca/future-students" }, "Future Students")), h("li", null, h("a", { href: "https://uoguelph.ca/current-students" }, "Current Students")), h("li", null, h("a", { href: "https://uoguelph.ca/alumni-and-donors" }, "Alumni & Donors")), h("li", null, h("a", { href: "https://uoguelph.ca/staff-and-faculty" }, "Staff & Faculty")), h("li", null, h("a", { href: "https://uoguelph.ca/parents-and-visitors" }, "Parents & Visitors")), h("li", null, h("a", { href: "https://uoguelph.ca/employers-and-partners" }, "Employers & Partners")))));
|
|
12
|
+
const MainLinks = () => (h("ul", { class: "uofg-header-global-links" }, h("li", null, h("a", { href: "https://uoguelph.ca/about" }, "About")), h("li", null, h("a", { href: "https://uoguelph.ca/academics" }, "Academics")), h("li", null, h("a", { href: "https://uoguelph.ca/admissions" }, "Admissions")), h("li", null, h("a", { href: "https://uoguelph.ca/research" }, "Research")), h("li", null, h("a", { href: "https://uoguelph.ca/student-life" }, "Student Life"))));
|
|
13
|
+
const AccountLink = () => (h("a", { href: "https://uoguelph.ca/intranet", "aria-label": "University of Guelph Intranet" }, h(FontAwesomeIcon, { icon: faRightToBracket })));
|
|
14
|
+
const SearchLink = () => (h("a", { href: "https://uoguelph.ca/search", "aria-label": "Search University of Guelph" }, h(FontAwesomeIcon, { icon: faSearch })));
|
|
15
|
+
const PageSpecific = props => {
|
|
16
|
+
var _a;
|
|
17
|
+
return (h("ul", { class: "uofg-header-page-specific" }, (_a = props.content) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
18
|
+
if (!item) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
if ('text' in item) {
|
|
22
|
+
return (h("li", null, h("a", Object.assign({ href: item.href }, item.attributes), item.text)));
|
|
23
|
+
}
|
|
24
|
+
return (h("li", null, h("uofg-menu", { autoCollapse: props.autoCollapse }, h("button", { slot: "button" }, h("span", null, item.title), h(FontAwesomeIcon, { icon: faCaretDown })), h("ul", { slot: "content", role: "menu" }, item.links.map(link => (h("li", null, h("a", Object.assign({ href: link.href }, link.attributes), link.text))))))));
|
|
25
|
+
}).filter(Boolean)));
|
|
26
|
+
};
|
|
11
27
|
export class UofgHeader {
|
|
12
28
|
constructor() {
|
|
13
29
|
this.pageTitle = '';
|
|
@@ -55,8 +71,8 @@ export class UofgHeader {
|
|
|
55
71
|
});
|
|
56
72
|
}
|
|
57
73
|
render() {
|
|
58
|
-
return (h("header", { id: "uofg-header" }, this.isFullSize && (h("div", { id: "uofg-header-top-content-container" }, h(
|
|
59
|
-
(this.pageUrl ? (h("a", { id: "uofg-header-page-title", href: this.pageUrl }, this.pageTitle)) : (h("span", { id: "uofg-header-page-title" }, this.pageTitle))), this.isFullSize ? (h("div", { id: "uofg-header-full-sub-content", class: "uofg-header-sub-content" }, h(PageSpecific, { content: this.pageSpecificContent,
|
|
74
|
+
return (h("header", { id: "uofg-header" }, this.isFullSize && (h("div", { id: "uofg-header-top-content-container" }, h(TopLinks, null), h(HelloYouMenu, { autoCollapse: true }))), h("div", { id: "uofg-header-main-content-container", class: { 'full-height': this.isFullSize } }, h("div", { id: "uofg-header-logo-container" }, this.isFullSize && h("div", { id: "uofg-header-decorative-img", innerHTML: Decoration }), h("a", { id: "uofg-header-logo", href: "https://www.uoguelph.ca", innerHTML: this.isFullSize ? FullSizeLogo : ReducedSizeLogo, "aria-label": "University of Guelph Home Page" })), this.isFullSize ? (h("div", { id: "uofg-header-full-main-content", class: "uofg-header-main-content" }, h(MainLinks, null), h(AccountLink, null), h(SearchLink, null))) : (h("div", { id: "uofg-header-reduced-main-content", class: "uofg-header-main-content" }, h(AccountLink, null), h(SearchLink, null), h("uofg-menu", { id: "uofg-header-main-menu", "auto-collapse": true }, h("button", { slot: "button", "aria-label": "Main Menu" }, h(FontAwesomeIcon, { icon: faBars })), h("div", { slot: "content" }, h("span", null, "University of Guelph"), h(MainLinks, null), h(HelloYouMenu, { autoCollapse: false })))))), this.pageSpecificContent.length > 0 && (h("div", { id: "uofg-header-sub-content-container" }, this.pageTitle &&
|
|
75
|
+
(this.pageUrl ? (h("a", { id: "uofg-header-page-title", href: this.pageUrl }, this.pageTitle)) : (h("span", { id: "uofg-header-page-title" }, this.pageTitle))), this.isFullSize ? (h("div", { id: "uofg-header-full-sub-content", class: "uofg-header-sub-content" }, h(PageSpecific, { content: this.pageSpecificContent, autoCollapse: true }))) : (h("div", { id: "uofg-header-reduced-sub-content", class: "uofg-header-sub-content" }, h("uofg-menu", { id: "uofg-header-sub-menu", "auto-collapse": true }, h("button", { slot: "button", "aria-label": this.pageTitle + ' Menu' }, h(FontAwesomeIcon, { icon: faBars })), h("div", { slot: "content" }, h(PageSpecific, { content: this.pageSpecificContent })))))))));
|
|
60
76
|
}
|
|
61
77
|
static get is() { return "uofg-header"; }
|
|
62
78
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,7 @@ export class UofgMenu {
|
|
|
77
77
|
// Determine what animation type the user wants.
|
|
78
78
|
const type = this.getAnimationType();
|
|
79
79
|
// If Web Animations API isn't supported, or the user requested no animation, we can simply set display style
|
|
80
|
-
if (!WEB_ANIMATIONS_SUPPORTED || PREFERS_REDUCED_MOTION || type === 'none') {
|
|
80
|
+
if (!WEB_ANIMATIONS_SUPPORTED() || PREFERS_REDUCED_MOTION() || type === 'none') {
|
|
81
81
|
this.content.style.display = newValue ? '' : 'none';
|
|
82
82
|
return;
|
|
83
83
|
}
|