@qhealth-design-system/core 1.20.2 → 1.21.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/.storybook/globals.js +79 -69
- package/.storybook/main.js +2 -0
- package/.storybook/preview-head.html +1 -0
- package/.storybook/preview.js +2 -1
- package/.storybook/vite-plugin-hbs.js +52 -0
- package/.stylelintignore +5 -0
- package/.stylelintrc.json +24 -0
- package/CHANGELOG.md +2 -0
- package/eslint.config.mjs +60 -0
- package/package.json +25 -18
- package/prettier.config.js +17 -0
- package/src/component-loader.js +10 -0
- package/src/components/_global/css/cta_links/component.scss +1 -1
- package/src/components/_global/css/link_columns/component.scss +8 -0
- package/src/components/_global/css/table/component.scss +6 -118
- package/src/components/accordion/js/global.js +12 -13
- package/src/components/banner/html/component.hbs +31 -3
- package/src/components/banner_advanced/css/component.scss +298 -2
- package/src/components/basic_search/html/component.hbs +4 -4
- package/src/components/global_alert/js/global.js +31 -47
- package/src/components/in_page_navigation/html/component.hbs +9 -16
- package/src/components/in_page_navigation/js/global.js +25 -3
- package/src/components/main_navigation/js/global.js +1 -39
- package/src/components/mega_main_navigation/js/global.js +160 -158
- package/src/data/current.json +0 -187
- package/src/helpers/Handlebars/renderEncoded.js +9 -0
- package/src/html/home.html +1 -6
- package/src/html/inner-with-nav.html +1 -3
- package/src/stories/AZListing/a-z_listing.stories.js +72 -0
- package/src/stories/Abstract/abstract.stories.js +68 -0
- package/src/stories/BackToTop/BackToTop.stories.js +12 -22
- package/src/stories/Banner/banner.stories.js +76 -0
- package/src/stories/Banner/bannerAdvanced.stories.js +234 -0
- package/src/stories/Banner/bannerBasic.stories.js +105 -0
- package/src/stories/Body/body.stories.js +94 -0
- package/src/stories/Breadcrumbs/Breadcrumbs.stories.js +16 -21
- package/src/stories/Button/Button.stories.js +70 -0
- package/src/stories/CTALink/CTALink.stories.js +83 -31
- package/src/stories/Callout/Callout.stories.js +25 -35
- package/src/stories/Cards/CardFeature.stories.js +164 -0
- package/src/stories/Cards/CardMultiAction.stories.js +212 -0
- package/src/stories/Cards/CardNoAction.stories.js +201 -0
- package/src/stories/Cards/CardSingleAction.stories.js +197 -0
- package/src/stories/Cards/Toowoomba-web.jpeg +0 -0
- package/src/stories/DirectionLinks/DirectionLinks.stories.js +2 -8
- package/src/stories/Footer/Footer.stories.js +7 -13
- package/src/stories/{Checkboxes → Forms/Checkboxes}/Checkboxes.stories.js +4 -9
- package/src/stories/{RadioButtons → Forms/RadioButtons}/RadioButtons.stories.js +5 -10
- package/src/stories/{SelectBox → Forms/SelectBox}/SelectBox.stories.js +5 -10
- package/src/stories/Forms/forms.stories.js +188 -0
- package/src/stories/Forms/numberInput.stories.js +68 -0
- package/src/stories/Forms/textInput.stories.js +147 -0
- package/src/stories/Forms/textarea.stories.js +145 -0
- package/src/stories/GlobalAlert/GlobalAlert.stories.js +135 -0
- package/src/stories/Header/Header.js +2 -4
- package/src/stories/Header/Header.stories.js +5 -8
- package/src/stories/Iconography/Iconography.stories.js +2 -7
- package/src/stories/InPageAlert/InPageAlert.stories.js +27 -31
- package/src/stories/InPageNavigation/InPageNavigation.stories.js +89 -0
- package/src/stories/Introduction.mdx +3 -36
- package/src/stories/LinkColumns/LinkColumns.stories.js +35 -23
- package/src/stories/LoadingSpinner/LoadingSpinner.stories.js +11 -25
- package/src/stories/MegaMainNavigation/mega_main_navigation.a11y.stories.js +138 -0
- package/src/stories/MegaMainNavigation/mega_main_navigation.stories.js +245 -0
- package/src/stories/Navbar/Navbar.js +2 -5
- package/src/stories/Navbar/Navbar.stories.js +2 -12
- package/src/stories/Pagination/Pagination.stories.js +4 -10
- package/src/stories/PromoPanel/PromoPanel.stories.js +8 -44
- package/src/stories/Table/table.stories.js +112 -0
- package/src/stories/Tags/Tags.stories.js +3 -8
- package/src/stories/VideoPlayer/VideoPlayer.stories.js +8 -20
- package/src/styles/imports/utilities.scss +80 -0
- package/src/components/banner_intermediate/css/component.scss +0 -289
- package/src/components/banner_intermediate/html/component.hbs +0 -196
- package/src/components/banner_intermediate/js/global.js +0 -6
- package/src/components/banner_intermediate/js/manifest.json +0 -249
- package/src/components/card_no_action/js/global.js +0 -6
- package/src/html/component-a-z_listing.html +0 -57
- package/src/html/component-abstract.html +0 -582
- package/src/html/component-banner.html +0 -581
- package/src/html/component-banner_advanced.html +0 -70
- package/src/html/component-banner_basic.html +0 -55
- package/src/html/component-banner_intermediate.html +0 -64
- package/src/html/component-body.html +0 -605
- package/src/html/component-breadcrumbs.html +0 -583
- package/src/html/component-btn.html +0 -640
- package/src/html/component-callout.html +0 -582
- package/src/html/component-card_feature.html +0 -601
- package/src/html/component-card_multi_action.html +0 -1227
- package/src/html/component-card_no_action.html +0 -395
- package/src/html/component-card_single_action.html +0 -602
- package/src/html/component-footer.html +0 -583
- package/src/html/component-forms.html +0 -1612
- package/src/html/component-global_alert.html +0 -582
- package/src/html/component-header.html +0 -583
- package/src/html/component-in_page_navigation.html +0 -605
- package/src/html/component-loading_spinner.html +0 -45
- package/src/html/component-overflow_menu.html +0 -62
- package/src/html/component-page_alert.html +0 -582
- package/src/html/component-page_footer_info.html +0 -583
- package/src/html/component-pagination.html +0 -583
- package/src/html/component-promo_panel.html +0 -46
- package/src/html/component-tag_list.html +0 -1027
- package/src/html/component-video_player.html +0 -57
- package/src/stories/BackToTop/BackToTop.js +0 -8
- package/src/stories/BackToTop/BackToTop.mdx +0 -24
- package/src/stories/Breadcrumbs/Breadcrumbs.mdx +0 -30
- package/src/stories/CTALink/CTALink.mdx +0 -36
- package/src/stories/Callout/Callout.mdx +0 -28
- package/src/stories/Checkboxes/Checkboxes.mdx +0 -42
- package/src/stories/DirectionLinks/DirectionLinks.mdx +0 -34
- package/src/stories/Footer/Footer.mdx +0 -36
- package/src/stories/Header/Header.mdx +0 -61
- package/src/stories/Iconography/Iconography.mdx +0 -23
- package/src/stories/InPageAlert/InPageAlert.mdx +0 -64
- package/src/stories/LinkColumns/LinkColumns.mdx +0 -28
- package/src/stories/LoadingSpinner/LoadingSpinner.mdx +0 -30
- package/src/stories/Navbar/Navbar.mdx +0 -37
- package/src/stories/Pagination/Pagination.mdx +0 -26
- package/src/stories/PromoPanel/PromoPanel.mdx +0 -26
- package/src/stories/RadioButtons/RadioButtons.mdx +0 -42
- package/src/stories/SelectBox/SelectBox.mdx +0 -118
- package/src/stories/Tags/Tags.mdx +0 -63
- package/src/stories/VideoPlayer/VideoPlayer.mdx +0 -26
- /package/src/stories/{Checkboxes → Forms/Checkboxes}/Checkboxes.js +0 -0
- /package/src/stories/{RadioButtons → Forms/RadioButtons}/RadioButtons.js +0 -0
- /package/src/stories/{SelectBox → Forms/SelectBox}/SelectBox.js +0 -0
|
@@ -58,7 +58,6 @@ table {
|
|
|
58
58
|
|
|
59
59
|
.qld__table__header,
|
|
60
60
|
th {
|
|
61
|
-
// @include QLD-standard-space(padding, 5 4 5 4);
|
|
62
61
|
padding: 1.25rem 0.75rem 1.25rem 0.75rem;
|
|
63
62
|
box-shadow: inset 0 0 -$QLD-border-width-default 0 var(--QLD-color-light__design-accent);
|
|
64
63
|
color: var(--QLD-color-light__heading);
|
|
@@ -200,7 +199,6 @@ table {
|
|
|
200
199
|
.qld__table__header,
|
|
201
200
|
th {
|
|
202
201
|
color: var(--QLD-color-dark__heading);
|
|
203
|
-
// box-shadow: inset 0 0 -$QLD-border-width-default 0 var(--QLD-color-dark__border);
|
|
204
202
|
-webkit-box-shadow: inset 0 -2px 0 var(---QLD-color-dark__design-accent);
|
|
205
203
|
box-shadow: inset 0 -2px 0 var(--QLD-color-dark__design-accent);
|
|
206
204
|
|
|
@@ -292,6 +290,12 @@ table {
|
|
|
292
290
|
}
|
|
293
291
|
}
|
|
294
292
|
}
|
|
293
|
+
|
|
294
|
+
// Default vertical alignment for tables
|
|
295
|
+
th,
|
|
296
|
+
td {
|
|
297
|
+
vertical-align: top;
|
|
298
|
+
}
|
|
295
299
|
}
|
|
296
300
|
|
|
297
301
|
.qld__table,
|
|
@@ -377,119 +381,3 @@ table {
|
|
|
377
381
|
max-height: none;
|
|
378
382
|
}
|
|
379
383
|
}
|
|
380
|
-
|
|
381
|
-
// .qld__table {
|
|
382
|
-
// @include QLD-fontgrid( sm, 'default');
|
|
383
|
-
// font-family: $QLD-font;
|
|
384
|
-
// width: 100%;
|
|
385
|
-
// border-collapse: collapse;
|
|
386
|
-
// border-spacing: 0;
|
|
387
|
-
|
|
388
|
-
// .qld__table__head {
|
|
389
|
-
// display: table-header-group;
|
|
390
|
-
// @include QLD-space( 'border-bottom', 0.25unit solid var(--QLD-color-light__design-accent));
|
|
391
|
-
|
|
392
|
-
// .qld__table__header {
|
|
393
|
-
// text-align: left;
|
|
394
|
-
// @include QLD-space( padding, 0.75unit);
|
|
395
|
-
|
|
396
|
-
// // header widths
|
|
397
|
-
// &.qld__table__header--width-10 {
|
|
398
|
-
// width: 10%;
|
|
399
|
-
// }
|
|
400
|
-
|
|
401
|
-
// &.qld__table__header--width-20 {
|
|
402
|
-
// width: 20%;
|
|
403
|
-
// }
|
|
404
|
-
|
|
405
|
-
// &.qld__table__header--width-25 {
|
|
406
|
-
// width: 25%;
|
|
407
|
-
// }
|
|
408
|
-
|
|
409
|
-
// &.qld__table__header--width-33 {
|
|
410
|
-
// width: 33%;
|
|
411
|
-
// }
|
|
412
|
-
|
|
413
|
-
// &.qld__table__header--width-50 {
|
|
414
|
-
// width: 50%;
|
|
415
|
-
// }
|
|
416
|
-
|
|
417
|
-
// &.qld__table__header--width-75 {
|
|
418
|
-
// width: 75%;
|
|
419
|
-
// }
|
|
420
|
-
|
|
421
|
-
// &.qld__table__header--numeric {
|
|
422
|
-
// text-align: right;
|
|
423
|
-
// }
|
|
424
|
-
|
|
425
|
-
// &:focus {
|
|
426
|
-
// outline: 3px solid var(--QLD-color-light__focus);
|
|
427
|
-
// }
|
|
428
|
-
// }
|
|
429
|
-
// }
|
|
430
|
-
|
|
431
|
-
// .qld__table__cell {
|
|
432
|
-
// @include QLD-space( padding, 0.75unit);
|
|
433
|
-
// text-align: left;
|
|
434
|
-
// border-bottom: 1px solid var(--QLD-color-light__design-accent);
|
|
435
|
-
|
|
436
|
-
// &:focus {
|
|
437
|
-
// outline: 3px solid var(--QLD-color-light__focus);
|
|
438
|
-
// }
|
|
439
|
-
|
|
440
|
-
// //numeric cells should be aligned right and have monospaced digits
|
|
441
|
-
// &.qld__table__cell--numeric {
|
|
442
|
-
// text-align: right;
|
|
443
|
-
// font-variant: tabular-nums;
|
|
444
|
-
// }
|
|
445
|
-
// }
|
|
446
|
-
|
|
447
|
-
// &.qld__table--striped .qld__table__body {
|
|
448
|
-
// .qld__table__row:nth-last-child( odd) {
|
|
449
|
-
// background-color: var(--QLD-color-light__background--shade);
|
|
450
|
-
// }
|
|
451
|
-
// }
|
|
452
|
-
|
|
453
|
-
// //Alternate themes
|
|
454
|
-
// .qld__body--alt &{
|
|
455
|
-
// &.qld__table--striped .qld__table__body {
|
|
456
|
-
// .qld__table__row:nth-last-child( odd) {
|
|
457
|
-
// background-color: var(--QLD-color-light__background--alt-shade);
|
|
458
|
-
// }
|
|
459
|
-
// }
|
|
460
|
-
// }
|
|
461
|
-
|
|
462
|
-
// .qld__body--dark &{
|
|
463
|
-
// .qld__table__head{
|
|
464
|
-
// @include QLD-space( 'border-bottom', 0.25unit solid var(--QLD-color-dark__design-accent));
|
|
465
|
-
// }
|
|
466
|
-
|
|
467
|
-
// .qld__table__header,
|
|
468
|
-
// .qld__table__cell{
|
|
469
|
-
// border-bottom: 1px solid var(--QLD-color-dark__design-accent);
|
|
470
|
-
// }
|
|
471
|
-
|
|
472
|
-
// &.qld__table--striped .qld__table__body {
|
|
473
|
-
// .qld__table__row:nth-last-child( odd) {
|
|
474
|
-
// background-color: var(--QLD-color-dark__background--shade);
|
|
475
|
-
// }
|
|
476
|
-
// }
|
|
477
|
-
// }
|
|
478
|
-
|
|
479
|
-
// .qld__body--dark-alt &{
|
|
480
|
-
// .qld__table__head{
|
|
481
|
-
// @include QLD-space( 'border-bottom', 0.25unit solid var(--QLD-color-dark__design-accent));
|
|
482
|
-
// }
|
|
483
|
-
|
|
484
|
-
// .qld__table__header,
|
|
485
|
-
// .qld__table__cell{
|
|
486
|
-
// border-bottom: 1px solid var(--QLD-color-dark__design-accent);
|
|
487
|
-
// }
|
|
488
|
-
|
|
489
|
-
// &.qld__table--striped .qld__table__body {
|
|
490
|
-
// .qld__table__row:nth-last-child( odd) {
|
|
491
|
-
// background-color: var(--QLD-color-dark__background--alt-shade);
|
|
492
|
-
// }
|
|
493
|
-
// }
|
|
494
|
-
// }
|
|
495
|
-
// }
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* @module accordion
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var accordion = {}
|
|
5
|
+
const accordion = {};
|
|
8
6
|
|
|
9
7
|
/**
|
|
10
8
|
* Set the correct Aria roles for given element on the accordion title and body
|
|
@@ -138,7 +136,7 @@
|
|
|
138
136
|
target.style.display = 'block';
|
|
139
137
|
|
|
140
138
|
(function (element) {
|
|
141
|
-
QLD.animate.Toggle({
|
|
139
|
+
window.QLD.animate.Toggle({
|
|
142
140
|
element: target,
|
|
143
141
|
property: "height",
|
|
144
142
|
speed: speed || 250,
|
|
@@ -359,7 +357,7 @@
|
|
|
359
357
|
}
|
|
360
358
|
|
|
361
359
|
(function (target, speed, element) {
|
|
362
|
-
QLD.animate.Run({
|
|
360
|
+
window.QLD.animate.Run({
|
|
363
361
|
element: target,
|
|
364
362
|
property: 'height',
|
|
365
363
|
endSize: 'auto',
|
|
@@ -414,7 +412,7 @@
|
|
|
414
412
|
}
|
|
415
413
|
|
|
416
414
|
(function (target, speed) {
|
|
417
|
-
QLD.animate.Run({
|
|
415
|
+
window.QLD.animate.Run({
|
|
418
416
|
element: target,
|
|
419
417
|
property: 'height',
|
|
420
418
|
endSize: 0,
|
|
@@ -461,12 +459,13 @@
|
|
|
461
459
|
|
|
462
460
|
}
|
|
463
461
|
|
|
464
|
-
|
|
465
|
-
|
|
462
|
+
// Make accordion public
|
|
463
|
+
window.QLD = window.QLD || {};
|
|
464
|
+
window.QLD.accordion = accordion;
|
|
466
465
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
// Add toggle event listeners to accordion buttons
|
|
467
|
+
window.addEventListener('DOMContentLoaded', function () {
|
|
468
|
+
accordion.init();
|
|
469
|
+
});
|
|
471
470
|
|
|
472
|
-
}
|
|
471
|
+
export { accordion };
|
|
@@ -6,11 +6,39 @@
|
|
|
6
6
|
|
|
7
7
|
{{#ifCond current.data.metadata.displayBreadcrumbs.value '==' 'true'}}qld__banner--breadcrumbs{{/ifCond}}
|
|
8
8
|
"
|
|
9
|
-
{{#ifCond site.metadata.
|
|
10
|
-
|
|
9
|
+
{{#ifCond @root.site.metadata.defaultBannerColour.value '==' 'light'}}
|
|
10
|
+
{{#ifCond @root.site.metadata.defaultBannerType.value '==' 'texture'}}
|
|
11
|
+
{{#if @root.site.metadata.defaultBannerTexture.value}}
|
|
12
|
+
style="background-image: url({{@root.site.metadata.defaultBannerTextureUrl.value}});"
|
|
13
|
+
{{/if}}
|
|
14
|
+
{{/ifCond}}
|
|
15
|
+
{{/ifCond}}
|
|
16
|
+
|
|
17
|
+
{{#ifCond @root.site.metadata.defaultBannerColour.value '==' 'alternate'}}
|
|
18
|
+
{{#ifCond @root.site.metadata.defaultBannerType.value '==' 'texture'}}
|
|
19
|
+
{{#if @root.site.metadata.defaultBannerTexture.value}}
|
|
20
|
+
style="background-image: url({{@root.site.metadata.defaultBannerTextureUrl.value}});"
|
|
21
|
+
{{/if}}
|
|
22
|
+
{{/ifCond}}
|
|
23
|
+
{{/ifCond}}
|
|
24
|
+
|
|
25
|
+
{{#ifCond @root.site.metadata.defaultBannerColour.value '==' 'dark'}}
|
|
26
|
+
{{#ifCond @root.site.metadata.defaultBannerType.value '==' 'texture'}}
|
|
27
|
+
{{#if @root.site.metadata.defaultBannerTextureDark.value}}
|
|
28
|
+
style="background-image: url({{@root.site.metadata.defaultBannerTextureDarkUrl.value}});"
|
|
29
|
+
{{/if}}
|
|
30
|
+
{{/ifCond}}
|
|
31
|
+
{{/ifCond}}
|
|
32
|
+
|
|
33
|
+
{{#ifCond @root.site.metadata.defaultBannerColour.value '==' 'dark-alternate'}}
|
|
34
|
+
{{#ifCond @root.site.metadata.defaultBannerType.value '==' 'texture'}}
|
|
35
|
+
{{#if @root.site.metadata.defaultBannerTextureDark.value}}
|
|
36
|
+
style="background-image: url({{@root.site.metadata.defaultBannerTextureDarkUrl.value}});"
|
|
37
|
+
{{/if}}
|
|
38
|
+
{{/ifCond}}
|
|
11
39
|
{{/ifCond}}
|
|
12
|
-
|
|
13
40
|
>
|
|
41
|
+
|
|
14
42
|
<!--@@ Breadcrumbs - Mobile @@-->
|
|
15
43
|
{{#ifCond current.data.metadata.displayBreadcrumbs.value '==' 'true'}}
|
|
16
44
|
<nav class="qld__breadcrumbs qld__banner__breadcrumbs qld__banner__breadcrumbs--mobile" aria-label="breadcrumb">
|
|
@@ -3,12 +3,308 @@
|
|
|
3
3
|
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
4
4
|
|
|
5
5
|
/* Fixes an issue with the banner where the last element of the right-side menu disappears. */
|
|
6
|
-
@media (
|
|
6
|
+
@media (width >= 729px) and (max-width: $QLD-media-lg) {
|
|
7
7
|
.qld__banner__advanced{
|
|
8
8
|
.qld__banner__wrapper {
|
|
9
9
|
div.qld__banner__main.row {
|
|
10
10
|
min-height: 310px;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Advanced banner layout, right-side icon-tile nav and link-list card list.
|
|
17
|
+
// These rules previously lived in the (now deleted) banner_intermediate
|
|
18
|
+
// component but are still used by the banner_advanced markup.
|
|
19
|
+
.qld__banner.qld__banner__advanced {
|
|
20
|
+
.qld__banner__wrapper{
|
|
21
|
+
@include QLD-media(lg) {
|
|
22
|
+
@include QLD-space(min-height, 21.5unit);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.qld__banner__content {
|
|
27
|
+
.qld__card-list.qld__banner__card-list {
|
|
28
|
+
@include QLD-space(margin-top, .5unit);
|
|
29
|
+
|
|
30
|
+
li{
|
|
31
|
+
@include QLD-space(padding, 0unit);
|
|
32
|
+
@include QLD-space(margin-top, 1unit);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include QLD-media(lg) {
|
|
36
|
+
width: 70%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//with breadcrumbs
|
|
42
|
+
&.qld__banner--breadcrumbs{
|
|
43
|
+
.qld__banner__content{
|
|
44
|
+
@include QLD-space(padding-top, 1unit);
|
|
45
|
+
@include QLD-space(padding-bottom, 2unit);
|
|
46
|
+
|
|
47
|
+
@include QLD-media(md) {
|
|
48
|
+
@include QLD-space(padding-top, 3unit);
|
|
49
|
+
@include QLD-space(padding-bottom, 3unit);
|
|
50
|
+
|
|
51
|
+
.qld__banner__breadcrumbs--desktop{
|
|
52
|
+
@include QLD-space(margin, 0 0 1.5rem);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.qld__banner__heading__wrapper{
|
|
56
|
+
@include QLD-space(margin-bottom, 0);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@include QLD-media(lg) {
|
|
61
|
+
@include QLD-space(padding-bottom, 4unit);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
//with breadcrumbs and hero image
|
|
68
|
+
&.qld__banner--breadcrumbs.qld__banner--has-hero{
|
|
69
|
+
.qld__banner__content{
|
|
70
|
+
@include QLD-space(padding-top, 1.5unit);
|
|
71
|
+
|
|
72
|
+
@include QLD-media(md) {
|
|
73
|
+
@include QLD-space(padding-top, 3unit);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//with tile nav
|
|
79
|
+
&.qld__banner--nav{
|
|
80
|
+
.qld__banner__wrapper{
|
|
81
|
+
@include QLD-space(margin-right, 6.25unit);
|
|
82
|
+
|
|
83
|
+
@include QLD-media(md) {
|
|
84
|
+
@include QLD-space(margin-right, 0unit);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.qld__banner__nav {
|
|
91
|
+
@include QLD-space(width, 6.25unit);
|
|
92
|
+
|
|
93
|
+
left: auto;
|
|
94
|
+
|
|
95
|
+
@include QLD-space(right, -7.25unit);
|
|
96
|
+
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 0;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
|
|
101
|
+
.qld__banner--hero-right &{
|
|
102
|
+
@include QLD-space(right, 0unit);
|
|
103
|
+
|
|
104
|
+
@include QLD-media(lg) {
|
|
105
|
+
position: relative;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include QLD-media(md) {
|
|
110
|
+
@include QLD-space(right, -1unit);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@include QLD-media(lg) {
|
|
114
|
+
@include QLD-space(right, 0unit);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@include QLD-media(xl) {
|
|
118
|
+
.qld__banner--padded & {
|
|
119
|
+
@include QLD-space(top, -3unit);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.qld__banner__nav--fix-right {
|
|
125
|
+
@include QLD-media(xl) {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
.qld__tile-nav {
|
|
134
|
+
height: 100%;
|
|
135
|
+
background-color: var(--QLD-color-light__background);
|
|
136
|
+
|
|
137
|
+
@include QLD-media(xl) {
|
|
138
|
+
.qld__banner--padded & {
|
|
139
|
+
height: calc(100% + 96px);
|
|
140
|
+
height: calc(100% + 6rem);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.qld__banner__nav--fix-right & {
|
|
145
|
+
@include QLD-media(xl) {
|
|
146
|
+
height: 100%;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.qld__tile-nav__list {
|
|
151
|
+
list-style: none;
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
height: 100%;
|
|
155
|
+
width: 100%;
|
|
156
|
+
margin: 0;
|
|
157
|
+
padding: 0;
|
|
158
|
+
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 30%), 0 2px 6px 2px rgb(0 0 0 / 15%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.qld__tile-nav__item {
|
|
162
|
+
background-color: $QLD-color-neutral--white;
|
|
163
|
+
border-bottom: 1px solid var(--QLD-color-light__design-accent);
|
|
164
|
+
display: flex;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
flex-grow: 1;
|
|
168
|
+
|
|
169
|
+
@include QLD-space(padding, 1unit 0);
|
|
170
|
+
|
|
171
|
+
position: relative;
|
|
172
|
+
text-align: center;
|
|
173
|
+
width: 100%;
|
|
174
|
+
|
|
175
|
+
&:last-child {
|
|
176
|
+
border: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
svg,
|
|
180
|
+
i {
|
|
181
|
+
display: block;
|
|
182
|
+
margin: 0 auto;
|
|
183
|
+
|
|
184
|
+
@include QLD-space(font-size, 1.5unit );
|
|
185
|
+
|
|
186
|
+
color: var(--QLD-color-light__action--secondary);
|
|
187
|
+
|
|
188
|
+
path {
|
|
189
|
+
fill: var(--QLD-color-light__action--secondary);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.qld__tile-nav__link {
|
|
194
|
+
@include QLD-underline('light','noUnderline');
|
|
195
|
+
|
|
196
|
+
color: var(--QLD-color-light__link);
|
|
197
|
+
display: inline-block;
|
|
198
|
+
margin-top: 4px;
|
|
199
|
+
|
|
200
|
+
@include QLD-fontgrid( xs, nospace );
|
|
201
|
+
|
|
202
|
+
letter-spacing: -0.5px;
|
|
203
|
+
|
|
204
|
+
&::after {
|
|
205
|
+
content: '';
|
|
206
|
+
position: absolute;
|
|
207
|
+
left: 0;
|
|
208
|
+
top: 0;
|
|
209
|
+
height: 100%;
|
|
210
|
+
width: 100%;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:hover {
|
|
214
|
+
color: var(--QLD-color-light__link);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&:focus {
|
|
218
|
+
outline: 3px solid var(--QLD-color-light__focus);
|
|
219
|
+
outline-offset: 1px;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
&--alt{
|
|
226
|
+
background-color: var(--QLD-color-light__background--alt);
|
|
227
|
+
|
|
228
|
+
.qld__tile-nav__item {
|
|
229
|
+
background-color: var(--QLD-color-light__background--alt);
|
|
230
|
+
border-bottom: 1px solid var(--QLD-color-light__design-accent);
|
|
231
|
+
|
|
232
|
+
svg path,
|
|
233
|
+
i{
|
|
234
|
+
color: var(--QLD-color-light__action--secondary);
|
|
235
|
+
fill: var(--QLD-color-light__action--secondary);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.qld__tile-nav__link {
|
|
239
|
+
color: var(--QLD-color-light__link);
|
|
240
|
+
|
|
241
|
+
&:hover {
|
|
242
|
+
color: var(--QLD-color-light__link);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&--dark {
|
|
251
|
+
background-color: var(--QLD-color-dark__background);
|
|
252
|
+
|
|
253
|
+
.qld__tile-nav__item {
|
|
254
|
+
background-color: var(--QLD-color-dark__background);
|
|
255
|
+
border-bottom: 1px solid var(--QLD-color-dark__design-accent);
|
|
256
|
+
|
|
257
|
+
svg path,
|
|
258
|
+
i{
|
|
259
|
+
color: var(--QLD-color-dark__action--secondary);
|
|
260
|
+
fill: var(--QLD-color-dark__action--secondary);
|
|
261
|
+
|
|
262
|
+
&:hover {
|
|
263
|
+
color: var(--QLD-color-dark__action--secondary-hover);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.qld__tile-nav__link {
|
|
268
|
+
color: var(--QLD-color-dark__link);
|
|
269
|
+
|
|
270
|
+
@include QLD-underline('dark','noUnderline');
|
|
271
|
+
|
|
272
|
+
&:hover {
|
|
273
|
+
color: var(--QLD-color-dark__link);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&--dark-alt {
|
|
282
|
+
background-color: var(--QLD-color-dark__background--alt);
|
|
283
|
+
|
|
284
|
+
.qld__tile-nav__item {
|
|
285
|
+
background-color: var(--QLD-color-dark__background--alt);
|
|
286
|
+
border-bottom: 1px solid var(--QLD-color-dark__design-accent);
|
|
287
|
+
|
|
288
|
+
svg path,
|
|
289
|
+
i {
|
|
290
|
+
color: var(--QLD-color-dark__action--secondary);
|
|
291
|
+
fill: var(--QLD-color-dark__action--secondary);
|
|
292
|
+
|
|
293
|
+
&:hover {
|
|
294
|
+
color: var(--QLD-color-dark__action--secondary-hover);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.qld__tile-nav__link {
|
|
299
|
+
color: var(--QLD-color-dark__link);
|
|
300
|
+
|
|
301
|
+
@include QLD-underline('dark','noUnderline');
|
|
302
|
+
|
|
303
|
+
&:hover {
|
|
304
|
+
color: var(--QLD-color-dark__link);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
}
|
|
14
310
|
}
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<form role="search" aria-label="sitewide" class="qld__search-form" id="search-form-global-basic" action="{{site.metadata.siteSearchUrl.value}}">
|
|
100
100
|
<div class="qld__search-form__inner">
|
|
101
101
|
<svg class="qld__icon qld__icon--sm qld__search-form__inner-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><use href="{{@root.site.metadata.coreSiteIcons.value}}#search"></use></svg>
|
|
102
|
-
<input type="search" id="search-input-global-basic-query" name="query" class="qld__text-input data-hj-allow" aria-expanded="false" autocomplete="off" disabled="true" value="{{#ifCond resultsPage.question.query '!==' '!padrenull'}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}}{{resultsPage.question.query}}{{/contains}}{{/ifCond}}">
|
|
102
|
+
<input type="search" id="search-input-global-basic-query" name="query" class="qld__text-input data-hj-allow" aria-expanded="false" autocomplete="off" disabled="true" value="{{#ifCond resultsPage.question.query '!==' '!padrenull'}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}}{{renderEncoded resultsPage.question.query}}{{/contains}}{{/ifCond}}">
|
|
103
103
|
<input type="text" id="name" name="name" autocomplete="off" tabindex="-1" class="qld__text-input--validation">
|
|
104
104
|
<div class="qld__search-form__btn">
|
|
105
105
|
<button class="qld__btn qld__btn--search" type="button" aria-label="Search" disabled="true">
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
<div class="col-xs-12 col-md-12">
|
|
125
125
|
<div class="qld__search__info">
|
|
126
126
|
<div class="qld__search__info-query">
|
|
127
|
-
<h2 class="qld__display-lg">Results{{#ifCond resultsPage.question.query '!==' ''}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}} for <span class="qld__search__info-query-term"
|
|
127
|
+
<h2 class="qld__display-lg">Results{{#ifCond resultsPage.question.query '!==' ''}}{{#contains resultsPage.question.query 'hhsid:'}}{{else}} for <span class="qld__search__info-query-term">'{{renderEncoded resultsPage.question.query}}'</span>{{/contains}}{{/ifCond}}</h2>
|
|
128
128
|
</div>
|
|
129
129
|
<div class="qld__search__info-inner">
|
|
130
130
|
<div class="qld__search__info-summary">
|
|
@@ -325,9 +325,9 @@
|
|
|
325
325
|
{{#ifCond resultsPage.resultsSummary.totalMatching '<' '1'}}
|
|
326
326
|
<div class="qld__search__results qld__search__results--no-results">
|
|
327
327
|
<div class="qld__abstract">
|
|
328
|
-
Did you mean <a href="{{spell.url}}"
|
|
328
|
+
Did you mean <a href="{{spell.url}}">'{{spell.text}}'</a>
|
|
329
329
|
</div>
|
|
330
|
-
<h2 class="qld__display-lg"><span>Our search for </span><span class="qld__search__info-query-term"
|
|
330
|
+
<h2 class="qld__display-lg"><span>Our search for </span><span class="qld__search__info-query-term">'{{renderEncoded resultsPage.question.query}}'</span> didn't return any results.</h2>
|
|
331
331
|
<p class="qld__abstract">You could try:</p>
|
|
332
332
|
<ul class="qld__search-link-list qld__link-list">
|
|
333
333
|
<li>Check the spelling of your keywords.</li>
|
|
@@ -1,54 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Initialise global alert, and add close button event listener
|
|
3
|
+
*/
|
|
4
|
+
export function initGlobalAlert() {
|
|
5
|
+
let alerts = document.getElementsByClassName("qld__global-alert") || [];
|
|
6
|
+
let siteName = null;
|
|
7
|
+
if (document.querySelector(".qld__global-alert__include") && document.querySelector(".qld__global-alert__include").alertContainer) {
|
|
8
|
+
siteName = document.querySelector(".qld__global-alert__include").alertContainer.getAttribute("data-name");
|
|
9
|
+
}
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @memberof module:globalAlert
|
|
11
|
-
* @instance
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
function initGlobalAlert() {
|
|
11
|
+
if (siteName == null) {
|
|
12
|
+
siteName = "global_alert_dev";
|
|
13
|
+
}
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
siteName = document.querySelector(".qld__global-alert__include").alertContainer.getAttribute("data-name");
|
|
20
|
-
}
|
|
15
|
+
for (let index = 0; index < alerts.length; index++) {
|
|
16
|
+
let alert = alerts[index];
|
|
17
|
+
let alertSeen = QLD.utils.getCookie(`${siteName}_alertSeen_${index}`);
|
|
21
18
|
|
|
22
|
-
if (
|
|
23
|
-
|
|
19
|
+
if (alertSeen !== null) {
|
|
20
|
+
alert.style.maxHeight = "0";
|
|
21
|
+
alert.style.display = "none";
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
if (closeButton !== null) {
|
|
39
|
-
closeButton.addEventListener(
|
|
40
|
-
"click",
|
|
41
|
-
function () {
|
|
42
|
-
alert.style.maxHeight = "0";
|
|
43
|
-
alert.style.display = "none";
|
|
44
|
-
QLD.utils.setCookie(`${siteName}_alertSeen_${index}`,"true");
|
|
45
|
-
},
|
|
46
|
-
false
|
|
47
|
-
);
|
|
48
|
-
}
|
|
24
|
+
let closeButton = alert.querySelector(".qld__global-alert__close button");
|
|
25
|
+
|
|
26
|
+
if (closeButton !== null) {
|
|
27
|
+
closeButton.addEventListener(
|
|
28
|
+
"click",
|
|
29
|
+
function () {
|
|
30
|
+
alert.style.maxHeight = "0";
|
|
31
|
+
alert.style.display = "none";
|
|
32
|
+
QLD.utils.setCookie(`${siteName}_alertSeen_${index}`, "true");
|
|
33
|
+
},
|
|
34
|
+
false,
|
|
35
|
+
);
|
|
49
36
|
}
|
|
50
37
|
}
|
|
51
|
-
|
|
52
|
-
initGlobalAlert();
|
|
53
|
-
|
|
54
|
-
})();
|
|
38
|
+
}
|