@qld-gov-au/qgds-bootstrap5 2.0.7 → 2.0.9
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-handlebar-partial-builder.js +76 -66
- package/.storybook/preview.js +1 -1
- package/dist/assets/components/bs5/footer/footer.hbs +20 -18
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/header/header.hbs +40 -52
- package/dist/assets/components/bs5/header/headerBrand.hbs +9 -10
- package/dist/assets/components/bs5/image/image.hbs +8 -5
- package/dist/assets/components/bs5/logo/logo.hbs +2 -0
- package/dist/assets/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/dist/assets/components/bs5/searchInput/searchInput.hbs +5 -5
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
- package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
- package/dist/assets/img/coa-delivering-for-qld.svg +47 -0
- package/dist/assets/img/coa-delivering-for-qld.svg.old +58 -0
- package/dist/assets/img/coa-landscape-2lines.svg +63 -0
- package/dist/assets/img/coa-landscape-web.svg +56 -0
- 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.init.min.js +720 -708
- package/dist/assets/js/handlebars.init.min.js.map +4 -4
- package/dist/assets/js/handlebars.partials.js +720 -708
- package/dist/assets/js/handlebars.partials.js.map +4 -4
- package/dist/assets/js/qld.bootstrap.min.js +3 -3
- package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
- package/dist/assets/node/handlebars.init.min.js +239 -199
- package/dist/assets/node/handlebars.init.min.js.map +3 -3
- package/dist/components/bs5/footer/footer.hbs +20 -18
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/header/header.hbs +40 -52
- package/dist/components/bs5/header/headerBrand.hbs +9 -10
- package/dist/components/bs5/image/image.hbs +8 -5
- package/dist/components/bs5/logo/logo.hbs +2 -0
- package/dist/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/dist/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/dist/components/bs5/searchInput/searchInput.hbs +5 -5
- package/dist/package.json +12 -12
- package/dist/sample-data/breadcrumbs/breadcrumbs.data.json +1 -1
- package/dist/sample-data/header/header.variant.coBrand.data.json +5 -8
- package/dist/sample-data/header/header.variant.endorsed.data.json +3 -6
- package/dist/sample-data/header/header.variant.masterBrand.data.json +1 -6
- package/dist/sample-data/header/header.variant.standAlone.data.json +3 -6
- package/dist/sample-data/header/header.variant.subBrand.data.json +5 -8
- package/dist/sample-data/image/image.data.json +4 -2
- package/esbuild.js +1 -1
- package/package.json +12 -12
- package/src/components/bs5/banner/banner.scss +30 -21
- package/src/components/bs5/banner/banner.stories.js +25 -16
- package/src/components/bs5/breadcrumbs/breadcrumbs.data.json +1 -1
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +7 -2
- package/src/components/bs5/card/card.scss +1 -1
- package/src/components/bs5/footer/footer.hbs +20 -18
- package/src/components/bs5/footer/footer.scss +7 -5
- package/src/components/bs5/header/Header.js +25 -0
- package/src/components/bs5/header/_header-variables.scss +61 -247
- package/src/components/bs5/header/header.functions.js +10 -15
- package/src/components/bs5/header/header.hbs +40 -52
- package/src/components/bs5/header/header.scss +170 -158
- package/src/components/bs5/header/header.stories.js +37 -206
- package/src/components/bs5/header/header.variant.coBrand.data.json +5 -8
- package/src/components/bs5/header/header.variant.endorsed.data.json +3 -6
- package/src/components/bs5/header/header.variant.masterBrand.data.json +1 -6
- package/src/components/bs5/header/header.variant.standAlone.data.json +3 -6
- package/src/components/bs5/header/header.variant.subBrand.data.json +5 -8
- package/src/components/bs5/header/headerBrand.hbs +9 -10
- package/src/components/bs5/image/image.data.json +4 -2
- package/src/components/bs5/image/image.hbs +8 -5
- package/src/components/bs5/image/image.scss +29 -7
- package/src/components/bs5/image/image.stories.js +77 -57
- package/src/components/bs5/inpageAlert/inpageAlert.scss +107 -120
- package/src/components/bs5/linkColumns/linkColumns.scss +18 -25
- package/src/components/bs5/logo/logo.hbs +2 -0
- package/src/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
- package/src/components/bs5/logo/logoCOALandscape.hbs +55 -109
- package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
- package/src/components/bs5/navbar/navbar.scss +36 -14
- package/src/components/bs5/pageLayout/pageLayout.stories.js +11 -45
- package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
- package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
- package/src/components/bs5/searchInput/SearchInput.js +3 -5
- package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +5 -5
- package/src/components/bs5/searchInput/searchInput.hbs +5 -5
- package/src/components/bs5/searchInput/searchInput.scss +17 -5
- package/src/components/bs5/tag/tag--large.stories.js +53 -0
- package/src/components/bs5/tag/tag--standard.stories.js +39 -0
- package/src/components/bs5/tag/tag--status.stories.js +97 -0
- package/src/components/bs5/tag/tag.scss +67 -36
- package/src/components/bs5/tag/tag.stories.js +69 -106
- package/src/css/main.scss +2 -2
- package/src/css/mixins/_index.scss +1 -0
- package/src/css/mixins/focusable.scss +6 -5
- package/src/css/mixins/make-link.scss +40 -0
- package/src/css/qld-theme.scss +16 -8
- package/src/css/qld-type.scss +3 -73
- package/src/css/variables/animation.scss +5 -0
- package/src/img/coa-delivering-for-qld.svg +47 -0
- package/src/img/coa-delivering-for-qld.svg.old +58 -0
- package/src/img/coa-landscape-2lines.svg +63 -0
- package/src/img/coa-landscape-web.svg +56 -0
- package/src/js/handlebars.helpers.js +51 -38
- package/src/js/handlebars.partials.js +12 -10
- package/dist/assets/img/_coa_header-logo-qgov--stacked.svg +0 -171
- package/dist/assets/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
- package/dist/assets/img/_coa_preheader-logo-qgov.svg +0 -56
- package/src/img/_coa_header-logo-qgov--stacked.svg +0 -171
- package/src/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
- package/src/img/_coa_preheader-logo-qgov.svg +0 -56
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
@use "../../../css/mixins";
|
|
2
|
+
@use "../../../css/variables/animation";
|
|
3
|
+
@import "./header-variables";
|
|
4
4
|
|
|
5
5
|
// Play nice with navbar header.
|
|
6
6
|
:root {
|
|
@@ -16,8 +16,6 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.qld-header {
|
|
19
|
-
@extend %header-variables;
|
|
20
|
-
|
|
21
19
|
font-size: 1rem;
|
|
22
20
|
|
|
23
21
|
@include media-breakpoint-up(sm) {
|
|
@@ -25,21 +23,20 @@
|
|
|
25
23
|
}
|
|
26
24
|
|
|
27
25
|
&-pre-header {
|
|
26
|
+
@extend %preheader-variables;
|
|
28
27
|
//
|
|
29
28
|
display: flex;
|
|
30
29
|
align-items: center;
|
|
31
30
|
font-size: 0.875rem; // set here so whitespace doesn't add extra height.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
box-shadow:
|
|
32
|
+
0 1px 2px rgba(0, 0, 0, 0.2),
|
|
33
|
+
0 1px 3px 1px rgba(0, 0, 0, 0.1);
|
|
35
34
|
position: relative;
|
|
36
35
|
z-index: 2;
|
|
37
36
|
height: var(--qld-header-preheader-height);
|
|
38
37
|
|
|
39
|
-
.qld-header-
|
|
38
|
+
.qld-header-mobile-controls {
|
|
40
39
|
display: flex;
|
|
41
|
-
flex-direction: row;
|
|
42
|
-
justify-content: end;
|
|
43
40
|
position: absolute;
|
|
44
41
|
right: 0;
|
|
45
42
|
top: 0;
|
|
@@ -49,100 +46,90 @@
|
|
|
49
46
|
}
|
|
50
47
|
}
|
|
51
48
|
|
|
52
|
-
.qld-header-
|
|
49
|
+
.qld-header-mobile-button {
|
|
53
50
|
align-items: center;
|
|
54
51
|
appearance: none;
|
|
55
|
-
background-color:
|
|
52
|
+
background-color: var(--#{$prefix}header-mobile-button-bg);
|
|
56
53
|
border: 0;
|
|
57
|
-
border-left: 1px solid
|
|
58
|
-
|
|
59
|
-
color: var(--#{$prefix}header__toggle-main-nav_text_color);
|
|
54
|
+
border-left: 1px solid var(--qld-border-color);
|
|
55
|
+
color: var(--qld-link-color);
|
|
60
56
|
cursor: pointer;
|
|
61
57
|
display: flex;
|
|
62
58
|
flex-direction: column;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
justify-content: center;
|
|
60
|
+
height: var(--qld-header-preheader-height);
|
|
61
|
+
width: var(--qld-header-preheader-height);
|
|
62
|
+
font-size: 0.625rem;
|
|
63
|
+
line-height: 1.25;
|
|
64
|
+
padding: 0;
|
|
65
|
+
text-decoration: underline solid transparent 0px;
|
|
66
|
+
text-underline-offset: 0.3em;
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
transition: {
|
|
69
|
+
property:
|
|
70
|
+
color, background-color, outline, outline-offset, text-decoration;
|
|
71
|
+
duration: animation.$duration-fast;
|
|
72
|
+
timing-function: animation.$timing-function;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
&:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
&:hover {
|
|
76
|
+
background-color: var(--#{$prefix}header-mobile-button-bg-hover);
|
|
77
|
+
text-decoration: underline solid currentColor 0.5px;
|
|
78
|
+
--qld-icon-color: var(--qld-action-icon-hover-color);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
@include
|
|
82
|
-
padding: 0.75rem 1rem 0.625rem 1rem;
|
|
83
|
-
}
|
|
81
|
+
@include mixins.focusable($offsetOutline: false);
|
|
84
82
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
margin-
|
|
83
|
+
&:before {
|
|
84
|
+
content: "";
|
|
85
|
+
margin-bottom: 0.25rem;
|
|
86
|
+
@include mixins.make-icon();
|
|
87
|
+
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
&.is-search-toggle {
|
|
90
|
+
&,
|
|
91
|
+
&.is-closed {
|
|
92
|
+
&::before {
|
|
93
|
+
@include mixins.make-icon($name: "search", $include-base: false);
|
|
94
|
+
}
|
|
92
95
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
font-size: 1rem;
|
|
96
|
-
line-height: 1.5;
|
|
96
|
+
&.is-open::before {
|
|
97
|
+
@include mixins.make-icon($name: "close", $include-base: false);
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
font-size: 1rem;
|
|
103
|
-
line-height: 1;
|
|
104
|
-
margin-bottom: 0.25rem;
|
|
105
|
-
text-align: center;
|
|
101
|
+
&.is-menu-toggle::before {
|
|
102
|
+
@include mixins.make-icon($name: "menu", $include-base: false);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
@include media-breakpoint-up(md) {
|
|
106
|
+
font-size: 0.875rem;
|
|
107
|
+
line-height: 1.14;
|
|
108
|
+
--icon-size: 2rem;
|
|
109
|
+
}
|
|
113
110
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
margin: 0 auto;
|
|
117
|
-
width: 2rem;
|
|
118
|
-
}
|
|
111
|
+
@include media-breakpoint-up(lg) {
|
|
112
|
+
display: none;
|
|
119
113
|
}
|
|
120
114
|
}
|
|
115
|
+
|
|
116
|
+
.qld-header-link + .dropdown {
|
|
117
|
+
margin-left: 0.5rem;
|
|
118
|
+
}
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
&-link {
|
|
122
|
+
@include mixins.make-link();
|
|
124
123
|
font-size: 0.875rem;
|
|
125
124
|
line-height: 1;
|
|
126
125
|
|
|
127
126
|
&,
|
|
128
127
|
&:visited {
|
|
129
|
-
|
|
130
|
-
text-decoration: none;
|
|
131
|
-
text-decoration-color: var(
|
|
132
|
-
--#{$prefix}header-pre-header-color-link-decoration
|
|
133
|
-
) !important;
|
|
134
|
-
text-decoration-thickness: 0.5px;
|
|
135
|
-
text-underline-offset: 0.3em;
|
|
136
|
-
text-decoration-skip-ink: auto;
|
|
137
|
-
}
|
|
128
|
+
text-decoration: underline solid transparent 0px;
|
|
138
129
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
text-decoration-color: var(
|
|
143
|
-
--#{$prefix}header-pre-header-color-link-decoration-focus
|
|
144
|
-
) !important;
|
|
145
|
-
text-decoration-thickness: 2px;
|
|
130
|
+
&:hover {
|
|
131
|
+
text-decoration-color: currentColor;
|
|
132
|
+
}
|
|
146
133
|
}
|
|
147
134
|
|
|
148
135
|
&:disabled,
|
|
@@ -159,19 +146,21 @@
|
|
|
159
146
|
}
|
|
160
147
|
|
|
161
148
|
&-link-icon {
|
|
162
|
-
height: 1.25rem;
|
|
163
|
-
width: 1.25rem;
|
|
164
149
|
margin-right: 0.5rem;
|
|
165
|
-
color: var(--#{$prefix}header__cta-wrapper__cta-link-icon_color);
|
|
166
150
|
}
|
|
167
151
|
|
|
168
152
|
&-logo {
|
|
169
153
|
display: block;
|
|
170
154
|
width: auto;
|
|
155
|
+
transition: {
|
|
156
|
+
property: filter, color, outline, outline-offset;
|
|
157
|
+
duration: animation.$duration-fast;
|
|
158
|
+
timing-function: animation.$timing-function;
|
|
159
|
+
}
|
|
160
|
+
color: var(--#{$prefix}header-logo-color);
|
|
171
161
|
|
|
172
162
|
a:hover & {
|
|
173
|
-
|
|
174
|
-
drop-shadow(0 13px 20px rgba(0, 0, 0, 0.08));
|
|
163
|
+
color: var(--#{$prefix}header-logo-color-hover);
|
|
175
164
|
}
|
|
176
165
|
|
|
177
166
|
.qld-header-pre-header & {
|
|
@@ -185,11 +174,44 @@
|
|
|
185
174
|
display: none;
|
|
186
175
|
}
|
|
187
176
|
}
|
|
177
|
+
|
|
178
|
+
// delivering for qld custom colors.
|
|
179
|
+
&.is-delivering-for-qld {
|
|
180
|
+
--#{$prefix}header-logo-color: var(--qld-site-title-color);
|
|
181
|
+
--#{$prefix}header-logo-color-hover: var(--qld-site-title-color);
|
|
182
|
+
}
|
|
188
183
|
}
|
|
189
184
|
|
|
190
|
-
// Preheader CTA dropdown - custom functionality:
|
|
191
185
|
.dropdown {
|
|
192
186
|
line-height: 1.5;
|
|
187
|
+
display: flex;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.dropdown-toggle {
|
|
191
|
+
padding-inline: 0.5rem;
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
height: var(--qld-header-preheader-height);
|
|
195
|
+
background-color: var(--dropdown-bg);
|
|
196
|
+
|
|
197
|
+
&:focus {
|
|
198
|
+
outline-offset: -2px;
|
|
199
|
+
z-index: 1;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&::after {
|
|
203
|
+
content: "";
|
|
204
|
+
@include mixins.make-icon($name: "chevron-down", $size: "xs");
|
|
205
|
+
margin-left: 0.5rem;
|
|
206
|
+
transition: transform 0.2s;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.show {
|
|
210
|
+
background-color: var(--dropdown-bg-active);
|
|
211
|
+
&::after {
|
|
212
|
+
transform: rotate(-180deg);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
193
215
|
}
|
|
194
216
|
|
|
195
217
|
.dropdown-menu {
|
|
@@ -199,32 +221,19 @@
|
|
|
199
221
|
//
|
|
200
222
|
width: 20.25rem;
|
|
201
223
|
min-height: 1rem;
|
|
202
|
-
padding:
|
|
224
|
+
padding: 1rem 1.75rem 1rem;
|
|
203
225
|
border-radius: 0 0 0.75rem 0.75rem;
|
|
204
226
|
border: 0;
|
|
205
|
-
background-color: var(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
&::before {
|
|
212
|
-
position: absolute;
|
|
213
|
-
content: " ";
|
|
214
|
-
height: 6px;
|
|
215
|
-
top: -6px;
|
|
216
|
-
left: 0;
|
|
217
|
-
right: 0px;
|
|
218
|
-
background-color: var(
|
|
219
|
-
--#{$prefix}header__cta-wrapper__cta-link_dropdown_bg_color
|
|
220
|
-
);
|
|
221
|
-
pointer-events: none; // so that pseudo-element isn't clickable
|
|
222
|
-
}
|
|
227
|
+
background-color: var(--dropdown-menu-bg);
|
|
228
|
+
box-shadow:
|
|
229
|
+
0 1px 2px rgba(0, 0, 0, 0.2),
|
|
230
|
+
0 1px 3px 1px rgba(0, 0, 0, 0.1);
|
|
231
|
+
transform: translate(0px, var(--qld-header-preheader-height)) !important;
|
|
223
232
|
|
|
224
233
|
hr {
|
|
225
234
|
margin: 1.5rem 0;
|
|
226
|
-
color: var(
|
|
227
|
-
border-color: var(
|
|
235
|
+
color: var(--qld-border-color);
|
|
236
|
+
border-color: var(--qld-border-color);
|
|
228
237
|
opacity: 1;
|
|
229
238
|
}
|
|
230
239
|
|
|
@@ -238,18 +247,6 @@
|
|
|
238
247
|
text-decoration-color: inherit;
|
|
239
248
|
text-decoration-thickness: inherit;
|
|
240
249
|
}
|
|
241
|
-
|
|
242
|
-
.group {
|
|
243
|
-
a {
|
|
244
|
-
font-weight: 600;
|
|
245
|
-
color: var(--#{$prefix}header__CTA_text_color);
|
|
246
|
-
text-decoration: underline var(--#{$prefix}header__CTA_text_color);
|
|
247
|
-
|
|
248
|
-
&:visited {
|
|
249
|
-
color: var(--#{$prefix}header__CTA_text_color);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
250
|
}
|
|
254
251
|
|
|
255
252
|
ul.dropdown-menu.show:has(> li) {
|
|
@@ -258,13 +255,31 @@
|
|
|
258
255
|
|
|
259
256
|
.dropdown-item {
|
|
260
257
|
position: relative;
|
|
261
|
-
border-bottom: solid 1px var(
|
|
258
|
+
border-bottom: solid 1px var(--qld-border-color);
|
|
262
259
|
padding: 1rem 1.75rem 1rem 0;
|
|
263
260
|
line-height: 1.5;
|
|
264
261
|
white-space: normal; // allow text to wrap
|
|
262
|
+
--_icon-translateX: 0rem;
|
|
265
263
|
|
|
266
|
-
&:
|
|
267
|
-
|
|
264
|
+
&:hover {
|
|
265
|
+
--_icon-translateX: 0.25rem;
|
|
266
|
+
color: var(--qld-link-visited-color);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@include mixins.make-icon(
|
|
270
|
+
$name: "arrow-right",
|
|
271
|
+
$pseudo: "after",
|
|
272
|
+
$size: "sm"
|
|
273
|
+
) {
|
|
274
|
+
position: absolute;
|
|
275
|
+
right: 0;
|
|
276
|
+
top: 50%;
|
|
277
|
+
transform: translate(var(--_icon-translateX), -50%);
|
|
278
|
+
transition: {
|
|
279
|
+
property: color, background-color, transform;
|
|
280
|
+
duration: animation.$duration-fast;
|
|
281
|
+
timing-function: animation.$timing-function;
|
|
282
|
+
}
|
|
268
283
|
}
|
|
269
284
|
|
|
270
285
|
span,
|
|
@@ -276,64 +291,40 @@
|
|
|
276
291
|
&-dropdown-icon {
|
|
277
292
|
vertical-align: middle;
|
|
278
293
|
margin-left: 0.5rem;
|
|
279
|
-
color: var(--#{$prefix}header__cta-wrapper__cta-link-icon_color);
|
|
280
294
|
height: 1rem;
|
|
281
295
|
width: 1rem;
|
|
282
296
|
}
|
|
283
297
|
|
|
284
|
-
&-dropdown-item-icon {
|
|
285
|
-
color: var(--#{$prefix}header__cta-wrapper__cta-link-icon_color);
|
|
286
|
-
position: absolute;
|
|
287
|
-
right: 0;
|
|
288
|
-
top: 50%;
|
|
289
|
-
transform: translateY(-50%);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
298
|
&-main {
|
|
299
|
+
@extend %header-main-variables;
|
|
293
300
|
position: relative;
|
|
294
|
-
|
|
295
|
-
background: var(--#{$prefix}header-color-bg);
|
|
296
|
-
|
|
297
|
-
// Patch for v2.0.5. Redundant after header QGDS-266 is merged
|
|
298
|
-
border-bottom: 0.25rem solid var(--qld-light-accent);
|
|
301
|
+
border-bottom: 0.25rem solid var(--#{$prefix}header-border-color);
|
|
299
302
|
|
|
300
|
-
@include media-breakpoint-up(lg) {
|
|
303
|
+
@include media-breakpoint-up("lg") {
|
|
301
304
|
border-bottom: none;
|
|
302
305
|
}
|
|
303
|
-
// End patch for v2.0.5
|
|
304
306
|
}
|
|
305
307
|
|
|
306
308
|
&-brand {
|
|
307
309
|
font-variant-numeric: lining-nums;
|
|
308
310
|
text-decoration: none;
|
|
309
311
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
.qld-header-brand-image {
|
|
314
|
-
color: var(
|
|
315
|
-
--#{$prefix}header__brand__anchor__hover_brand-image__text_color
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.qld-header-heading,
|
|
320
|
-
.qld-header-subline {
|
|
321
|
-
color: var(
|
|
322
|
-
--#{$prefix}header__brand__anchor__hover_headingsubline__text_color
|
|
323
|
-
);
|
|
324
|
-
text-decoration: underline;
|
|
325
|
-
text-decoration-color: currentColor !important;
|
|
326
|
-
}
|
|
312
|
+
@include media-breakpoint-up(lg) {
|
|
313
|
+
padding-block: 2rem;
|
|
327
314
|
}
|
|
328
315
|
|
|
329
|
-
|
|
330
|
-
|
|
316
|
+
&:not(:has(.qld-header-secondary-content)) {
|
|
317
|
+
@include media-breakpoint-down(lg) {
|
|
318
|
+
// prevent tabbing into empty link on smaller screens.
|
|
319
|
+
display: none;
|
|
320
|
+
}
|
|
331
321
|
}
|
|
332
322
|
}
|
|
333
323
|
|
|
324
|
+
// qld-header-brand-image controls sizing and layout specific to the Brand lock up image.
|
|
325
|
+
// See qld-header-logo for color and behaviour of the logo itself.
|
|
334
326
|
&-brand-image {
|
|
335
327
|
display: none;
|
|
336
|
-
color: var(--#{$prefix}header__brand-image__crest_fill);
|
|
337
328
|
|
|
338
329
|
@include media-breakpoint-up(lg) {
|
|
339
330
|
display: block;
|
|
@@ -346,11 +337,12 @@
|
|
|
346
337
|
|
|
347
338
|
svg {
|
|
348
339
|
vertical-align: text-bottom;
|
|
340
|
+
pointer-events: none;
|
|
349
341
|
}
|
|
350
342
|
}
|
|
351
343
|
|
|
352
344
|
&-secondary-content {
|
|
353
|
-
display:
|
|
345
|
+
display: inline-block;
|
|
354
346
|
flex-wrap: wrap;
|
|
355
347
|
align-items: baseline;
|
|
356
348
|
text-wrap: balance;
|
|
@@ -361,12 +353,12 @@
|
|
|
361
353
|
}
|
|
362
354
|
|
|
363
355
|
@include media-breakpoint-up(lg) {
|
|
356
|
+
display: flex;
|
|
364
357
|
padding-block: 0;
|
|
365
358
|
flex-direction: column;
|
|
366
359
|
flex-wrap: nowrap;
|
|
367
360
|
justify-content: center;
|
|
368
|
-
border-left: 2px solid
|
|
369
|
-
var(--#{$prefix}header__brand-image__subtype__border_color);
|
|
361
|
+
border-left: 2px solid var(--#{$prefix}header-brand-divider-color);
|
|
370
362
|
margin-left: 1.5rem;
|
|
371
363
|
padding-left: 1.5rem;
|
|
372
364
|
}
|
|
@@ -384,10 +376,20 @@
|
|
|
384
376
|
font-size: 1rem;
|
|
385
377
|
font-weight: 700;
|
|
386
378
|
line-height: 1.25;
|
|
387
|
-
margin: 0 1ch 0 0;
|
|
379
|
+
// margin: 0 1ch 0 0;
|
|
388
380
|
padding: 0;
|
|
389
381
|
font-family: $font-family-sitename;
|
|
390
|
-
color: var(--#{$prefix}
|
|
382
|
+
color: var(--#{$prefix}site-title-color);
|
|
383
|
+
text-decoration: underline solid 0px transparent;
|
|
384
|
+
transition-property: text-decoration, color;
|
|
385
|
+
transition-duration: animation.$duration-fast;
|
|
386
|
+
transition-timing-function: animation.$timing-function;
|
|
387
|
+
|
|
388
|
+
a:hover & {
|
|
389
|
+
color: var(--#{$prefix}site-title-color);
|
|
390
|
+
text-decoration-thickness: var(--qld-link-underline-thickness-hover);
|
|
391
|
+
text-decoration-color: currentColor !important;
|
|
392
|
+
}
|
|
391
393
|
|
|
392
394
|
@include media-breakpoint-up(md) {
|
|
393
395
|
font-size: 1.25rem;
|
|
@@ -396,10 +398,20 @@
|
|
|
396
398
|
}
|
|
397
399
|
|
|
398
400
|
&-subline {
|
|
399
|
-
color: var(--#{$prefix}
|
|
401
|
+
color: var(--#{$prefix}header-subline-color);
|
|
400
402
|
font-size: 0.875rem;
|
|
401
403
|
line-height: 1.14;
|
|
402
404
|
max-width: 80ch;
|
|
405
|
+
text-decoration: underline solid 0px transparent;
|
|
406
|
+
transition-property: text-decoration, color;
|
|
407
|
+
transition-duration: animation.$duration-fast;
|
|
408
|
+
transition-timing-function: animation.$timing-function;
|
|
409
|
+
|
|
410
|
+
a:hover & {
|
|
411
|
+
color: var(--#{$prefix}header-subline-color);
|
|
412
|
+
text-decoration-thickness: var(--qld-link-underline-thickness-hover);
|
|
413
|
+
text-decoration-color: currentColor !important;
|
|
414
|
+
}
|
|
403
415
|
|
|
404
416
|
@include media-breakpoint-up(md) {
|
|
405
417
|
font-size: 1rem;
|