@biggive/components 202304051358.0.0 → 202304111046.0.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.
- package/dist/biggive/biggive.esm.js +1 -1
- package/dist/biggive/p-6eb97f2f.entry.js +1 -0
- package/dist/biggive/{p-9b3ded89.js → p-8fb77726.js} +1 -1
- package/dist/biggive/p-9c9b7d51.entry.js +1 -0
- package/dist/biggive/p-9e7d82e1.entry.js +1 -0
- package/dist/cjs/biggive-accordion_43.cjs.entry.js +8 -5
- package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -2
- package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -2
- package/dist/cjs/biggive.cjs.js +1 -1
- package/dist/cjs/{index-7f8fe565.js → fontawesome-icons-79883fa9.js} +261 -31
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/biggive-main-menu/biggive-main-menu.css +5 -6
- package/dist/collection/components/biggive-main-menu/biggive-main-menu.js +5 -1
- package/dist/components/biggive-main-menu.js +6 -2
- package/dist/components/fontawesome-icons.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +0 -2
- package/dist/components/index2.js +1 -1
- package/dist/esm/biggive-accordion_43.entry.js +7 -4
- package/dist/esm/biggive-beneficiary-icon.entry.js +1 -2
- package/dist/esm/biggive-category-icon.entry.js +1 -2
- package/dist/esm/biggive.js +1 -1
- package/dist/esm/{index-93ca83cc.js → fontawesome-icons-91ad19d5.js} +261 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components.d.ts +0 -101
- package/hydrate/index.js +179 -283
- package/package.json +1 -1
- package/dist/biggive/p-241aed7a.entry.js +0 -1
- package/dist/biggive/p-518fd1c9.entry.js +0 -1
- package/dist/biggive/p-76413b3e.entry.js +0 -1
- package/dist/biggive/p-9fe5b848.js +0 -1
- package/dist/biggive/p-c7f99361.entry.js +0 -1
- package/dist/biggive/p-d8ec56e6.entry.js +0 -1
- package/dist/cjs/biggive-header.cjs.entry.js +0 -51
- package/dist/cjs/biggive-search.cjs.entry.js +0 -38
- package/dist/cjs/fontawesome-icons-f9168d99.js +0 -265
- package/dist/collection/components/biggive-header/biggive-header.css +0 -439
- package/dist/collection/components/biggive-header/biggive-header.js +0 -116
- package/dist/collection/components/biggive-header/biggive-header.stories.js +0 -44
- package/dist/collection/components/biggive-search/biggive-search.css +0 -107
- package/dist/collection/components/biggive-search/biggive-search.js +0 -115
- package/dist/collection/components/biggive-search/biggive-search.stories.js +0 -15
- package/dist/components/biggive-header.d.ts +0 -11
- package/dist/components/biggive-header.js +0 -69
- package/dist/components/biggive-search.d.ts +0 -11
- package/dist/components/biggive-search.js +0 -62
- package/dist/esm/biggive-header.entry.js +0 -47
- package/dist/esm/biggive-search.entry.js +0 -34
- package/dist/esm/fontawesome-icons-9dc35408.js +0 -263
- package/dist/types/components/biggive-header/biggive-header.d.ts +0 -20
- package/dist/types/components/biggive-header/biggive-header.stories.d.ts +0 -5
- package/dist/types/components/biggive-search/biggive-search.d.ts +0 -27
- package/dist/types/components/biggive-search/biggive-search.stories.d.ts +0 -5
|
@@ -1,439 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @see brandColour in src/globals/brand-colour.ts . This and that should be updated together.
|
|
3
|
-
*/
|
|
4
|
-
a {
|
|
5
|
-
color: inherit;
|
|
6
|
-
text-decoration: underline;
|
|
7
|
-
}
|
|
8
|
-
a:hover {
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.space-above-0 {
|
|
13
|
-
margin-top: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.space-above-1 {
|
|
17
|
-
margin-top: 5px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.space-above-2 {
|
|
21
|
-
margin-top: 10px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.space-above-3 {
|
|
25
|
-
margin-top: 15px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.space-above-4 {
|
|
29
|
-
margin-top: 30px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.space-above-5 {
|
|
33
|
-
margin-top: 45px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.space-above-6 {
|
|
37
|
-
margin-top: 60px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.space-below-0 {
|
|
41
|
-
margin-bottom: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.space-below-1 {
|
|
45
|
-
margin-bottom: 5px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.space-below-2 {
|
|
49
|
-
margin-bottom: 10px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.space-below-3 {
|
|
53
|
-
margin-bottom: 15px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.space-below-4 {
|
|
57
|
-
margin-bottom: 30px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.space-below-5 {
|
|
61
|
-
margin-bottom: 45px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.space-below-6 {
|
|
65
|
-
margin-bottom: 60px;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:host {
|
|
69
|
-
display: contents;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.header {
|
|
73
|
-
font-family: "Euclid Triangle", sans-serif;
|
|
74
|
-
font-size: 17px;
|
|
75
|
-
line-height: 24px;
|
|
76
|
-
position: relative;
|
|
77
|
-
z-index: 99;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.nav {
|
|
81
|
-
margin: 0;
|
|
82
|
-
padding: 0;
|
|
83
|
-
text-align: right;
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
}
|
|
87
|
-
.nav ul {
|
|
88
|
-
margin: auto 0;
|
|
89
|
-
padding: 0;
|
|
90
|
-
}
|
|
91
|
-
.nav ul li {
|
|
92
|
-
margin: 0 15px 0 0;
|
|
93
|
-
padding: 0 15px 0 0;
|
|
94
|
-
display: inline-block;
|
|
95
|
-
font-size: 18px;
|
|
96
|
-
line-height: 20px;
|
|
97
|
-
}
|
|
98
|
-
.nav ul li:last-child {
|
|
99
|
-
padding-right: 0;
|
|
100
|
-
margin-right: 0;
|
|
101
|
-
}
|
|
102
|
-
.nav ul li a {
|
|
103
|
-
color: #000000;
|
|
104
|
-
text-decoration: none;
|
|
105
|
-
display: inline-block;
|
|
106
|
-
}
|
|
107
|
-
.nav ul li a.icon-green {
|
|
108
|
-
padding-left: 20px;
|
|
109
|
-
background-image: url(/assets/images/triangles-combined-green-match.svg);
|
|
110
|
-
background-repeat: no-repeat;
|
|
111
|
-
background-size: auto 10px;
|
|
112
|
-
background-position: left center;
|
|
113
|
-
}
|
|
114
|
-
.nav ul li a.icon-children {
|
|
115
|
-
padding-left: 20px;
|
|
116
|
-
background-image: url(/assets/images/triangles-combined-children.svg);
|
|
117
|
-
background-repeat: no-repeat;
|
|
118
|
-
background-size: auto 10px;
|
|
119
|
-
background-position: left center;
|
|
120
|
-
}
|
|
121
|
-
.nav ul li a.icon-christmas {
|
|
122
|
-
padding-left: 20px;
|
|
123
|
-
background-image: url(/assets/images/triangles-combined-christmas-challenge.svg);
|
|
124
|
-
background-repeat: no-repeat;
|
|
125
|
-
background-size: auto 10px;
|
|
126
|
-
background-position: left center;
|
|
127
|
-
}
|
|
128
|
-
.nav ul li a.icon-green-match {
|
|
129
|
-
padding-left: 20px;
|
|
130
|
-
background-image: url(/assets/images/triangles-combined-green-match.svg);
|
|
131
|
-
background-repeat: no-repeat;
|
|
132
|
-
background-size: auto 10px;
|
|
133
|
-
background-position: left center;
|
|
134
|
-
}
|
|
135
|
-
.nav ul li a.icon-women-girls {
|
|
136
|
-
padding-left: 20px;
|
|
137
|
-
background-image: url(/assets/images/triangles-combined-women-girls.svg);
|
|
138
|
-
background-repeat: no-repeat;
|
|
139
|
-
background-size: auto 10px;
|
|
140
|
-
background-position: left center;
|
|
141
|
-
}
|
|
142
|
-
.nav ul li a.icon-mental-health {
|
|
143
|
-
padding-left: 20px;
|
|
144
|
-
background-image: url(/assets/images/triangles-combined-mental-health.svg);
|
|
145
|
-
background-repeat: no-repeat;
|
|
146
|
-
background-size: auto 10px;
|
|
147
|
-
background-position: left center;
|
|
148
|
-
}
|
|
149
|
-
.nav ul li a.icon-anchor-match {
|
|
150
|
-
padding-left: 20px;
|
|
151
|
-
background-image: url(/assets/images/triangles-combined-anchor.svg);
|
|
152
|
-
background-repeat: no-repeat;
|
|
153
|
-
background-size: auto 10px;
|
|
154
|
-
background-position: left center;
|
|
155
|
-
}
|
|
156
|
-
.nav ul li a.icon-emergency {
|
|
157
|
-
padding-left: 20px;
|
|
158
|
-
background-image: url(/assets/images/triangles-combined-emergency.svg);
|
|
159
|
-
background-repeat: no-repeat;
|
|
160
|
-
background-size: auto 10px;
|
|
161
|
-
background-position: left center;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.row-top {
|
|
165
|
-
padding: 10px 30px;
|
|
166
|
-
background-color: #2C089B;
|
|
167
|
-
display: flex;
|
|
168
|
-
}
|
|
169
|
-
.row-top .social-icon-wrap {
|
|
170
|
-
margin-right: 15px;
|
|
171
|
-
}
|
|
172
|
-
.row-top .nav-secondary {
|
|
173
|
-
margin-left: auto;
|
|
174
|
-
}
|
|
175
|
-
.row-top .nav-secondary ul li {
|
|
176
|
-
border-right: 1px solid #FFFFFF;
|
|
177
|
-
}
|
|
178
|
-
.row-top .nav-secondary ul li:last-child {
|
|
179
|
-
border-right: 0;
|
|
180
|
-
}
|
|
181
|
-
.row-top .nav-secondary ul li a {
|
|
182
|
-
color: #FFFFFF;
|
|
183
|
-
}
|
|
184
|
-
.row-top .nav-secondary ul li a:hover {
|
|
185
|
-
border-bottom-color: #FFFFFF;
|
|
186
|
-
color: #FFFFFF;
|
|
187
|
-
}
|
|
188
|
-
.row-top .social-icon-wrap {
|
|
189
|
-
display: flex;
|
|
190
|
-
}
|
|
191
|
-
.row-top .social-icon-wrap .social-icon-item {
|
|
192
|
-
margin-right: 15px;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.row-bottom {
|
|
196
|
-
padding: 15px 30px;
|
|
197
|
-
background-color: #FFFFFF;
|
|
198
|
-
display: flex;
|
|
199
|
-
}
|
|
200
|
-
.row-bottom .logo-wrap {
|
|
201
|
-
width: 200px;
|
|
202
|
-
margin-right: auto;
|
|
203
|
-
position: relative;
|
|
204
|
-
z-index: 101;
|
|
205
|
-
}
|
|
206
|
-
.row-bottom .logo-wrap a {
|
|
207
|
-
display: block;
|
|
208
|
-
}
|
|
209
|
-
.row-bottom .logo-wrap a svg {
|
|
210
|
-
height: 100%;
|
|
211
|
-
width: auto;
|
|
212
|
-
}
|
|
213
|
-
.row-bottom .nav-toggle {
|
|
214
|
-
display: none;
|
|
215
|
-
}
|
|
216
|
-
.row-bottom .nav-primary {
|
|
217
|
-
font-weight: 700;
|
|
218
|
-
margin: 5px 0;
|
|
219
|
-
}
|
|
220
|
-
.row-bottom .nav-primary li.icon-colour-primary a {
|
|
221
|
-
background-image: url("/assets/images/biggive-double-triangle-primary.svg");
|
|
222
|
-
background-position: left center;
|
|
223
|
-
background-size: 20px auto;
|
|
224
|
-
background-repeat: no-repeat;
|
|
225
|
-
padding-left: 25px;
|
|
226
|
-
}
|
|
227
|
-
.row-bottom .nav-primary li.icon-colour-secondary a {
|
|
228
|
-
background-image: url("/assets/images/biggive-double-triangle-secondary.svg");
|
|
229
|
-
background-position: left center;
|
|
230
|
-
background-size: 20px auto;
|
|
231
|
-
background-repeat: no-repeat;
|
|
232
|
-
padding-left: 25px;
|
|
233
|
-
}
|
|
234
|
-
.row-bottom .nav-primary li.icon-colour-tertiary a {
|
|
235
|
-
background-image: url("/assets/images/biggive-double-triangle-tertiary.svg");
|
|
236
|
-
background-position: left center;
|
|
237
|
-
background-size: 20px auto;
|
|
238
|
-
background-repeat: no-repeat;
|
|
239
|
-
padding-left: 25px;
|
|
240
|
-
}
|
|
241
|
-
.row-bottom .nav-primary li.icon-colour-brand-1 a {
|
|
242
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-1.svg");
|
|
243
|
-
background-position: left center;
|
|
244
|
-
background-size: 20px auto;
|
|
245
|
-
background-repeat: no-repeat;
|
|
246
|
-
padding-left: 25px;
|
|
247
|
-
}
|
|
248
|
-
.row-bottom .nav-primary li.icon-colour-brand-2 a {
|
|
249
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-2.svg");
|
|
250
|
-
background-position: left center;
|
|
251
|
-
background-size: 20px auto;
|
|
252
|
-
background-repeat: no-repeat;
|
|
253
|
-
padding-left: 25px;
|
|
254
|
-
}
|
|
255
|
-
.row-bottom .nav-primary li.icon-colour-brand-3 a {
|
|
256
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-3.svg");
|
|
257
|
-
background-position: left center;
|
|
258
|
-
background-size: 20px auto;
|
|
259
|
-
background-repeat: no-repeat;
|
|
260
|
-
padding-left: 25px;
|
|
261
|
-
}
|
|
262
|
-
.row-bottom .nav-primary li.icon-colour-brand-4 a {
|
|
263
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-4.svg");
|
|
264
|
-
background-position: left center;
|
|
265
|
-
background-size: 20px auto;
|
|
266
|
-
background-repeat: no-repeat;
|
|
267
|
-
padding-left: 25px;
|
|
268
|
-
}
|
|
269
|
-
.row-bottom .nav-primary li.icon-colour-brand-5 a {
|
|
270
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-5.svg");
|
|
271
|
-
background-position: left center;
|
|
272
|
-
background-size: 20px auto;
|
|
273
|
-
background-repeat: no-repeat;
|
|
274
|
-
padding-left: 25px;
|
|
275
|
-
}
|
|
276
|
-
.row-bottom .nav-primary li.icon-colour-brand-6 a {
|
|
277
|
-
background-image: url("/assets/images/biggive-double-triangle-brand-6.svg");
|
|
278
|
-
background-position: left center;
|
|
279
|
-
background-size: 20px auto;
|
|
280
|
-
background-repeat: no-repeat;
|
|
281
|
-
padding-left: 25px;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
@media screen and (min-width: 1051px) {
|
|
285
|
-
.nav ul li {
|
|
286
|
-
position: relative;
|
|
287
|
-
}
|
|
288
|
-
.nav ul li a[href=""]:hover {
|
|
289
|
-
cursor: default;
|
|
290
|
-
}
|
|
291
|
-
.nav ul li a:hover {
|
|
292
|
-
color: #2C089B;
|
|
293
|
-
}
|
|
294
|
-
.nav ul li ul {
|
|
295
|
-
display: none;
|
|
296
|
-
position: absolute;
|
|
297
|
-
left: 50%;
|
|
298
|
-
transform: translateX(-50%);
|
|
299
|
-
padding: 15px 45px 30px 45px;
|
|
300
|
-
background-color: #FFFFFF;
|
|
301
|
-
clip-path: polygon(0% 0%, 0% 0%, 100% 0%, 100% 0, 100% 100%, 100% 100%, 15px 100%, 0 calc(100% - 15px));
|
|
302
|
-
}
|
|
303
|
-
.nav ul li ul li {
|
|
304
|
-
display: block;
|
|
305
|
-
font-weight: normal;
|
|
306
|
-
padding: 0;
|
|
307
|
-
margin: 10px 0 10px 0;
|
|
308
|
-
white-space: nowrap;
|
|
309
|
-
text-align: left;
|
|
310
|
-
font-weight: normal;
|
|
311
|
-
font-size: 13px;
|
|
312
|
-
line-height: 17px;
|
|
313
|
-
}
|
|
314
|
-
.nav ul li:hover ul {
|
|
315
|
-
display: block;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
@media screen and (max-width: 1050px) {
|
|
319
|
-
.row-top {
|
|
320
|
-
display: none;
|
|
321
|
-
}
|
|
322
|
-
.row-top[data-visible=true] {
|
|
323
|
-
display: block;
|
|
324
|
-
position: fixed;
|
|
325
|
-
bottom: 0;
|
|
326
|
-
left: 0;
|
|
327
|
-
right: 0;
|
|
328
|
-
display: flex;
|
|
329
|
-
flex-direction: column-reverse;
|
|
330
|
-
z-index: 100;
|
|
331
|
-
background-color: transparent;
|
|
332
|
-
}
|
|
333
|
-
.row-top[data-visible=true] .nav-secondary {
|
|
334
|
-
margin: 0;
|
|
335
|
-
}
|
|
336
|
-
.row-top[data-visible=true] .nav-secondary li {
|
|
337
|
-
border: 0;
|
|
338
|
-
margin: 0 0 10px 0;
|
|
339
|
-
padding: 0;
|
|
340
|
-
width: 100%;
|
|
341
|
-
}
|
|
342
|
-
.row-top[data-visible=true] .nav-secondary li a {
|
|
343
|
-
font-size: 17px;
|
|
344
|
-
line-height: 24px;
|
|
345
|
-
padding: 10px 30px;
|
|
346
|
-
border-radius: 5px;
|
|
347
|
-
border: 1px solid #000000;
|
|
348
|
-
background-color: #000000;
|
|
349
|
-
color: #FFFFFF;
|
|
350
|
-
display: inline-block;
|
|
351
|
-
text-decoration: none;
|
|
352
|
-
text-align: center;
|
|
353
|
-
transition: all ease-in-out 0.5s;
|
|
354
|
-
cursor: pointer;
|
|
355
|
-
color: #FFFFFF;
|
|
356
|
-
background-color: #2C089B;
|
|
357
|
-
border-color: #2C089B;
|
|
358
|
-
width: 100%;
|
|
359
|
-
box-sizing: border-box;
|
|
360
|
-
}
|
|
361
|
-
.row-top[data-visible=true] .nav-secondary li a:hover {
|
|
362
|
-
background-color: #FFFFFF;
|
|
363
|
-
color: #000000;
|
|
364
|
-
}
|
|
365
|
-
.row-top[data-visible=true] .nav-secondary li a:hover {
|
|
366
|
-
color: #2C089B;
|
|
367
|
-
background-color: #FFFFFF;
|
|
368
|
-
}
|
|
369
|
-
.row-top .social-icon-wrap {
|
|
370
|
-
margin: auto;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.row-bottom {
|
|
374
|
-
padding: 15px 15px;
|
|
375
|
-
}
|
|
376
|
-
.row-bottom .logo-wrap {
|
|
377
|
-
height: 30px;
|
|
378
|
-
}
|
|
379
|
-
.row-bottom .nav-toggle {
|
|
380
|
-
display: block;
|
|
381
|
-
margin-left: auto;
|
|
382
|
-
width: 45px;
|
|
383
|
-
height: 30px;
|
|
384
|
-
position: relative;
|
|
385
|
-
z-index: 101;
|
|
386
|
-
background-image: url(/assets/images/menu.svg);
|
|
387
|
-
background-size: contain;
|
|
388
|
-
background-repeat: no-repeat;
|
|
389
|
-
background-position: center center;
|
|
390
|
-
cursor: pointer;
|
|
391
|
-
}
|
|
392
|
-
.row-bottom .nav-toggle.active {
|
|
393
|
-
background-image: url(/assets/images/cross.svg?1);
|
|
394
|
-
display: block;
|
|
395
|
-
background-color: #2C089B;
|
|
396
|
-
background-size: 50% 50%;
|
|
397
|
-
width: 30px;
|
|
398
|
-
height: 30px;
|
|
399
|
-
border-radius: 50%;
|
|
400
|
-
}
|
|
401
|
-
.row-bottom .nav-primary {
|
|
402
|
-
display: none;
|
|
403
|
-
position: fixed;
|
|
404
|
-
z-index: 99;
|
|
405
|
-
top: 0;
|
|
406
|
-
height: 100vh;
|
|
407
|
-
padding-top: 100px;
|
|
408
|
-
left: 0;
|
|
409
|
-
right: 0;
|
|
410
|
-
margin: 0;
|
|
411
|
-
background-color: #E8E8E8;
|
|
412
|
-
}
|
|
413
|
-
.row-bottom .nav-primary[data-visible=true] {
|
|
414
|
-
display: block;
|
|
415
|
-
}
|
|
416
|
-
.row-bottom .nav-primary ul li {
|
|
417
|
-
width: 100%;
|
|
418
|
-
box-sizing: border-box;
|
|
419
|
-
text-align: center;
|
|
420
|
-
padding-bottom: 15px;
|
|
421
|
-
margin-bottom: 10px;
|
|
422
|
-
border-bottom: 1px solid #D7D7D7;
|
|
423
|
-
padding-left: 30px;
|
|
424
|
-
padding-right: 30px;
|
|
425
|
-
}
|
|
426
|
-
.row-bottom .nav-primary ul li ul {
|
|
427
|
-
margin-top: 15px;
|
|
428
|
-
display: none;
|
|
429
|
-
}
|
|
430
|
-
.row-bottom .nav-primary ul li ul li {
|
|
431
|
-
font-weight: normal;
|
|
432
|
-
border-bottom: 0;
|
|
433
|
-
font-size: 13px;
|
|
434
|
-
line-height: 17px;
|
|
435
|
-
}
|
|
436
|
-
.row-bottom .nav-primary ul li:hover ul {
|
|
437
|
-
display: block;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { h } from '@stencil/core';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
* @see BiggiveMainMenu
|
|
5
|
-
*/
|
|
6
|
-
export class BiggiveHeader {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.toggleNav = (event) => {
|
|
9
|
-
var nav = this.host.shadowRoot.querySelector('.nav-primary');
|
|
10
|
-
var navFooter = this.host.shadowRoot.querySelector('.row-top');
|
|
11
|
-
if (nav.getAttribute('data-visible') == 'true') {
|
|
12
|
-
event.target.classList.remove('active');
|
|
13
|
-
nav.setAttribute('data-visible', 'false');
|
|
14
|
-
navFooter.setAttribute('data-visible', 'false');
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
event.target.classList.add('active');
|
|
18
|
-
nav.setAttribute('data-visible', 'true');
|
|
19
|
-
navFooter.setAttribute('data-visible', 'true');
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
this.spaceBelow = 0;
|
|
23
|
-
this.logoUrl = '/';
|
|
24
|
-
}
|
|
25
|
-
async closeMenuFromOutside() {
|
|
26
|
-
this.host.shadowRoot.querySelector('.nav-primary').setAttribute('data-visible', 'false');
|
|
27
|
-
this.host.shadowRoot.querySelector('.nav-toggle').classList.remove('active');
|
|
28
|
-
this.host.shadowRoot.querySelector('.row-top').setAttribute('data-visible', 'false');
|
|
29
|
-
}
|
|
30
|
-
appendMenu(menuName) {
|
|
31
|
-
var node = this.host.querySelector(`[slot="${menuName}"]`);
|
|
32
|
-
if (node !== null) {
|
|
33
|
-
this.host.shadowRoot.querySelector(`nav.${menuName}`).appendChild(node);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
componentDidRender() {
|
|
37
|
-
this.appendMenu('nav-primary');
|
|
38
|
-
this.appendMenu('nav-secondary');
|
|
39
|
-
}
|
|
40
|
-
render() {
|
|
41
|
-
return (h("header", { class: 'header space-below' + this.spaceBelow }, h("div", { class: "row row-top" }, h("div", { class: "social-icon-wrap" }, h("slot", { name: "social-icons" })), h("nav", { class: "nav nav-secondary" })), h("div", { class: "row row-bottom" }, h("div", { class: "logo-wrap" }, h("a", { href: this.logoUrl, "aria-label": "Home" }, h("svg", { version: "1.1", x: "0px", y: "0px", viewBox: "0 0 140.9 30" }, h("path", { d: "M51.9,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3C53.6,0,55,1.4,55,3S53.6,6.1,51.9,6.1z M49.3,23.8h5V7.7h-5V23.8z M68.5,7.7v1 c-0.8-0.7-2.3-1.4-4.1-1.4c-4.5,0-8.2,3.2-8.2,7.9c0,4.7,3.7,7.9,8.2,7.9c1.8,0,3.4-0.5,4.1-1.4v0.9c0,2.1-1.9,3.1-4.4,3.1 c-2.2,0-4-0.5-5.8-1.4V29c2.1,0.7,4.4,1,6,1c5,0,9.2-2,9.2-7.3v-15L68.5,7.7L68.5,7.7z M68.5,17.2c-0.7,1-1.9,1.4-3.2,1.4 c-2.1,0-3.8-1.2-3.8-3.4c0-2.2,1.7-3.4,3.8-3.4c1.3,0,2.5,0.6,3.2,1.5V17.2z M88.1,24.2c4,0,6.4-0.7,8.5-2V10h-11v4.7h5.8v4.1 c-0.8,0.2-1.8,0.4-3.2,0.4c-4.9,0-7.3-3.2-7.3-6.8c0-3.7,2.8-6.8,8-6.8c2.2,0,4.3,0.6,5.8,1.4V1.7c-1.5-0.6-3.4-1.1-6.1-1.1 c-7.6,0-13,5.3-13,11.8C75.5,19.1,80.4,24.2,88.1,24.2z M101.4,6.1c-1.7,0-3.1-1.4-3.1-3s1.4-3,3.1-3c1.8,0,3.2,1.4,3.2,3 S103.1,6.1,101.4,6.1z M98.8,23.8h5V7.7h-5V23.8z M115.1,15l-4.3-7.2H105l10.1,16.4l10.1-16.4h-5.8L115.1,15z M129.3,16.9h11.6 c0.1-7-4.2-9.5-8.4-9.5c-4.5,0-8.5,2.6-8.6,8.4c0,5.6,4.1,8.4,9.1,8.4c2.2,0,4.4-0.3,6.4-1.3v-4.4c-2.5,1.4-4.1,1.4-5.6,1.4 C131.7,19.8,129.5,19.2,129.3,16.9z M132.5,11.1c1.5,0,2.8,0.7,3,2.7h-6.2C129.6,11.9,131,11.1,132.5,11.1z M43.5,11.4 c1.2-1,1.8-2.4,1.8-4c0-3.1-3-6.3-7.3-6.3h-8v22.8h10.4c4.1,0,7.2-3,7.2-6.8C47.5,14.8,46.5,12.3,43.5,11.4z M35.2,5.7h2.4 C39,5.7,40,6.8,40,8c0,1.2-1,2.2-2.5,2.2h-2.4V5.7z M39.9,19.2h-4.7v-4.6h4.7c1.4,0,2.5,1,2.5,2.3C42.4,18.1,41.3,19.2,39.9,19.2z" }), h("path", { d: "M13.5,1l13.5,23H0L13.5,1z" })))), h("div", { class: "nav-toggle", onClick: this.toggleNav }), h("nav", { class: "nav nav-primary", "data-visible": "false" }))));
|
|
42
|
-
}
|
|
43
|
-
static get is() { return "biggive-header"; }
|
|
44
|
-
static get encapsulation() { return "shadow"; }
|
|
45
|
-
static get originalStyleUrls() {
|
|
46
|
-
return {
|
|
47
|
-
"$": ["biggive-header.scss"]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
static get styleUrls() {
|
|
51
|
-
return {
|
|
52
|
-
"$": ["biggive-header.css"]
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
static get properties() {
|
|
56
|
-
return {
|
|
57
|
-
"spaceBelow": {
|
|
58
|
-
"type": "number",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "number",
|
|
62
|
-
"resolved": "number",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [],
|
|
69
|
-
"text": "Space below component"
|
|
70
|
-
},
|
|
71
|
-
"attribute": "space-below",
|
|
72
|
-
"reflect": false,
|
|
73
|
-
"defaultValue": "0"
|
|
74
|
-
},
|
|
75
|
-
"logoUrl": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"mutable": false,
|
|
78
|
-
"complexType": {
|
|
79
|
-
"original": "string",
|
|
80
|
-
"resolved": "string",
|
|
81
|
-
"references": {}
|
|
82
|
-
},
|
|
83
|
-
"required": false,
|
|
84
|
-
"optional": false,
|
|
85
|
-
"docs": {
|
|
86
|
-
"tags": [],
|
|
87
|
-
"text": "Logo hyperlink URL"
|
|
88
|
-
},
|
|
89
|
-
"attribute": "logo-url",
|
|
90
|
-
"reflect": false,
|
|
91
|
-
"defaultValue": "'/'"
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
static get methods() {
|
|
96
|
-
return {
|
|
97
|
-
"closeMenuFromOutside": {
|
|
98
|
-
"complexType": {
|
|
99
|
-
"signature": "() => Promise<void>",
|
|
100
|
-
"parameters": [],
|
|
101
|
-
"references": {
|
|
102
|
-
"Promise": {
|
|
103
|
-
"location": "global"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"return": "Promise<void>"
|
|
107
|
-
},
|
|
108
|
-
"docs": {
|
|
109
|
-
"text": "",
|
|
110
|
-
"tags": []
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
static get elementRef() { return "host"; }
|
|
116
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
title: 'Components/Header and Footer',
|
|
3
|
-
};
|
|
4
|
-
const Template = args => `
|
|
5
|
-
<biggive-header
|
|
6
|
-
space-below="${args.spaceBelow}"
|
|
7
|
-
>
|
|
8
|
-
<div slot="social-icons">
|
|
9
|
-
<biggive-social-icon service="Facebook" url="https://www.facebook.com" background-colour="tertiary" icon-colour="black"></biggive-social-icon>
|
|
10
|
-
<biggive-social-icon service="Twitter" url="https://www.twitter.com" background-colour="tertiary" icon-colour="black"></biggive-social-icon>
|
|
11
|
-
<biggive-social-icon service="LinkedIn" url="https://www.linkedin.com" background-colour="tertiary" icon-colour="black"></biggive-social-icon>
|
|
12
|
-
<biggive-social-icon service="YouTube" url="https://www.youtube.com" background-colour="tertiary" icon-colour="black"></biggive-social-icon>
|
|
13
|
-
<biggive-social-icon service="Instagram" url="https://www.instagram.com" background-colour="tertiary" icon-colour="black"></biggive-social-icon>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="nav-toggle"></div>
|
|
16
|
-
<ul slot="nav-primary">
|
|
17
|
-
<li><a href="#">Explore Campaigns</a></li>
|
|
18
|
-
<li><a href="#">For Charities</a></li>
|
|
19
|
-
<li><a href="#">For Funders</a></li>
|
|
20
|
-
<li>
|
|
21
|
-
<a href="">Match Funding</a>
|
|
22
|
-
<ul>
|
|
23
|
-
<li><a href="#">Sub menu 1</a></li>
|
|
24
|
-
<li><a href="# class="icon-green">Sub menu 2</a></li>
|
|
25
|
-
<li><a href="#">Sub menu 3</a></li>
|
|
26
|
-
<li><a href="#">Sub menu 4</a></li>
|
|
27
|
-
<li><a href="#">Sub menu 5</a></li>
|
|
28
|
-
</ul>
|
|
29
|
-
</li>
|
|
30
|
-
<li><a href="#">About Us</a></li>
|
|
31
|
-
<li><a href="#">Resources</a></li>
|
|
32
|
-
</ul>
|
|
33
|
-
|
|
34
|
-
<ul slot="nav-secondary">
|
|
35
|
-
<li><a href="#">Contact us</a></li>
|
|
36
|
-
<li><a href="#">Charity login</a></li>
|
|
37
|
-
</ul>
|
|
38
|
-
</biggive-header>
|
|
39
|
-
`;
|
|
40
|
-
export const HeaderComponent = Template.bind({});
|
|
41
|
-
HeaderComponent.args = {
|
|
42
|
-
spaceBelow: '0',
|
|
43
|
-
logoUrl: '/',
|
|
44
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @see brandColour in src/globals/brand-colour.ts . This and that should be updated together.
|
|
3
|
-
*/
|
|
4
|
-
a {
|
|
5
|
-
color: inherit;
|
|
6
|
-
text-decoration: underline;
|
|
7
|
-
}
|
|
8
|
-
a:hover {
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.padding-enclosure {
|
|
13
|
-
width: 100%;
|
|
14
|
-
padding: 20px 30px 20px 10px;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
}
|
|
17
|
-
.padding-enclosure .outer-container {
|
|
18
|
-
width: calc(100% - 50px);
|
|
19
|
-
position: absolute;
|
|
20
|
-
background-color: white;
|
|
21
|
-
}
|
|
22
|
-
.padding-enclosure .outer-container .triangle {
|
|
23
|
-
width: 0;
|
|
24
|
-
height: 0;
|
|
25
|
-
position: absolute;
|
|
26
|
-
border-right: 50px solid transparent;
|
|
27
|
-
border-left: 50px solid transparent;
|
|
28
|
-
border-bottom: 86.60254px solid #2AF135;
|
|
29
|
-
}
|
|
30
|
-
.padding-enclosure .outer-container .triangle-before {
|
|
31
|
-
top: -35px;
|
|
32
|
-
left: -40px;
|
|
33
|
-
z-index: -1;
|
|
34
|
-
rotate: -23deg;
|
|
35
|
-
}
|
|
36
|
-
.padding-enclosure .outer-container .triangle-after {
|
|
37
|
-
bottom: -15px;
|
|
38
|
-
right: -20px;
|
|
39
|
-
z-index: -1;
|
|
40
|
-
rotate: -15deg;
|
|
41
|
-
}
|
|
42
|
-
.padding-enclosure .outer-container .inner-container {
|
|
43
|
-
font-family: "Euclid Triangle", sans-serif;
|
|
44
|
-
font-size: 17px;
|
|
45
|
-
line-height: 24px;
|
|
46
|
-
padding: 1.5rem;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
}
|
|
49
|
-
.padding-enclosure .outer-container .inner-container h2 {
|
|
50
|
-
width: 100%;
|
|
51
|
-
font-weight: 500;
|
|
52
|
-
margin-top: 0px;
|
|
53
|
-
margin-bottom: 0px;
|
|
54
|
-
font-size: 1.2rem;
|
|
55
|
-
}
|
|
56
|
-
.padding-enclosure .outer-container .inner-container .search-box {
|
|
57
|
-
display: flex;
|
|
58
|
-
padding: 10px 10px 5px 10px;
|
|
59
|
-
margin-top: 1rem;
|
|
60
|
-
margin-bottom: 1.25rem;
|
|
61
|
-
border-bottom: 1px solid black;
|
|
62
|
-
}
|
|
63
|
-
.padding-enclosure .outer-container .inner-container .search-box .icon {
|
|
64
|
-
height: 1rem;
|
|
65
|
-
width: 2rem;
|
|
66
|
-
vertical-align: -0.125rem;
|
|
67
|
-
margin: auto;
|
|
68
|
-
}
|
|
69
|
-
.padding-enclosure .outer-container .inner-container .search-box .icon > path {
|
|
70
|
-
fill: #2C089B;
|
|
71
|
-
}
|
|
72
|
-
.padding-enclosure .outer-container .inner-container .search-box #x-icon:hover {
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
}
|
|
75
|
-
.padding-enclosure .outer-container .inner-container .search-box input {
|
|
76
|
-
font-family: "Euclid Triangle", sans-serif;
|
|
77
|
-
font-size: 17px;
|
|
78
|
-
line-height: 24px;
|
|
79
|
-
width: 100%;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
border: none;
|
|
82
|
-
border-radius: 3px;
|
|
83
|
-
font-size: 1.1rem;
|
|
84
|
-
}
|
|
85
|
-
.padding-enclosure .outer-container .inner-container .search-box input::placeholder {
|
|
86
|
-
color: #969696;
|
|
87
|
-
}
|
|
88
|
-
.padding-enclosure .outer-container .inner-container .search-box input:focus {
|
|
89
|
-
outline: none;
|
|
90
|
-
}
|
|
91
|
-
.padding-enclosure .outer-container .inner-container button {
|
|
92
|
-
font-family: "Euclid Triangle", sans-serif;
|
|
93
|
-
font-size: 17px;
|
|
94
|
-
line-height: 24px;
|
|
95
|
-
width: 100%;
|
|
96
|
-
padding: 0.75rem;
|
|
97
|
-
box-sizing: border-box;
|
|
98
|
-
background-color: #2C089B;
|
|
99
|
-
color: white;
|
|
100
|
-
border: none;
|
|
101
|
-
border-radius: 5px;
|
|
102
|
-
font-size: 1rem;
|
|
103
|
-
}
|
|
104
|
-
.padding-enclosure .outer-container .inner-container button:hover {
|
|
105
|
-
cursor: pointer;
|
|
106
|
-
background-color: navy;
|
|
107
|
-
}
|