@qld-gov-au/qgds-bootstrap5 2.0.12 → 2.1.1
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-generate-icon-assets.js +31 -24
- package/.storybook/preview.js +15 -6
- package/dist/assets/components/bs5/button/button.hbs +1 -1
- package/dist/assets/components/bs5/callToAction/callToAction.hbs +3 -3
- package/dist/assets/components/bs5/dateinput/dateinput.hbs +21 -27
- package/dist/assets/components/bs5/footer/customLinks.hbs +1 -1
- package/dist/assets/components/bs5/footer/followLinks.hbs +1 -1
- package/dist/assets/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/dist/assets/components/bs5/pagination/pagination.hbs +7 -2
- package/dist/assets/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +11 -9
- package/dist/assets/css/qld.bootstrap.css +2 -2
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
- package/dist/assets/img/icons-sprite.svg +24 -24
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.init.min.js +80 -64
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/js/handlebars.partials.js +80 -64
- package/dist/assets/js/handlebars.partials.js.map +2 -2
- package/dist/assets/js/qld.bootstrap.min.js +6 -6
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/assets/node/handlebars.init.min.js +28 -19
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/button/button.hbs +1 -1
- package/dist/components/bs5/callToAction/callToAction.hbs +3 -3
- package/dist/components/bs5/dateinput/dateinput.hbs +21 -27
- package/dist/components/bs5/footer/customLinks.hbs +1 -1
- package/dist/components/bs5/footer/followLinks.hbs +1 -1
- package/dist/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/dist/components/bs5/pagination/pagination.hbs +7 -2
- package/dist/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/dist/components/bs5/searchInput/searchInput.hbs +11 -9
- package/dist/package.json +33 -32
- package/dist/sample-data/callToAction/callToAction.data.json +2 -1
- package/dist/sample-data/dateinput/dateinput.data.json +3 -1
- package/dist/sample-data/footer/footer.data.json +3 -0
- package/dist/sample-data/inpageAlert/inpageAlert.data.json +1 -1
- package/dist/sample-data/pagination/pagination.data.json +4 -4
- package/dist/sample-data/promotionalPanel/promotionalPanel.data.json +45 -47
- package/dist/sample-data/searchInput/searchInput.data.json +1 -0
- package/package.json +33 -32
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +4 -4
- package/src/components/bs5/button/Button.js +32 -6
- package/src/components/bs5/button/button.hbs +1 -1
- package/src/components/bs5/button/button.scss +1 -5
- package/src/components/bs5/button/button.stories.js +16 -4
- package/src/components/bs5/callToAction/callToAction.data.json +2 -1
- package/src/components/bs5/callToAction/callToAction.hbs +3 -3
- package/src/components/bs5/callToAction/callToAction.stories.js +2 -2
- package/src/components/bs5/card/card.scss +4 -2
- package/src/components/bs5/dateinput/Dateinput.js +1 -38
- package/src/components/bs5/dateinput/Dateinput.mdx +27 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +48 -4
- package/src/components/bs5/dateinput/dateinput.data.json +3 -1
- package/src/components/bs5/dateinput/dateinput.functions.js +91 -0
- package/src/components/bs5/dateinput/dateinput.hbs +21 -27
- package/src/components/bs5/footer/customLinks.hbs +1 -1
- package/src/components/bs5/footer/followLinks.hbs +1 -1
- package/src/components/bs5/footer/footer.data.json +3 -0
- package/src/components/bs5/formcheck/_form-variables.scss +36 -0
- package/src/components/bs5/formcheck/formcheck.scss +59 -14
- package/src/components/bs5/globalAlert/globalAlert.hbs +8 -1
- package/src/components/bs5/globalAlert/globalAlert.scss +14 -19
- package/src/components/bs5/globalAlert/globalAlert.stories.js +1 -0
- package/src/components/bs5/globalAlert/globalAlert.test.js +10 -5
- package/src/components/bs5/header/header.scss +1 -2
- package/src/components/bs5/icons/_icons.list.js +7 -7
- package/src/components/bs5/icons/_icons.list.scss +113 -112
- package/src/components/bs5/icons/_icons.variables.scss +7 -6
- package/src/components/bs5/icons/icons.scss +2 -1
- package/src/components/bs5/inpageAlert/inpageAlert.data.json +1 -1
- package/src/components/bs5/inpageAlert/inpageAlert.hbs +10 -2
- package/src/components/bs5/inpageAlert/inpageAlert.scss +52 -55
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +54 -3
- package/src/components/bs5/inpagenav/inpagenav.scss +9 -1
- package/src/components/bs5/modal/modal.scss +1 -1
- package/src/components/bs5/navbar/navbar.functions.js +39 -28
- package/src/components/bs5/navbar/navbar.scss +43 -28
- package/src/components/bs5/navbar/navbar.stories.js +4 -3
- package/src/components/bs5/pageLayout/PaletteShowcase.stories.js +4 -3
- package/src/components/bs5/pagination/pagination.data.json +4 -4
- package/src/components/bs5/pagination/pagination.hbs +7 -2
- package/src/components/bs5/pagination/pagination.scss +1 -1
- package/src/components/bs5/promotionalPanel/promotionalPanel.data.json +45 -47
- package/src/components/bs5/promotionalPanel/promotionalPanel.hbs +1 -1
- package/src/components/bs5/quickexit/quickexit.scss +1 -1
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +16 -16
- package/src/components/bs5/searchInput/search.functions.js +70 -71
- package/src/components/bs5/searchInput/searchInput.data.json +1 -0
- package/src/components/bs5/searchInput/searchInput.hbs +11 -9
- package/src/components/bs5/searchInput/searchInput.scss +92 -38
- package/src/components/bs5/searchInput/searchInput.test.js +91 -119
- package/src/components/bs5/sidenav/sidenav.scss +17 -19
- package/src/components/bs5/skiplinks/skipLinks.scss +12 -4
- package/src/components/bs5/table/table.scss +93 -83
- package/src/components/common/focus-styles/focusStyles.mdx +20 -0
- package/src/components/common/focus-styles/focusStyles.stories.js +58 -0
- package/src/css/functions/_index.scss +3 -0
- package/src/css/functions/color-icon.scss +31 -0
- package/src/css/functions/string-replace.scss +49 -0
- package/src/css/functions/svg-encode.scss +22 -0
- package/src/css/main.scss +3 -0
- package/src/css/mixins/focusable.scss +1 -1
- package/src/css/mixins/make-icon.scss +1 -1
- package/src/css/mixins/make-link.scss +13 -10
- package/src/css/qld-palettes.scss +20 -12
- package/src/css/qld-reduced-motion.scss +51 -0
- package/src/css/qld-tokens.scss +3 -3
- package/src/css/qld-type.scss +11 -13
- package/src/css/qld-utilities.scss +9 -1
- package/src/css/qld-variables.scss +1 -1
- package/src/img/icons-sprite.svg +24 -24
- package/src/js/constants.js +10 -0
- package/src/js/qld.bootstrap.js +99 -151
- package/src/js/utils.js +3 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
<div class="alert {{variantClass}} {{customClass}}" role="alert"
|
|
2
|
-
{{#if
|
|
1
|
+
<div class="alert {{variantClass}} {{customClass}}" role="alert"
|
|
2
|
+
{{#if ariaLabel}}
|
|
3
|
+
aria-label="{{ ariaLabel }}"
|
|
4
|
+
{{else}}
|
|
5
|
+
{{#ifCond variantClass "==" "alert-info"}}aria-label="Information alert"{{/ifCond}}
|
|
6
|
+
{{#ifCond variantClass "==" "alert-success"}}aria-label="Success alert"{{/ifCond}}
|
|
7
|
+
{{#ifCond variantClass "==" "alert-error"}}aria-label="Error alert"{{/ifCond}}
|
|
8
|
+
{{#ifCond variantClass "==" "alert-warning"}}aria-label="Warning alert"{{/ifCond}}
|
|
9
|
+
{{/if}}
|
|
10
|
+
>
|
|
3
11
|
{{#if heading}}
|
|
4
12
|
{{#if headingTag}}
|
|
5
13
|
<{{headingTag}} class="alert-heading">{{{ heading }}}</{{headingTag}}>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// QLD Desing System Bootstrap 5 library
|
|
2
2
|
// Extends: https://getbootstrap.com/docs/5.3/components/alerts/#variables
|
|
3
|
+
@use "../../../css/mixins" as m;
|
|
3
4
|
|
|
4
5
|
//All alerts have the same text and background color, even on darker themes
|
|
5
6
|
//To account for this, we redefine the global vars at the .alert scope
|
|
@@ -12,6 +13,7 @@
|
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.alert {
|
|
16
|
+
position: relative;
|
|
15
17
|
padding-left: 4rem;
|
|
16
18
|
overflow-wrap: break-word;
|
|
17
19
|
|
|
@@ -28,12 +30,11 @@
|
|
|
28
30
|
ul,
|
|
29
31
|
ol {
|
|
30
32
|
line-height: 1.5;
|
|
31
|
-
|
|
32
|
-
&:last-of-type {
|
|
33
|
-
margin-bottom: 0;
|
|
34
|
-
}
|
|
35
33
|
}
|
|
36
34
|
|
|
35
|
+
&> :last-child {
|
|
36
|
+
margin-bottom: 0;
|
|
37
|
+
}
|
|
37
38
|
// Close button for dismissible alerts
|
|
38
39
|
.btn-close {
|
|
39
40
|
position: absolute;
|
|
@@ -45,79 +46,75 @@
|
|
|
45
46
|
no-repeat center center;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
&:before,
|
|
51
|
-
&:after {
|
|
52
|
-
content: "";
|
|
53
|
-
width: 3rem;
|
|
54
|
-
position: absolute;
|
|
55
|
-
left: 0;
|
|
56
|
-
top: 0;
|
|
57
|
-
bottom: 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:after {
|
|
61
|
-
color: #fff;
|
|
62
|
-
background-repeat: no-repeat;
|
|
63
|
-
background-position: center center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
//alerts color map
|
|
67
|
-
$alert-colors-map: (
|
|
49
|
+
//alerts color map with icons
|
|
50
|
+
$alert-icons-map: (
|
|
68
51
|
"success": (
|
|
69
|
-
color: var(--#{$prefix}success),
|
|
70
|
-
icon:
|
|
71
|
-
"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_82645' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='0' y='0' width='20' height='20'%3E%3Cpath d='M9.2207 12.6953C8.99805 12.918 8.58984 12.918 8.36719 12.6953L5.99219 10.3203C5.76953 10.0977 5.76953 9.68945 5.99219 9.4668C6.21484 9.24414 6.62305 9.24414 6.8457 9.4668L8.8125 11.4336L13.1172 7.0918C13.3398 6.86914 13.748 6.86914 13.9707 7.0918C14.1934 7.31445 14.1934 7.72266 13.9707 7.94531L9.2207 12.6953ZM19.5 9.875C19.5 15.1445 15.2324 19.375 10 19.375C4.73047 19.375 0.5 15.1445 0.5 9.875C0.5 4.64258 4.73047 0.375 10 0.375C15.2324 0.375 19.5 4.64258 19.5 9.875ZM10 1.5625C5.39844 1.5625 1.6875 5.31055 1.6875 9.875C1.6875 14.4766 5.39844 18.1875 10 18.1875C14.5645 18.1875 18.3125 14.4766 18.3125 9.875C18.3125 5.31055 14.5645 1.5625 10 1.5625Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_5702_82645)'%3E%3Crect width='20' height='20' fill='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
|
|
52
|
+
"color": var(--#{$prefix}success),
|
|
53
|
+
"icon": "alert-success",
|
|
72
54
|
),
|
|
73
55
|
"info": (
|
|
74
|
-
color: var(--#{$prefix}info),
|
|
75
|
-
icon:
|
|
76
|
-
"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='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
|
|
56
|
+
"color": var(--#{$prefix}info),
|
|
57
|
+
"icon": "alert-information",
|
|
77
58
|
),
|
|
78
59
|
"warning": (
|
|
79
|
-
color: var(--#{$prefix}warning),
|
|
80
|
-
icon:
|
|
81
|
-
"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",
|
|
60
|
+
"color": var(--#{$prefix}warning),
|
|
61
|
+
"icon": "alert-warning",
|
|
82
62
|
),
|
|
83
63
|
"danger": (
|
|
84
|
-
color: var(--#{$prefix}danger),
|
|
85
|
-
icon:
|
|
86
|
-
"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_34619_4370' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='4' width='12' height='12'%3E%3Cpath d='M14.8438 14.875C14.6562 15.0625 14.3125 15.0625 14.125 14.875L10 10.7188L5.84375 14.875C5.65625 15.0625 5.3125 15.0625 5.125 14.875C4.9375 14.6875 4.9375 14.3438 5.125 14.1562L9.28125 10L5.125 5.875C4.9375 5.6875 4.9375 5.34375 5.125 5.15625C5.3125 4.96875 5.65625 4.96875 5.84375 5.15625L10 9.3125L14.125 5.15625C14.3125 4.96875 14.6562 4.96875 14.8438 5.15625C15.0312 5.34375 15.0312 5.6875 14.8438 5.875L10.6875 10L14.8438 14.1562C15.0312 14.3438 15.0312 14.6875 14.8438 14.875Z' fill='%2303213F'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_34619_4370)'%3E%3Crect width='20' height='20' fill='white'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='9.5' stroke='white'/%3E%3C/svg%3E%0A",
|
|
64
|
+
"color": var(--#{$prefix}danger),
|
|
65
|
+
"icon": "alert-danger",
|
|
87
66
|
),
|
|
88
|
-
//.alert-error can be a clone of .alert-danger
|
|
89
67
|
"error": (
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
),
|
|
68
|
+
"color": var(--#{$prefix}danger),
|
|
69
|
+
"icon": "alert-danger",
|
|
70
|
+
),
|
|
94
71
|
"light": (
|
|
95
|
-
color: var(--#{$prefix}light-grey),
|
|
96
|
-
icon:
|
|
97
|
-
"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='%23595959'/%3E%3C/g%3E%3C/svg%3E%0A",
|
|
72
|
+
"color": var(--#{$prefix}light-grey),
|
|
73
|
+
"icon": null,
|
|
98
74
|
),
|
|
99
75
|
"dark": (
|
|
100
|
-
color: var(--#{$prefix}dark-grey),
|
|
101
|
-
icon:
|
|
102
|
-
"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='%23FFFFFF'/%3E%3C/g%3E%3C/svg%3E%0A",
|
|
76
|
+
"color": var(--#{$prefix}dark-grey),
|
|
77
|
+
"icon": null,
|
|
103
78
|
),
|
|
104
79
|
);
|
|
105
80
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
81
|
+
&:before,
|
|
82
|
+
&:after {
|
|
83
|
+
content: "";
|
|
84
|
+
position: absolute;
|
|
85
|
+
left: 0;
|
|
86
|
+
top: 0;
|
|
87
|
+
bottom: 0;
|
|
88
|
+
color: #fff;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:before {
|
|
92
|
+
width: 3rem;
|
|
93
|
+
}
|
|
110
94
|
|
|
95
|
+
//Sets border color and icon for each alert type
|
|
96
|
+
@each $key, $values in $alert-icons-map {
|
|
111
97
|
&-#{$key} {
|
|
112
|
-
border-color: $color;
|
|
98
|
+
border-color: map-get($values, "color");
|
|
113
99
|
border-width: 2px;
|
|
114
100
|
|
|
115
101
|
&:before {
|
|
116
|
-
background-color: $color;
|
|
102
|
+
background-color: map-get($values, "color");
|
|
117
103
|
}
|
|
118
104
|
|
|
119
|
-
|
|
120
|
-
|
|
105
|
+
@if map-get($values, "icon") {
|
|
106
|
+
@include m.make-icon(
|
|
107
|
+
$name: map-get($values, "icon"),
|
|
108
|
+
$size: "md",
|
|
109
|
+
$pseudo: "after"
|
|
110
|
+
) {
|
|
111
|
+
height: 100%;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
color: #fff;
|
|
116
|
+
margin: 0 0.75rem;
|
|
117
|
+
}
|
|
121
118
|
}
|
|
122
119
|
}
|
|
123
120
|
}
|
|
@@ -49,9 +49,9 @@ export default {
|
|
|
49
49
|
},
|
|
50
50
|
options: ["alert-success", "alert-info", "alert-warning", "alert-error"],
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
name: "
|
|
54
|
-
description: `
|
|
52
|
+
ariaLabel: {
|
|
53
|
+
name: "ARIA Label",
|
|
54
|
+
description: `Accessible label for the alert announced to screen readers. e.g "Success alert", "Information alert", "Warning alert", "Error alert".`,
|
|
55
55
|
},
|
|
56
56
|
headingTag: {
|
|
57
57
|
name: "Heading Tag",
|
|
@@ -88,3 +88,54 @@ export const Dark = {
|
|
|
88
88
|
},
|
|
89
89
|
],
|
|
90
90
|
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* All alert variants with proper accessibility.
|
|
94
|
+
* Each alert includes CSS-based icons and a visually-hidden span for screen readers.
|
|
95
|
+
*/
|
|
96
|
+
export const AllVariants = {
|
|
97
|
+
name: "All Alert Types (Accessibility)",
|
|
98
|
+
render: () => {
|
|
99
|
+
const alerts = [
|
|
100
|
+
{
|
|
101
|
+
variantClass: "alert-success",
|
|
102
|
+
ariaLabel: "Success alert",
|
|
103
|
+
heading: "Success Alert",
|
|
104
|
+
content: "<p>This action was completed successfully.</p>",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
variantClass: "alert-info",
|
|
108
|
+
ariaLabel: "Information alert",
|
|
109
|
+
heading: "Information Alert",
|
|
110
|
+
content: "<p>Here is some important information for you to know.</p>",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
variantClass: "alert-warning",
|
|
114
|
+
ariaLabel: "Warning alert",
|
|
115
|
+
heading: "Warning Alert",
|
|
116
|
+
content: "<p>Please be aware of this potential issue.</p>",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
variantClass: "alert-error",
|
|
120
|
+
ariaLabel: "Error alert",
|
|
121
|
+
heading: "Error Alert",
|
|
122
|
+
content: "<p>An error occurred. Please try again.</p>",
|
|
123
|
+
},
|
|
124
|
+
];
|
|
125
|
+
|
|
126
|
+
return alerts
|
|
127
|
+
.map(
|
|
128
|
+
(alertData) => `
|
|
129
|
+
<div class="mb-4">
|
|
130
|
+
${new InpageAlert(alertData).html}
|
|
131
|
+
</div>
|
|
132
|
+
`
|
|
133
|
+
)
|
|
134
|
+
.join("");
|
|
135
|
+
},
|
|
136
|
+
parameters: {
|
|
137
|
+
controls: {
|
|
138
|
+
disable: true,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
};
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
--#{$prefix}inpage-nav-border-color: var(--#{$prefix}dark-action-primary);
|
|
15
15
|
|
|
16
16
|
.nav {
|
|
17
|
-
--#{$prefix}nav-link-color: var(--#{$prefix}white);
|
|
17
|
+
--#{$prefix}nav-link-color: var(--#{$prefix}neutral-white);
|
|
18
18
|
--#{$prefix}nav-link-hover-color: var(--#{$prefix}brand-accent);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -40,12 +40,20 @@
|
|
|
40
40
|
|
|
41
41
|
.nav-item {
|
|
42
42
|
margin-top: 0;
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
|
|
43
45
|
.nav-link {
|
|
44
46
|
padding-top: var(--#{$prefix}inpage-nav-link-padding-y);
|
|
45
47
|
padding-bottom: var(--#{$prefix}inpage-nav-link-padding-y);
|
|
46
48
|
padding-left: var(--#{$prefix}inpage-nav-title-padding-left);
|
|
49
|
+
padding-right: 0;
|
|
47
50
|
color: var(--#{$prefix}nav-link-color);
|
|
48
51
|
text-decoration-line: underline;
|
|
52
|
+
|
|
53
|
+
&:hover,
|
|
54
|
+
&:visited {
|
|
55
|
+
text-decoration-color: var(--qld-link-underline);
|
|
56
|
+
}
|
|
49
57
|
}
|
|
50
58
|
|
|
51
59
|
&:first-child .nav-link {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
--#{$prefix}color-default-color-light-text-heading
|
|
52
52
|
);
|
|
53
53
|
--#{$prefix}btn-close-focus-shadow: none;
|
|
54
|
-
--#{$prefix}btn-close-focus-border: var(--#{$prefix}focus-
|
|
54
|
+
--#{$prefix}btn-close-focus-border: var(--#{$prefix}color-default-color-light-focus-default) solid 3px;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createFocusTrap } from "../../../js/utils.js";
|
|
2
|
+
import { breakpoints } from "../../../js/constants.js";
|
|
2
3
|
|
|
3
4
|
export function initializeNavbar() {
|
|
4
|
-
const
|
|
5
|
+
const navbar = document.getElementById("main-nav");
|
|
5
6
|
const overlay = document.getElementById("overlay");
|
|
6
7
|
const burgerBtn = document.getElementById("burgerBtn");
|
|
7
8
|
const burgerCloseBtn = document.getElementById("burgerCloseBtn");
|
|
@@ -25,26 +26,21 @@ export function initializeNavbar() {
|
|
|
25
26
|
let mobileFocusTrap = null;
|
|
26
27
|
const dropdownFocusTraps = new Map();
|
|
27
28
|
|
|
28
|
-
// Helper function to close navbar
|
|
29
29
|
function closeNavbar() {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (mobileFocusTrap) {
|
|
38
|
-
mobileFocusTrap.deactivate();
|
|
39
|
-
mobileFocusTrap = null;
|
|
40
|
-
}
|
|
30
|
+
// Do not call static method bootstrap.Collapse.getInstance(navbar).hide()
|
|
31
|
+
// because storybook has a problem with referencing global bootstrap object in production build.
|
|
32
|
+
// Instead simulate the close button click - same thing.
|
|
33
|
+
// Do not put side effects of closing menu here (eg clearing menu focus trap), instead use "hidden.bs.collapse" or "hide.bs.collapse" event handlers declared below.
|
|
34
|
+
// Need to check if menu is actually set to show, otherwise cick will open instead.
|
|
35
|
+
if (navbar?.classList.contains("show")) {
|
|
36
|
+
burgerCloseBtn?.click();
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
// Create mobile focus trap on-demand (when mobile menu opens)
|
|
45
41
|
function createMobileFocusTrap() {
|
|
46
|
-
if (!mobileFocusTrap &&
|
|
47
|
-
mobileFocusTrap = createFocusTrap(
|
|
42
|
+
if (!mobileFocusTrap && navbar) {
|
|
43
|
+
mobileFocusTrap = createFocusTrap(navbar, {
|
|
48
44
|
returnFocusElement: burgerBtn,
|
|
49
45
|
onEscape: () => {
|
|
50
46
|
closeNavbar();
|
|
@@ -75,7 +71,7 @@ export function initializeNavbar() {
|
|
|
75
71
|
// Setup dropdown event listeners
|
|
76
72
|
function setupDropdownListeners() {
|
|
77
73
|
// Find all dropdown toggles (elements with data-bs-toggle="dropdown")
|
|
78
|
-
const dropdownToggles =
|
|
74
|
+
const dropdownToggles = navbar?.querySelectorAll(
|
|
79
75
|
'[data-bs-toggle="dropdown"]',
|
|
80
76
|
);
|
|
81
77
|
|
|
@@ -90,7 +86,7 @@ export function initializeNavbar() {
|
|
|
90
86
|
|
|
91
87
|
// Listen for dropdown show event (desktop only)
|
|
92
88
|
toggle.addEventListener("shown.bs.dropdown", () => {
|
|
93
|
-
const isMobile = window.innerWidth <
|
|
89
|
+
const isMobile = window.innerWidth < breakpoints.lg;
|
|
94
90
|
if (!isMobile) {
|
|
95
91
|
// Create and activate focus trap on-demand
|
|
96
92
|
const dropdownTrap = getOrCreateDropdownFocusTrap(dropdown, toggle);
|
|
@@ -101,7 +97,7 @@ export function initializeNavbar() {
|
|
|
101
97
|
// Listen for dropdown hide event
|
|
102
98
|
toggle.addEventListener("hidden.bs.dropdown", () => {
|
|
103
99
|
const dropdownTrap = dropdownFocusTraps.get(dropdown);
|
|
104
|
-
if (dropdownTrap && dropdownTrap.isActive
|
|
100
|
+
if (dropdownTrap && dropdownTrap.isActive) {
|
|
105
101
|
dropdownTrap.deactivate();
|
|
106
102
|
}
|
|
107
103
|
});
|
|
@@ -109,7 +105,7 @@ export function initializeNavbar() {
|
|
|
109
105
|
}
|
|
110
106
|
|
|
111
107
|
// Setup dropdown listeners on load
|
|
112
|
-
if (
|
|
108
|
+
if (navbar) {
|
|
113
109
|
setupDropdownListeners();
|
|
114
110
|
}
|
|
115
111
|
|
|
@@ -119,7 +115,7 @@ export function initializeNavbar() {
|
|
|
119
115
|
});
|
|
120
116
|
|
|
121
117
|
const resetNavbarState = () => {
|
|
122
|
-
const isMobile = window.innerWidth <
|
|
118
|
+
const isMobile = window.innerWidth < breakpoints.lg;
|
|
123
119
|
const dropdownToggles = document.querySelectorAll(
|
|
124
120
|
".navbar a.dropdown-toggle, .navbar a.no-dropdown-toggle",
|
|
125
121
|
);
|
|
@@ -138,20 +134,40 @@ export function initializeNavbar() {
|
|
|
138
134
|
toggle.setAttribute("data-bs-toggle", "dropdown");
|
|
139
135
|
}
|
|
140
136
|
});
|
|
137
|
+
|
|
138
|
+
if (!isMobile) {
|
|
139
|
+
closeNavbar();
|
|
140
|
+
}
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
window.addEventListener("resize", resetNavbarState);
|
|
144
144
|
resetNavbarState();
|
|
145
145
|
|
|
146
|
+
//All associated side effects of navbar collapse beginning belong here
|
|
147
|
+
navbar?.addEventListener("hide.bs.collapse", () => {
|
|
148
|
+
overlay?.classList.remove("show");
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
// All associated side effects of navbar collapse completion belong here.
|
|
152
|
+
navbar?.addEventListener("hidden.bs.collapse", () => {
|
|
153
|
+
setAriaHidden(false);
|
|
154
|
+
|
|
155
|
+
// Deactivate and destroy mobile focus trap
|
|
156
|
+
if (mobileFocusTrap) {
|
|
157
|
+
mobileFocusTrap.deactivate();
|
|
158
|
+
mobileFocusTrap = null;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
|
|
146
162
|
// Burger buttons - handle open (mobile only)
|
|
147
|
-
|
|
163
|
+
navbar?.addEventListener("shown.bs.collapse", () => {
|
|
148
164
|
// Check if navbar is opening
|
|
149
165
|
setTimeout(() => {
|
|
150
|
-
if (
|
|
166
|
+
if (navbar?.classList.contains("show")) {
|
|
151
167
|
setAriaHidden(true);
|
|
152
168
|
|
|
153
169
|
// Create and activate focus trap when navbar opens (mobile only - whole navbar)
|
|
154
|
-
const isMobile = window.innerWidth <
|
|
170
|
+
const isMobile = window.innerWidth < breakpoints.lg;
|
|
155
171
|
if (isMobile) {
|
|
156
172
|
const trap = createMobileFocusTrap();
|
|
157
173
|
trap.activate();
|
|
@@ -159,9 +175,4 @@ export function initializeNavbar() {
|
|
|
159
175
|
}
|
|
160
176
|
}, 0);
|
|
161
177
|
});
|
|
162
|
-
|
|
163
|
-
// Close button
|
|
164
|
-
burgerCloseBtn?.addEventListener("click", () => {
|
|
165
|
-
closeNavbar();
|
|
166
|
-
});
|
|
167
178
|
}
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
& > a {
|
|
54
54
|
width: calc(100% - 3rem);
|
|
55
|
-
border-start-end-radius: 1rem;
|
|
55
|
+
border-start-end-radius: 1rem;
|
|
56
56
|
}
|
|
57
57
|
&:has(.show) {
|
|
58
58
|
background-color: var(--background-color-hover);
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
.nav-link {
|
|
67
|
-
|
|
68
67
|
background-color: var(--dropdown-show-bg);
|
|
69
68
|
border-inline-start-color: var(--dropdown-show-bg);
|
|
70
69
|
}
|
|
@@ -152,7 +151,11 @@
|
|
|
152
151
|
position: absolute;
|
|
153
152
|
left: -9999px;
|
|
154
153
|
}
|
|
155
|
-
h2,
|
|
154
|
+
h2,
|
|
155
|
+
h3,
|
|
156
|
+
h4,
|
|
157
|
+
h5,
|
|
158
|
+
h6 {
|
|
156
159
|
color: var(--text-color);
|
|
157
160
|
}
|
|
158
161
|
div {
|
|
@@ -197,7 +200,7 @@
|
|
|
197
200
|
border-inline-start: 0.25rem solid var(--link-border-color-hover);
|
|
198
201
|
text-decoration: underline;
|
|
199
202
|
text-underline-offset: 0.3rem;
|
|
200
|
-
text-decoration-thickness: 0.125rem;
|
|
203
|
+
text-decoration-thickness: 0.125rem;
|
|
201
204
|
}
|
|
202
205
|
}
|
|
203
206
|
a.dropdown-item {
|
|
@@ -217,7 +220,7 @@
|
|
|
217
220
|
border-inline-start: 5px solid var(--link-border-color);
|
|
218
221
|
left: -5px;
|
|
219
222
|
top: 0;
|
|
220
|
-
bottom: calc(var(--border-width) *
|
|
223
|
+
bottom: calc(var(--border-width) * -1);
|
|
221
224
|
}
|
|
222
225
|
&:hover,
|
|
223
226
|
&.active {
|
|
@@ -226,15 +229,15 @@
|
|
|
226
229
|
margin-block-end: 0;
|
|
227
230
|
border-block-end: 0;
|
|
228
231
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
&::before {
|
|
233
|
+
border-inline-start: 0.25rem solid var(--link-border-color-hover);
|
|
234
|
+
}
|
|
232
235
|
}
|
|
233
236
|
&:hover {
|
|
234
237
|
.qld-icon {
|
|
235
238
|
background-color: var(--link-border-color-hover);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
238
241
|
&.dropdown-toggle {
|
|
239
242
|
&::after {
|
|
240
243
|
display: none;
|
|
@@ -312,7 +315,8 @@
|
|
|
312
315
|
height: 2rem;
|
|
313
316
|
}
|
|
314
317
|
/* colours */
|
|
315
|
-
&.dark,
|
|
318
|
+
&.dark,
|
|
319
|
+
&.dark-alt {
|
|
316
320
|
--vert-background-color: var(--#{$prefix}default-background);
|
|
317
321
|
--background-color: var(--#{$prefix}dark-background-shade);
|
|
318
322
|
--background-color-hover: var(--#{$prefix}dark-alt-background);
|
|
@@ -345,7 +349,7 @@
|
|
|
345
349
|
--header-color: var(--#{$prefix}light-text-heading);
|
|
346
350
|
--action-icon-color: var(--#{$prefix}alt-button-hover);
|
|
347
351
|
--dropdown-show-btn-bg: var(--#{$prefix}default-background);
|
|
348
|
-
--dropdown-show-btn-icon-color: var(--#{$prefix}alt-button-hover);
|
|
352
|
+
--dropdown-show-btn-icon-color: var(--#{$prefix}alt-button-hover);
|
|
349
353
|
--nav-header-color: var(--#{$prefix}dark-text-text);
|
|
350
354
|
--nav-header-border-color: var(--#{$prefix}dark-border);
|
|
351
355
|
--nav-header-icon-color: var(--#{$prefix}brand-accent);
|
|
@@ -388,7 +392,7 @@
|
|
|
388
392
|
--nav-header-icon-color: var(--#{$prefix}alt-button-hover);
|
|
389
393
|
--navbar-collapse-bg: var(--#{$prefix}default-background-shade);
|
|
390
394
|
--action-icon-color_active: var(--text-color);
|
|
391
|
-
|
|
395
|
+
|
|
392
396
|
.alt {
|
|
393
397
|
--vert-background-color: var(--#{$prefix}dark-background);
|
|
394
398
|
--background-color: var(--#{$prefix}default-background);
|
|
@@ -441,7 +445,8 @@
|
|
|
441
445
|
}
|
|
442
446
|
}
|
|
443
447
|
background-color: var(--background-color);
|
|
444
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
448
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
449
|
+
var(--link-border-color);
|
|
445
450
|
padding-block: 0;
|
|
446
451
|
button.dropdown-toggle,
|
|
447
452
|
.nav-header {
|
|
@@ -463,28 +468,33 @@
|
|
|
463
468
|
}
|
|
464
469
|
.navbar-nav a.nav-link {
|
|
465
470
|
background-color: var(--background-color);
|
|
466
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
471
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
472
|
+
var(--link-border-color);
|
|
467
473
|
margin-block-end: calc(var(--horizontal-bar-border-width) * -1);
|
|
468
474
|
&.show {
|
|
469
475
|
color: var(--link-color);
|
|
470
476
|
background-color: var(--dropdown-bg-color);
|
|
471
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
477
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
478
|
+
var(--dropdown-bg-color);
|
|
472
479
|
font-weight: 600;
|
|
473
480
|
z-index: 20;
|
|
474
481
|
&:hover {
|
|
475
482
|
background-color: var(--dropdown-bg-color);
|
|
476
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
483
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
484
|
+
var(--link-border-color-hover);
|
|
477
485
|
}
|
|
478
486
|
}
|
|
479
487
|
&.active {
|
|
480
488
|
color: var(--link-color);
|
|
481
489
|
background-color: var(--background-color);
|
|
482
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
490
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
491
|
+
var(--background-color);
|
|
483
492
|
}
|
|
484
493
|
&:hover,
|
|
485
494
|
&.active:hover {
|
|
486
495
|
background-color: var(--background-color-hover);
|
|
487
|
-
border-block-end: var(--horizontal-bar-border-width) solid
|
|
496
|
+
border-block-end: var(--horizontal-bar-border-width) solid
|
|
497
|
+
var(--link-border-color-hover);
|
|
488
498
|
}
|
|
489
499
|
.qld-icon {
|
|
490
500
|
background-color: var(--action-icon-color);
|
|
@@ -492,7 +502,7 @@
|
|
|
492
502
|
}
|
|
493
503
|
.navbar-nav a.nav-link,
|
|
494
504
|
a.dropdown-item {
|
|
495
|
-
color: var(--
|
|
505
|
+
color: var(--text-color);
|
|
496
506
|
padding-block: var(--nav-link-padding-block);
|
|
497
507
|
padding-inline: 0.75rem;
|
|
498
508
|
display: flex;
|
|
@@ -500,6 +510,7 @@
|
|
|
500
510
|
gap: 0.5rem;
|
|
501
511
|
align-items: center;
|
|
502
512
|
&:hover {
|
|
513
|
+
color: var(--link-color);
|
|
503
514
|
text-decoration: underline;
|
|
504
515
|
text-underline-offset: 0.3rem;
|
|
505
516
|
text-decoration-thickness: 0.125rem;
|
|
@@ -535,7 +546,9 @@
|
|
|
535
546
|
}
|
|
536
547
|
}
|
|
537
548
|
.dropdown-menu.show {
|
|
538
|
-
margin-block-start: calc(
|
|
549
|
+
margin-block-start: calc(
|
|
550
|
+
var(--horizontal-bar-border-width) - var(--border-width)
|
|
551
|
+
);
|
|
539
552
|
inset-inline: 0;
|
|
540
553
|
background-color: var(--dropdown-bg-color);
|
|
541
554
|
padding: 4rem;
|
|
@@ -548,7 +561,7 @@
|
|
|
548
561
|
grid-template-columns: repeat(3, 1fr);
|
|
549
562
|
column-gap: 2rem;
|
|
550
563
|
row-gap: 0;
|
|
551
|
-
z-index:
|
|
564
|
+
z-index: 999;
|
|
552
565
|
border-width: 0;
|
|
553
566
|
@include media-breakpoint-up(xl) {
|
|
554
567
|
column-gap: 4rem;
|
|
@@ -732,9 +745,9 @@
|
|
|
732
745
|
transition: max-width var(--animation-time) ease-in;
|
|
733
746
|
.navbar-collapse {
|
|
734
747
|
background-color: var(--navbar-collapse-bg);
|
|
735
|
-
}
|
|
748
|
+
}
|
|
736
749
|
a.dropdown-item {
|
|
737
|
-
font-size: .875rem;
|
|
750
|
+
font-size: 0.875rem;
|
|
738
751
|
}
|
|
739
752
|
@include repeatedVerticalStyles;
|
|
740
753
|
.nav-header .navbar-brand {
|
|
@@ -783,7 +796,7 @@
|
|
|
783
796
|
}
|
|
784
797
|
.nav-header {
|
|
785
798
|
display: flex;
|
|
786
|
-
}
|
|
799
|
+
}
|
|
787
800
|
&.collapse > .container {
|
|
788
801
|
animation-name: slideToRight;
|
|
789
802
|
animation-duration: var(--animation-time);
|
|
@@ -821,8 +834,10 @@
|
|
|
821
834
|
}
|
|
822
835
|
}
|
|
823
836
|
}
|
|
837
|
+
|
|
824
838
|
//Prevent double scrollbar when navabr is open
|
|
825
|
-
|
|
826
|
-
|
|
839
|
+
@include media-breakpoint-down("lg") {
|
|
840
|
+
body:has(.navbar.show) {
|
|
841
|
+
overflow: hidden;
|
|
842
|
+
}
|
|
827
843
|
}
|
|
828
|
-
|