@qld-gov-au/qgds-bootstrap5 1.0.19 → 1.0.21
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/.esbuild/plugins/qgds-plugin-copy-assets.js +4 -3
- package/.esbuild/plugins/qgds-plugin-handlebar-partial-builder.js +91 -0
- package/.esbuild/plugins/qgds-plugin-version.js +3 -2
- package/.storybook/preview.js +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +2 -2
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
- package/dist/assets/js/handlebars.helpers.js +57 -11
- package/dist/assets/js/handlebars.init.min.js +2637 -0
- package/dist/assets/js/handlebars.init.min.js.map +7 -0
- package/dist/assets/js/qld.bootstrap.min.js +3 -3
- package/dist/assets/js/qld.bootstrap.min.js.map +2 -2
- package/dist/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.hbs +11 -0
- package/dist/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.test.hbs +7 -0
- package/dist/components/bs5/contentFooter/contentFooter.hbs +4 -0
- package/dist/components/bs5/contentFooterWrapper/contentFooterWrapper.hbs +5 -0
- package/dist/components/bs5/contentFooterWrapper/contentFooterWrapper.test.hbs +13 -0
- package/dist/components/bs5/contentWrapper/contentWrapper.hbs +5 -0
- package/dist/components/bs5/contentWrapper/contentWrapper.test.hbs +12 -0
- package/dist/components/bs5/footer/footer.hbs +88 -24
- package/dist/components/bs5/fullPageWrapper/fullPage.hbs +16 -0
- package/dist/components/bs5/fullPageWrapper/fullPage.test.hbs +4 -0
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/mainContainerWrapper/mainContainerWrapper.hbs +28 -0
- package/dist/components/bs5/mainContainerWrapper/mainContainerWrapper.test.hbs +6 -0
- package/dist/components/bs5/metaDcTerms/metaDcTerms.hbs +17 -0
- package/dist/components/bs5/metaOpenGraph/metaOpenGraph.hbs +18 -0
- package/dist/components/bs5/searchInput/searchInput.hbs +2 -2
- package/dist/components/bs5/sidenavWrapper/sidenavWrapper.hbs +4 -0
- package/dist/components/bs5/sidenavWrapper/sidenavWrapper.test.hbs +15 -0
- package/dist/components/bs5/video/video.hbs +3 -1
- package/dist/components/handlebars.helpers.js +57 -11
- package/dist/components/handlebars.init.js +31 -3
- package/dist/components/handlebars.init.min.js +2637 -0
- package/dist/components/handlebars.init.min.js.map +7 -0
- package/dist/components/handlebars.partials.js +96 -0
- package/dist/sample-data/contentFooter/contentFooter.data.json +3 -0
- package/dist/sample-data/contentWrapper/contentWrapper.data.json +3 -0
- package/dist/sample-data/footer/footer-usingDefaults.data.json +3 -0
- package/dist/sample-data/footer/footer.data.json +31 -74
- package/dist/sample-data/metaDcTerms/MetaDcTerms.data.json +12 -0
- package/dist/sample-data/metaOpenGraph/MetaOpenGraph.data.json +14 -0
- package/esbuild.js +9 -3
- package/package.json +17 -16
- package/src/components/bs5/blockquote/blockquote.scss +31 -28
- package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +1 -1
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +101 -83
- package/src/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.hbs +11 -0
- package/src/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.stories.js +37 -0
- package/src/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.test.hbs +7 -0
- package/src/components/bs5/breadcumbsWrapper/breadcrumbsWrapper.test.js +13 -0
- package/src/components/bs5/breadcumbsWrapper/manifest.json +0 -0
- package/src/components/bs5/contentFooter/contentFooter.data.json +3 -0
- package/src/components/bs5/contentFooter/contentFooter.hbs +4 -0
- package/src/components/bs5/contentFooter/contentFooter.js +10 -0
- package/src/components/bs5/contentFooter/contentFooter.stories.js +59 -0
- package/src/components/bs5/contentFooter/manifest.json +0 -0
- package/src/components/bs5/contentFooterWrapper/contentFooterWrapper.hbs +5 -0
- package/src/components/bs5/contentFooterWrapper/contentFooterWrapper.stories.js +39 -0
- package/src/components/bs5/contentFooterWrapper/contentFooterWrapper.test.hbs +13 -0
- package/src/components/bs5/contentFooterWrapper/contentFooterWrapper.test.js +13 -0
- package/src/components/bs5/contentFooterWrapper/manifest.json +0 -0
- package/src/components/bs5/contentWrapper/ContentWrapper.test.js +13 -0
- package/src/components/bs5/contentWrapper/contentWrapper.data.json +3 -0
- package/src/components/bs5/contentWrapper/contentWrapper.hbs +5 -0
- package/src/components/bs5/contentWrapper/contentWrapper.stories.js +68 -0
- package/src/components/bs5/contentWrapper/contentWrapper.test.hbs +12 -0
- package/src/components/bs5/contentWrapper/manifest.json +0 -0
- package/src/components/bs5/footer/_colours.scss +3 -2
- package/src/components/bs5/footer/_measurements.scss +3 -1
- package/src/components/bs5/footer/footer-usingDefaults.data.json +3 -0
- package/src/components/bs5/footer/footer.data.json +31 -74
- package/src/components/bs5/footer/footer.hbs +88 -24
- package/src/components/bs5/footer/footer.scss +139 -81
- package/src/components/bs5/footer/footer.stories.js +104 -3
- package/src/components/bs5/fullPageWrapper/fullPage.hbs +16 -0
- package/src/components/bs5/fullPageWrapper/fullPage.stories.js +65 -0
- package/src/components/bs5/fullPageWrapper/fullPage.test.hbs +4 -0
- package/src/components/bs5/fullPageWrapper/fullPage.test.js +13 -0
- package/src/components/bs5/fullPageWrapper/manifest.json +0 -0
- package/src/components/bs5/globalAlert/globalAlert.scss +92 -24
- package/src/components/bs5/head/head.stories.js +6 -6
- package/src/components/bs5/mainContainerWrapper/mainContainerWrapper.hbs +28 -0
- package/src/components/bs5/mainContainerWrapper/mainContainerWrapper.stories.js +51 -0
- package/src/components/bs5/mainContainerWrapper/mainContainerWrapper.test.hbs +6 -0
- package/src/components/bs5/mainContainerWrapper/mainContainerWrapper.test.js +13 -0
- package/src/components/bs5/mainContainerWrapper/manifest.json +0 -0
- package/src/components/bs5/metaDcTerms/MetaDcTerms.data.json +12 -0
- package/src/components/bs5/metaDcTerms/MetaDcTerms.js +10 -0
- package/src/components/bs5/metaDcTerms/manifest.json +0 -0
- package/src/components/bs5/metaDcTerms/metaDcTerms.hbs +17 -0
- package/src/components/bs5/metaDcTerms/metaDcTerms.stories.js +38 -0
- package/src/components/bs5/metaOpenGraph/MetaOpenGraph.data.json +14 -0
- package/src/components/bs5/metaOpenGraph/MetaOpenGraph.js +10 -0
- package/src/components/bs5/metaOpenGraph/manifest.json +0 -0
- package/src/components/bs5/metaOpenGraph/metaOpenGraph.hbs +18 -0
- package/src/components/bs5/metaOpenGraph/metaOpenGraph.stories.js +38 -0
- package/src/components/bs5/navbar/navbar.scss +2 -2
- package/src/components/bs5/searchInput/search.functions.js +6 -6
- package/src/components/bs5/searchInput/searchInput.hbs +2 -2
- package/src/components/bs5/searchInput/searchInput.scss +17 -7
- package/src/components/bs5/sidenavWrapper/SidenavWrapper.mdx +11 -0
- package/src/components/bs5/sidenavWrapper/SidenavWrapper.test.js +13 -0
- package/src/components/bs5/sidenavWrapper/manifest.json +0 -0
- package/src/components/bs5/sidenavWrapper/sidenavWrapper.hbs +4 -0
- package/src/components/bs5/sidenavWrapper/sidenavWrapper.stories.js +68 -0
- package/src/components/bs5/sidenavWrapper/sidenavWrapper.test.hbs +15 -0
- package/src/components/bs5/tag/tag.scss +1 -1
- package/src/components/bs5/textbox/textInput.scss +2 -2
- package/src/components/bs5/typography/typography.stories.js +9 -0
- package/src/components/bs5/video/video.hbs +3 -1
- package/src/components/common/layout/content.scss +3 -0
- package/src/js/handlebars.helpers.js +57 -11
- package/src/js/handlebars.init.js +31 -3
- package/src/js/handlebars.partials.js +96 -0
- package/src/main.js +1 -1
- package/src/scss/qld-print.scss +22 -4
- package/src/scss/qld-type.scss +32 -3
- package/src/scss/qld-variables.scss +1 -1
- package/src/stories/integration/MainIntegration.js +29 -0
- package/src/stories/integration/MainIntegration.mdx +10 -0
- package/src/stories/integration/breadcrumb.data.json +28 -0
- package/src/stories/integration/content.data.json +3 -0
- package/src/stories/integration/contentFooter.data.json +3 -0
- package/src/stories/integration/footer.data.json +154 -0
- package/src/stories/integration/globalAlert.data.json +9 -0
- package/src/stories/integration/header.data.json +173 -0
- package/src/stories/integration/inpagenav.data.json +26 -0
- package/src/stories/integration/integration.stories.js +145 -0
- package/src/stories/integration/main.hbs +13 -0
- package/src/stories/integration/navigation.data.json +22 -0
- package/src/stories/integration/search.data.json +20 -0
- package/src/stories/integration/sidenav.data.json +88 -0
- package/dist/assets/js/handlebars.init.js +0 -6
- package/dist/components/handlebars.init.bundle.js +0 -23
- package/dist/components/handlebars.init.bundle.js.map +0 -7
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
.global-alert {
|
|
2
|
-
padding: 5px 0 5px 0;
|
|
3
|
-
|
|
4
2
|
$chevron-icon-white: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27 15.6081C27 16.1011 26.5897 16.4845 26.1282 16.4845L6.79487 16.4845L13.9744 24.7008C14.2821 25.0295 14.2821 25.5772 13.9231 25.9059C13.7692 26.0702 13.5641 26.125 13.359 26.125C13.1026 26.125 12.8974 26.0702 12.7436 25.8511L4.23077 16.2106C3.92308 15.882 3.92308 15.389 4.23077 15.0603L12.7436 5.41981C13.0513 5.03639 13.5641 5.03639 13.9231 5.36504C14.2821 5.69369 14.2821 6.24145 13.9744 6.5701L6.79487 14.7317L26.1282 14.7317C26.5897 14.7317 27 15.1699 27 15.6081Z" fill="#{$qld-white}"/></svg>');
|
|
5
3
|
$chevron-icon-grey: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M27 15.6081C27 16.1011 26.5897 16.4845 26.1282 16.4845L6.79487 16.4845L13.9744 24.7008C14.2821 25.0295 14.2821 25.5772 13.9231 25.9059C13.7692 26.0702 13.5641 26.125 13.359 26.125C13.1026 26.125 12.8974 26.0702 12.7436 25.8511L4.23077 16.2106C3.92308 15.882 3.92308 15.389 4.23077 15.0603L12.7436 5.41981C13.0513 5.03639 13.5641 5.03639 13.9231 5.36504C14.2821 5.69369 14.2821 6.24145 13.9744 6.5701L6.79487 14.7317L26.1282 14.7317C26.5897 14.7317 27 15.1699 27 15.6081Z" fill="#{$qld-text-grey}"/></svg>');
|
|
6
4
|
|
|
@@ -9,25 +7,20 @@
|
|
|
9
7
|
|
|
10
8
|
.qld-global-alert-main {
|
|
11
9
|
display: flex;
|
|
12
|
-
|
|
13
|
-
margin: 6px 0;
|
|
10
|
+
|
|
14
11
|
.global-alert-icon {
|
|
15
|
-
position: absolute;
|
|
16
12
|
line-height: 1;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
height: 1em;
|
|
13
|
+
width: 22px;
|
|
14
|
+
height: 22px;
|
|
20
15
|
display: inline-block;
|
|
21
16
|
transition: fill 0.3s ease;
|
|
22
|
-
|
|
23
|
-
// vertical-align: middle;
|
|
17
|
+
vertical-align: middle;
|
|
24
18
|
font-size: 1.5rem;
|
|
19
|
+
padding-left: 1.5rem; // padding between icon and text. Added due to bug when content has 3 lines of text.
|
|
20
|
+
|
|
25
21
|
}
|
|
26
22
|
.global-alert-content {
|
|
27
|
-
padding: 0
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: column;
|
|
30
|
-
align-items: center;
|
|
23
|
+
padding: 0 1.25rem 0 1rem;
|
|
31
24
|
.global-alert-action a {
|
|
32
25
|
display: flex;
|
|
33
26
|
align-items: center;
|
|
@@ -45,21 +38,32 @@
|
|
|
45
38
|
margin-left: auto;
|
|
46
39
|
.btn-close {
|
|
47
40
|
height: 2rem;
|
|
48
|
-
width: 2rem;
|
|
49
|
-
|
|
41
|
+
width: 2rem;
|
|
42
|
+
--#{$prefix}btn-close-opacity: 1;
|
|
43
|
+
background: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:multiply'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23131212' fill-opacity='0.1' /%3E%3C/g%3E%3Cpath d='M17.2871 15.9004L21.3105 11.916L22.1309 11.0957C22.248 10.9785 22.248 10.7832 22.1309 10.627L21.2715 9.76758C21.1152 9.65039 20.9199 9.65039 20.8027 9.76758L15.998 14.6113L11.1543 9.76758C11.0371 9.65039 10.8418 9.65039 10.6855 9.76758L9.82617 10.627C9.70898 10.7832 9.70898 10.9785 9.82617 11.0957L14.6699 15.9004L9.82617 20.7441C9.70898 20.8613 9.70898 21.0566 9.82617 21.2129L10.6855 22.0723C10.8418 22.1895 11.0371 22.1895 11.1543 22.0723L15.998 17.2285L19.9824 21.252L20.8027 22.0723C20.9199 22.1895 21.1152 22.1895 21.2715 22.0723L22.1309 21.2129C22.248 21.0566 22.248 20.8613 22.1309 20.7441L17.2871 15.9004Z' fill='%23131212'/%3E%3C/svg%3E") no-repeat center center;
|
|
50
44
|
}
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
47
|
&.global-alert-critical {
|
|
54
48
|
background-color: $qld-notify-warning;
|
|
55
49
|
color: $qld-white;
|
|
56
|
-
font-size: 0.
|
|
50
|
+
font-size: 0.875em;
|
|
57
51
|
.global-alert-icon {
|
|
58
52
|
background-repeat: no-repeat;
|
|
59
53
|
background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 8.0001V13.0001M12 16.0001H12.01M8.84751 20.6604H15.1525C15.8255 20.6604 16.1621 20.6604 16.4633 20.5625C16.7299 20.4759 16.9753 20.3342 17.1835 20.1466C17.419 19.9347 17.5872 19.6432 17.9237 19.0604L21.0762 13.6001C21.4128 13.0172 21.581 12.7258 21.6469 12.4159C21.7052 12.1418 21.7052 11.8584 21.6469 11.5843C21.581 11.2744 21.4128 10.983 21.0762 10.4001L17.9237 4.93984C17.5872 4.35696 17.419 4.06551 17.1835 3.85355C16.9753 3.66601 16.7299 3.52434 16.4633 3.43773C16.1621 3.33984 15.8255 3.33984 15.1525 3.33984H8.84751C8.17445 3.33984 7.83792 3.33984 7.53665 3.43773C7.27009 3.52434 7.02471 3.66601 6.81643 3.85355C6.58102 4.06551 6.41276 4.35696 6.07623 4.93984L2.92375 10.4001C2.58722 10.983 2.41895 11.2744 2.35309 11.5843C2.29482 11.8584 2.29482 12.1418 2.35309 12.4159C2.41895 12.7258 2.58722 13.0172 2.92375 13.6001L6.07623 19.0604C6.41276 19.6432 6.58102 19.9347 6.81643 20.1466C7.02471 20.3342 7.27009 20.4759 7.53665 20.5625C7.83792 20.6604 8.17445 20.6604 8.84751 20.6604Z' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
60
54
|
}
|
|
55
|
+
.global-alert-close {
|
|
56
|
+
margin-left: auto;
|
|
57
|
+
.btn-close {
|
|
58
|
+
height: 2rem;
|
|
59
|
+
width: 2rem;
|
|
60
|
+
--#{$prefix}btn-close-opacity: 1;
|
|
61
|
+
background: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='mix-blend-mode:multiply'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23131212' fill-opacity='0.1' /%3E%3C/g%3E%3Cpath d='M17.2871 15.9004L21.3105 11.916L22.1309 11.0957C22.248 10.9785 22.248 10.7832 22.1309 10.627L21.2715 9.76758C21.1152 9.65039 20.9199 9.65039 20.8027 9.76758L15.998 14.6113L11.1543 9.76758C11.0371 9.65039 10.8418 9.65039 10.6855 9.76758L9.82617 10.627C9.70898 10.7832 9.70898 10.9785 9.82617 11.0957L14.6699 15.9004L9.82617 20.7441C9.70898 20.8613 9.70898 21.0566 9.82617 21.2129L10.6855 22.0723C10.8418 22.1895 11.0371 22.1895 11.1543 22.0723L15.998 17.2285L19.9824 21.252L20.8027 22.0723C20.9199 22.1895 21.1152 22.1895 21.2715 22.0723L22.1309 21.2129C22.248 21.0566 22.248 20.8613 22.1309 20.7441L17.2871 15.9004Z' fill='%23F5F5F5'/%3E%3C/svg%3E") no-repeat center center;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
61
64
|
.global-alert-action a {
|
|
62
65
|
color: $qld-white;
|
|
66
|
+
text-decoration-color: $qld-white;
|
|
63
67
|
&:after {
|
|
64
68
|
background: var(--chevron-icon-white);
|
|
65
69
|
}
|
|
@@ -71,7 +75,7 @@
|
|
|
71
75
|
&.global-alert-warning {
|
|
72
76
|
background-color: $qld-notify-alert;
|
|
73
77
|
color: $qld-text-grey;
|
|
74
|
-
font-size: 0.
|
|
78
|
+
font-size: 0.875em;
|
|
75
79
|
.global-alert-icon {
|
|
76
80
|
background-repeat: no-repeat;
|
|
77
81
|
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_80802' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='2' width='20' height='17'%3E%3Cpath d='M10 13.9062C10.457 13.9062 10.8438 14.293 10.8086 14.75C10.8086 15.2422 10.457 15.5938 10 15.5938C9.54297 15.5938 9.15625 15.2422 9.15625 14.75C9.15625 14.293 9.50781 13.9062 10 13.9062ZM10 12.5C9.68359 12.5 9.4375 12.2539 9.4375 11.9375V6.875C9.4375 6.59375 9.71875 6.3125 10 6.3125C10.2461 6.3125 10.5273 6.59375 10.5273 6.875V11.9375C10.5273 12.2539 10.2812 12.5 10 12.5ZM18.7188 15.2422C19.0703 15.8398 19.0703 16.543 18.7188 17.1406C18.3672 17.7734 17.7344 18.125 17.0312 18.125H2.96875C2.23047 18.125 1.59766 17.7734 1.24609 17.1406C0.894531 16.543 0.894531 15.8398 1.24609 15.2422L8.27734 3.35938C8.62891 2.76172 9.26172 2.375 10 2.375C10.7031 2.41016 11.3359 2.76172 11.6875 3.35938L18.7188 15.2422ZM17.7344 16.5781C17.9102 16.332 17.875 16.0508 17.7344 15.8047L10.7031 3.92188C10.5625 3.67578 10.2812 3.53516 10 3.5C9.96484 3.5 10 3.5 10 3.5C9.68359 3.5 9.40234 3.67578 9.26172 3.92188L2.23047 15.8047C2.08984 16.0508 2.05469 16.332 2.23047 16.5781C2.37109 16.8594 2.65234 17 2.96875 17H16.9961C17.3125 17 17.5938 16.8594 17.7344 16.5781Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_80802)'%3E%3Crect width='20' height='20' fill='%231D1D1D'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
@@ -89,7 +93,7 @@
|
|
|
89
93
|
&.global-alert-info {
|
|
90
94
|
background-color: $qld-general-info-alert;
|
|
91
95
|
color: $qld-text-grey;
|
|
92
|
-
font-size: 0.
|
|
96
|
+
font-size: 0.875em;
|
|
93
97
|
.global-alert-icon {
|
|
94
98
|
background-repeat: no-repeat;
|
|
95
99
|
background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='mask0_5702_82508' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='1' y='1' width='18' height='18'%3E%3Cpath d='M10 7.20312C9.48047 7.20312 9.10938 6.83203 9.10938 6.3125C9.10938 5.83008 9.48047 5.42188 10 5.42188C10.4824 5.42188 10.8906 5.83008 10.8906 6.3125C10.8906 6.83203 10.4824 7.20312 10 7.20312ZM15.9375 1.5625C17.2363 1.5625 18.3125 2.63867 18.3125 3.9375V15.8125C18.3125 17.1484 17.2363 18.1875 15.9375 18.1875H4.0625C2.72656 18.1875 1.6875 17.1484 1.6875 15.8125V3.9375C1.6875 2.63867 2.72656 1.5625 4.0625 1.5625H15.9375ZM17.125 15.8125V3.9375C17.125 3.30664 16.5684 2.75 15.9375 2.75H4.0625C3.39453 2.75 2.875 3.30664 2.875 3.9375V15.8125C2.875 16.4805 3.39453 17 4.0625 17H15.9375C16.5684 17 17.125 16.4805 17.125 15.8125ZM11.7812 13.4375C12.0781 13.4375 12.375 13.7344 12.375 14.0312C12.375 14.3652 12.0781 14.625 11.7812 14.625H8.21875C7.88477 14.625 7.625 14.3652 7.625 14.0312C7.625 13.7344 7.88477 13.4375 8.21875 13.4375H9.40625V9.875H8.8125C8.47852 9.875 8.21875 9.61523 8.21875 9.28125C8.21875 8.98438 8.47852 8.6875 8.8125 8.6875H10C10.2969 8.6875 10.5938 8.98438 10.5938 9.28125V13.4375H11.7812Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82508)'%3E%3Crect width='20' height='20' fill='%231D1D1D'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
@@ -106,11 +110,75 @@
|
|
|
106
110
|
}
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
@media (min-width: 768px) {
|
|
110
|
-
.global-alert
|
|
111
|
-
|
|
113
|
+
@media (min-width: 768px) { // md and above
|
|
114
|
+
.global-alert {
|
|
115
|
+
.qld-global-alert-main {
|
|
116
|
+
padding: 1rem 1rem;
|
|
117
|
+
.global-alert-content {
|
|
118
|
+
padding-left: 1rem;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
.global-alert-message {
|
|
124
|
+
padding: 0 3rem 0 1rem; // Also: 0 48px 0 16px, according to Health DS
|
|
125
|
+
max-width: 80%;// Added to prevent Label from collapsing
|
|
126
|
+
}
|
|
127
|
+
.global-alert-icon {
|
|
128
|
+
// temporary change to align icon with content
|
|
129
|
+
align-self: center;
|
|
130
|
+
}
|
|
131
|
+
.global-alert-content {
|
|
132
|
+
flex-direction: row !important;
|
|
133
|
+
}
|
|
134
|
+
.global-alert-action {
|
|
135
|
+
margin-left: 2rem;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (max-width: 767.98px) { // sm and below
|
|
142
|
+
.global-alert {
|
|
143
|
+
.qld-global-alert-main {
|
|
144
|
+
padding: 0.75rem 1rem; // Also 12px 16px
|
|
145
|
+
}
|
|
146
|
+
.global-alert-content {
|
|
147
|
+
padding: 0 1rem 0 0.75rem; // Also 0 16px 0 12px
|
|
148
|
+
}
|
|
112
149
|
}
|
|
113
|
-
|
|
114
|
-
|
|
150
|
+
|
|
151
|
+
.global-alert-icon {
|
|
152
|
+
// aligning with text
|
|
153
|
+
padding-top: 0.75rem;
|
|
115
154
|
}
|
|
116
155
|
}
|
|
156
|
+
|
|
157
|
+
@include media-breakpoint-up(lg) { // 992px and above
|
|
158
|
+
|
|
159
|
+
.global-alert {
|
|
160
|
+
&.global-alert-critical {
|
|
161
|
+
border-top: 0.063rem solid var(--#{$prefix}core-default-color-status-error-darker);
|
|
162
|
+
}
|
|
163
|
+
&.global-alert-warning {
|
|
164
|
+
border-top: 0.063rem solid var(--#{$prefix}core-default-color-status-caution-darker);
|
|
165
|
+
}
|
|
166
|
+
&.global-alert-info {
|
|
167
|
+
border-top: 0.063rem solid var(--#{$prefix}core-default-color-status-info-darker);
|
|
168
|
+
}
|
|
169
|
+
.global-alert-icon {
|
|
170
|
+
// aligning with text
|
|
171
|
+
padding-top: 1.375rem;
|
|
172
|
+
// temporary change to align icon to center
|
|
173
|
+
align-self: center;
|
|
174
|
+
}
|
|
175
|
+
.qld-global-alert-main {
|
|
176
|
+
// Padding requires 64px in space between alert icon and left border; minus (24px(1.5rem) gutter + 16px padding) = 24px (1.5rem)
|
|
177
|
+
padding-left: 1.5rem;
|
|
178
|
+
.global-alert-content {
|
|
179
|
+
padding-left: 1rem; // Also: 16px
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -3,7 +3,7 @@ import { Head } from "./Head.js";
|
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
tags: ["autodocs"],
|
|
6
|
-
title: "!Core/
|
|
6
|
+
title: "!Core/Head/Includes CDN or Local",
|
|
7
7
|
render: (args) => {
|
|
8
8
|
return new Head(args).html;
|
|
9
9
|
},
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
"PROD",
|
|
24
24
|
"/__data/assets/git_bridge/0026/471752",
|
|
25
25
|
],
|
|
26
|
-
}
|
|
26
|
+
},
|
|
27
27
|
},
|
|
28
28
|
|
|
29
29
|
parameters: {
|
|
@@ -53,24 +53,24 @@ export const Default = {
|
|
|
53
53
|
|
|
54
54
|
export const DEV = {
|
|
55
55
|
args: {
|
|
56
|
-
cdn: "DEV"
|
|
56
|
+
cdn: "DEV",
|
|
57
57
|
},
|
|
58
58
|
decorators:[Story => {
|
|
59
59
|
return `
|
|
60
60
|
${Story()}
|
|
61
61
|
`;
|
|
62
|
-
}]
|
|
62
|
+
}],
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
export const SQUIZ = {
|
|
66
66
|
args: {
|
|
67
|
-
cdn: "/__data/assets/git_bridge/0026/471752"
|
|
67
|
+
cdn: "/__data/assets/git_bridge/0026/471752",
|
|
68
68
|
},
|
|
69
69
|
decorators:[Story => {
|
|
70
70
|
return `
|
|
71
71
|
${Story()}
|
|
72
72
|
`;
|
|
73
|
-
}]
|
|
73
|
+
}],
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{{> header header}}
|
|
2
|
+
{{> navbar navbar}}
|
|
3
|
+
{{> globalAlert globalAlert}}
|
|
4
|
+
<main>
|
|
5
|
+
{{#> breadcrumbsWrapper}}
|
|
6
|
+
{{> breadcrumbs breadcrumbs}}
|
|
7
|
+
{{/breadcrumbsWrapper}}
|
|
8
|
+
<!-- Main content-->
|
|
9
|
+
<div class="container-fluid">
|
|
10
|
+
<div class="container qld-content">
|
|
11
|
+
<div class="row">
|
|
12
|
+
<!-- Side Nav -->
|
|
13
|
+
{{#> sidenavWrapper}}
|
|
14
|
+
{{> sidenav sidenav}}
|
|
15
|
+
{{/sidenavWrapper}}
|
|
16
|
+
{{#> contentWrapper}}
|
|
17
|
+
{{> @partial-block }}
|
|
18
|
+
{{/contentWrapper}}
|
|
19
|
+
</div> <!-- end row -->
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
{{#>contentFooterWrapper}}
|
|
23
|
+
{{> contentFooter contentFooter }}
|
|
24
|
+
{{/contentFooterWrapper}}
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</main>
|
|
28
|
+
{{> footer footer}}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { MainContainerWrapperTest } from "./mainContainerWrapper.test.js";
|
|
2
|
+
|
|
3
|
+
import init from "./../../../js/handlebars.init";
|
|
4
|
+
import Handlebars from "handlebars";
|
|
5
|
+
//Data
|
|
6
|
+
import { masterbrand_variant } from '../header/header.data.json';
|
|
7
|
+
import { menu_state } from "../navbar/navbar.data.json";
|
|
8
|
+
import breadcrumbsData from "../breadcrumbs/breadcrumbs.data.json";
|
|
9
|
+
import searchData from "../searchInput/searchInput.data.json";
|
|
10
|
+
import globalAlertData from "../globalAlert/globalAlert.data.json";
|
|
11
|
+
import sidenavData from "../sidenav/sidenav.data.json";
|
|
12
|
+
import contentFooterData from "../contentFooter/contentFooter.data.json";
|
|
13
|
+
import footerData from "../footer/footer.data.json";
|
|
14
|
+
|
|
15
|
+
const defaultData = {
|
|
16
|
+
cdn: ".", //for storybook it's ., for normal usage "PROD"
|
|
17
|
+
title: "title goes here",
|
|
18
|
+
header: masterbrand_variant,
|
|
19
|
+
search: searchData,
|
|
20
|
+
navbar: menu_state,
|
|
21
|
+
breadcrumbs: breadcrumbsData.forGov,
|
|
22
|
+
globalAlert: globalAlertData.critical,
|
|
23
|
+
sidenav: sidenavData,
|
|
24
|
+
contentFooter: contentFooterData,
|
|
25
|
+
footer: footerData,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default {
|
|
29
|
+
title: "!Layout/Main Container Wrapper",
|
|
30
|
+
render: (args) => {
|
|
31
|
+
init(Handlebars)
|
|
32
|
+
return new MainContainerWrapperTest(args).html;
|
|
33
|
+
},
|
|
34
|
+
args: defaultData,
|
|
35
|
+
argTypes: {
|
|
36
|
+
},
|
|
37
|
+
parameters: {
|
|
38
|
+
layout: 'fullscreen',
|
|
39
|
+
docs: {
|
|
40
|
+
controls: {
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Default head metadata
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
export const Default = {};
|
|
51
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./mainContainerWrapper.test.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class MainContainerWrapperTest {
|
|
5
|
+
|
|
6
|
+
// Use the global Component class to create a new instance of the Sidenav component.
|
|
7
|
+
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
8
|
+
|
|
9
|
+
constructor( data = {} ) {
|
|
10
|
+
return new Component(template, data);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dcTerms": {
|
|
3
|
+
"created": "2021-06-02",
|
|
4
|
+
"modified": "2024-02-26",
|
|
5
|
+
"type": "Text|Collection",
|
|
6
|
+
"aggregationLevel": "null|collection",
|
|
7
|
+
"documentType": "guidelines|index",
|
|
8
|
+
"audience": "AGLSTERMS.agls-audience",
|
|
9
|
+
"subject": "",
|
|
10
|
+
"licenseUri": "https://creativecommons.org/licenses/by/4.0/"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./metaDcTerms.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class MetaDcTerms {
|
|
5
|
+
|
|
6
|
+
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
7
|
+
constructor(data = {}) {
|
|
8
|
+
return new Component(template, data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!-- DCTERMS https://www.dublincore.org/specifications/dublin-core/dcmi-terms/-->
|
|
2
|
+
{{#if dcTerms}}
|
|
3
|
+
<meta name="DCTERMS.title" content="{{ title }}">
|
|
4
|
+
<meta name="DCTERMS.publisher" scheme="AGLSTERMS.AglsAgent" content="{{#if dcTerms.publisher}}{{dcTerms.publisher}}{{else}}corporateName=The State of Queensland; jurisdiction=Queensland{{/if}}" />
|
|
5
|
+
<meta name="DCTERMS.creator" scheme="AGLSTERMS.GOLD" content="{{#if dcTerms.creator}}{{dcTerms.creator}}{{else}}c=AU; o=The State of Queensland;{{/if}}">
|
|
6
|
+
{{#if dcTerms.created}}<meta name="DCTERMS.created" content="{{ dcTerms.created }}">{{/if}}
|
|
7
|
+
{{#if dcTerms.modified}}<meta name="DCTERMS.modified" content="{{ dcTerms.modified }}">{{/if}}
|
|
8
|
+
{{#if description}}<meta name="DCTERMS.description" content="{{ description }}">{{/if}}
|
|
9
|
+
{{#if uri}}<meta name="DCTERMS.identifier" scheme="DCTERMS.URI" content="{{ uri }}">{{/if}}
|
|
10
|
+
<meta name="DCTERMS.jurisdiction" scheme="AGLSTERMS.AglsJuri" content="{{#if dcTerms.jurisdiction}}{{dcTerms.jurisdiction}}{{else}}Queensland{{/if}}">
|
|
11
|
+
{{#if dcTerms.type}}<meta name="DCTERMS.type" scheme="DCTERMS.DCMIType" content="{{ dcTerms.type }}" />{{/if}}
|
|
12
|
+
{{#if dcTerms.aggregationLevel}}<meta name="AGLSTERMS.aggregationLevel" content="{{ dcTerms.aggregationLevel }}"/>{{/if}}
|
|
13
|
+
{{#if dcTerms.documentType}}<meta name="AGLSTERMS.documentType" scheme="AGLSTERMS.agls-document" content="{{ dcTerms.documentType }}" />{{/if}}
|
|
14
|
+
{{#if dcTerms.subject}}<meta name="DCTERMS.subject" content="{{ dcTerms.subject }}" />{{/if}}
|
|
15
|
+
{{#if dcTerms.audience}}<meta name="DCTERMS.audience" content="all" scheme="{{ dcTerms.audience }}" />{{/if}}
|
|
16
|
+
{{#if dcTerms.licenseUri}}<meta name="DCTERMS.license" scheme="DCTERMS.URI" content="{{ dcTerms.licenseUri }}">{{/if}}
|
|
17
|
+
{{/if}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import MetaDcTermsData from "./MetaDcTerms.data.json";
|
|
2
|
+
import { MetaDcTerms } from "./MetaDcTerms.js";
|
|
3
|
+
|
|
4
|
+
const defaultData = {
|
|
5
|
+
...MetaDcTermsData,
|
|
6
|
+
uri: "https://forgov.qld.gov.au/projects-and-initiatives/search-for-projects-and-initiatives",
|
|
7
|
+
description: "description goes here",
|
|
8
|
+
title: "this is my title",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
tags: ["autodocs"],
|
|
13
|
+
title: "!Core/Head/Meta Dublin Core Terms (DCTERMS)",
|
|
14
|
+
args: defaultData,
|
|
15
|
+
render: (args) => {
|
|
16
|
+
return new MetaDcTerms(args).html;
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
argTypes: {
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
controls: {
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Default head metadata
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export const Default = {};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"seo": {
|
|
3
|
+
"pageSnippet": "10",
|
|
4
|
+
"keywords": "keywords go here",
|
|
5
|
+
"department": "None"
|
|
6
|
+
},
|
|
7
|
+
"og": {
|
|
8
|
+
"type": "article",
|
|
9
|
+
"image": "https://oss-uat.clients.squiz.net/__data/assets/image/0012/110460/Opengraph-default-thumbnail.png",
|
|
10
|
+
"twitter_image": "https://oss-uat.clients.squiz.net/__data/assets/image/0012/110460/Opengraph-default-thumbnail.png",
|
|
11
|
+
"twitter_description": "if not set, will use description"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./metaOpenGraph.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class MetaOpenGraph {
|
|
5
|
+
|
|
6
|
+
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
7
|
+
constructor(data = {}) {
|
|
8
|
+
return new Component(template, data);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
<!-- SEO (required) -->
|
|
3
|
+
{{#if description }}<meta name="description" content="{{ description }}" />{{/if}}
|
|
4
|
+
{{#if seo.pageSnippet }}<meta name="page.snippet" content="{{ seo.pageSnippet}}" />{{/if}}
|
|
5
|
+
|
|
6
|
+
<!-- SEO -->
|
|
7
|
+
{{#if seo.keywords }}<meta name="keywords" content="{{ seo.keywords }}" />{{/if}}
|
|
8
|
+
{{#if seo.department }}<meta name="department" content="{{ seo.department }}" />{{/if}}
|
|
9
|
+
|
|
10
|
+
<!-- Open Graph protocol https://ogp.me/ basics -->
|
|
11
|
+
<meta property="og:title" content="{{ title }}" />
|
|
12
|
+
<meta name="twitter:title" content="{{ title }}" />
|
|
13
|
+
{{#if description }}<meta property="og:description" content="{{ description }}" />{{/if}}
|
|
14
|
+
{{#ifAny og.twitter_description description }}<meta name="twitter:description" content="{{#if og.twitter_description }}{{ og.twitter_description }}{{else}}{{ description }}{{/if}}" />{{/ifAny}}
|
|
15
|
+
{{#if og.image }}<meta property="og:image" content="{{ og.image }}">{{/if}}
|
|
16
|
+
{{#ifAny og.twitter_image og.image }}<meta name="twitter:image:src" content="{{#if og.twitter_image }}{{ og.twitter_image }}{{else}}{{ og.image }}{{/if}}" />{{/ifAny}}
|
|
17
|
+
{{#if uri }}<meta property="og:url" content="{{ uri }}" />{{/if}}
|
|
18
|
+
{{#if og.type }}<meta property="og:type" content="{{og.type}}" />{{/if}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import MetaDcTermsData from "./MetaOpenGraph.data.json";
|
|
2
|
+
import { MetaOpenGraph } from "./MetaOpenGraph.js";
|
|
3
|
+
|
|
4
|
+
const defaultData = {
|
|
5
|
+
...MetaDcTermsData,
|
|
6
|
+
title: "this is my title",
|
|
7
|
+
uri: "https://forgov.qld.gov.au/projects-and-initiatives/search-for-projects-and-initiatives",
|
|
8
|
+
description: "this is my description",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
tags: ["autodocs"],
|
|
13
|
+
title: "!Core/Head/Meta OpenGraph and SEO",
|
|
14
|
+
args: defaultData,
|
|
15
|
+
render: (args) => {
|
|
16
|
+
return new MetaOpenGraph(args).html;
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
argTypes: {
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
parameters: {
|
|
23
|
+
docs: {
|
|
24
|
+
controls: {
|
|
25
|
+
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Default head metadata
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export const Default = {};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -112,11 +112,11 @@ export async function showSuggestions(value = '', isDefault = false, form) {
|
|
|
112
112
|
if (fetchedSuggestions.length > 0) {
|
|
113
113
|
dynamicSuggestionsContainer.innerHTML = `
|
|
114
114
|
<div class="suggestions-category mt-2">
|
|
115
|
-
<strong>Suggestions</strong>
|
|
115
|
+
<strong class="suggestions-category-label">Suggestions</strong>
|
|
116
116
|
<ul class="mt-2">${fetchedSuggestions.slice(0, 4).map(item => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
const highlightedText = item.replace(new RegExp(`(${value})`, 'gi'), '<strong>$1</strong>');
|
|
118
|
+
return `<li><a href="#">${highlightedText}</a></li>`;
|
|
119
|
+
}).join('')}</ul>
|
|
120
120
|
</div>`;
|
|
121
121
|
dynamicSuggestionsContainer.style.display = 'block';
|
|
122
122
|
createPopper(searchInput, suggestions, {
|
|
@@ -144,7 +144,7 @@ export async function showSuggestions(value = '', isDefault = false, form) {
|
|
|
144
144
|
if (fetchedServices.response.resultPacket && fetchedServices.response.resultPacket.results.length > 0) {
|
|
145
145
|
dynamicSuggestionsContainer.innerHTML += `
|
|
146
146
|
<div class="suggestions-category feature pt-2">
|
|
147
|
-
<strong>Services</strong>
|
|
147
|
+
<strong class="suggestions-category-label">Services</strong>
|
|
148
148
|
<ul class="mt-2">${fetchedServices.response.resultPacket.results.slice(0, 4).map(item => `<li><a href="${item.liveUrl}">${item.title}</a></li>`).join('')}</ul>
|
|
149
149
|
</div>`;
|
|
150
150
|
dynamicSuggestionsContainer.style.display = 'block';
|
|
@@ -190,4 +190,4 @@ export function submitSearchForm(query = '', form) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
// Attach the function to the window object to make it globally accessible
|
|
193
|
-
window.selectSuggestion = (value, form) => selectSuggestion(value, form);
|
|
193
|
+
window.selectSuggestion = (value, form) => selectSuggestion(value, form);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<ul class="suggestions suggestions__group">
|
|
16
16
|
<div class="default-suggestions">
|
|
17
17
|
<div class="suggestions-category mt-2">
|
|
18
|
-
<strong>Popular services</strong>
|
|
18
|
+
<strong class="suggestions-category-label">Popular services</strong>
|
|
19
19
|
<ul class="mt-2">
|
|
20
20
|
{{#each default_suggestions.popular_services}}
|
|
21
21
|
<li><a href="{{link}}">{{title}}</a></li>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<hr>
|
|
27
27
|
|
|
28
28
|
<div class="suggestions-category mt-2">
|
|
29
|
-
<strong>Browse by category</strong>
|
|
29
|
+
<strong class="suggestions-category-label">Browse by category</strong>
|
|
30
30
|
<ul class="mt-2">
|
|
31
31
|
{{#each default_suggestions.categories}}
|
|
32
32
|
<li><a href="{{link}}">{{title}}</a></li>
|
|
@@ -35,7 +35,17 @@
|
|
|
35
35
|
border-bottom: solid .25rem var(--#{$prefix}site-search-suggestions-hover__border_color);
|
|
36
36
|
|
|
37
37
|
.suggestions-category {
|
|
38
|
-
|
|
38
|
+
&-label {
|
|
39
|
+
padding: 0 1rem;
|
|
40
|
+
}
|
|
41
|
+
ul {
|
|
42
|
+
li {
|
|
43
|
+
a {
|
|
44
|
+
padding: 0.5rem 1rem;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
hr {
|
|
@@ -90,6 +100,7 @@
|
|
|
90
100
|
min-height: 3rem;
|
|
91
101
|
list-style: none;
|
|
92
102
|
cursor: pointer;
|
|
103
|
+
margin-top: 0;
|
|
93
104
|
|
|
94
105
|
a {
|
|
95
106
|
vertical-align: middle;
|
|
@@ -102,8 +113,6 @@
|
|
|
102
113
|
|
|
103
114
|
&:hover {
|
|
104
115
|
background-color: var(--#{$prefix}site-search-suggestions-hover);
|
|
105
|
-
margin: 0 -1rem;
|
|
106
|
-
padding: 0 1rem;
|
|
107
116
|
|
|
108
117
|
a {
|
|
109
118
|
text-decoration: underline;
|
|
@@ -142,14 +151,14 @@
|
|
|
142
151
|
}
|
|
143
152
|
|
|
144
153
|
.btn {
|
|
145
|
-
|
|
154
|
+
box-shadow: none;
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
.form-control {
|
|
149
158
|
padding: 0.75rem 1rem 0.75rem 3rem;
|
|
150
159
|
border-radius: 0.25rem;
|
|
151
160
|
border: 0.125rem solid var(--border-color);
|
|
152
|
-
background: var(--background-color);
|
|
161
|
+
background: var(--background-color);
|
|
153
162
|
padding-right: 6rem;
|
|
154
163
|
color: var(--text-color);
|
|
155
164
|
|
|
@@ -173,7 +182,7 @@
|
|
|
173
182
|
--placeholder-color: var(--qld-text-grey);
|
|
174
183
|
--border-color: var(--qld-soft-grey);
|
|
175
184
|
--background-color: var(--qld-white);
|
|
176
|
-
|
|
185
|
+
|
|
177
186
|
outline: 0.188rem solid var(--outline-color);
|
|
178
187
|
outline-offset: 0.125rem;
|
|
179
188
|
}
|
|
@@ -221,6 +230,7 @@
|
|
|
221
230
|
}
|
|
222
231
|
}
|
|
223
232
|
}
|
|
233
|
+
|
|
224
234
|
#search-button {
|
|
225
235
|
&.btn {
|
|
226
236
|
padding: 0;
|
|
@@ -230,7 +240,7 @@
|
|
|
230
240
|
.btn-icon {
|
|
231
241
|
margin-left: 0.65rem;
|
|
232
242
|
}
|
|
233
|
-
}
|
|
243
|
+
}
|
|
234
244
|
}
|
|
235
245
|
|
|
236
246
|
//Hide the search icon (input field) on small screens
|