@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.
Files changed (115) hide show
  1. package/.esbuild/plugins/qgds-plugin-handlebar-partial-builder.js +76 -66
  2. package/.storybook/preview.js +1 -1
  3. package/dist/assets/components/bs5/footer/footer.hbs +20 -18
  4. package/dist/assets/components/bs5/head/head.hbs +1 -1
  5. package/dist/assets/components/bs5/header/header.hbs +40 -52
  6. package/dist/assets/components/bs5/header/headerBrand.hbs +9 -10
  7. package/dist/assets/components/bs5/image/image.hbs +8 -5
  8. package/dist/assets/components/bs5/logo/logo.hbs +2 -0
  9. package/dist/assets/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  10. package/dist/assets/components/bs5/logo/logoCOALandscape.hbs +55 -109
  11. package/dist/assets/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  12. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
  13. package/dist/assets/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
  14. package/dist/assets/components/bs5/searchInput/searchInput.hbs +5 -5
  15. package/dist/assets/css/qld.bootstrap.css +1 -1
  16. package/dist/assets/css/qld.bootstrap.css.map +3 -3
  17. package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
  18. package/dist/assets/css/qld.bootstrap.legacy.css.map +3 -3
  19. package/dist/assets/img/coa-delivering-for-qld.svg +47 -0
  20. package/dist/assets/img/coa-delivering-for-qld.svg.old +58 -0
  21. package/dist/assets/img/coa-landscape-2lines.svg +63 -0
  22. package/dist/assets/img/coa-landscape-web.svg +56 -0
  23. package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
  24. package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
  25. package/dist/assets/js/handlebars.init.min.js +720 -708
  26. package/dist/assets/js/handlebars.init.min.js.map +4 -4
  27. package/dist/assets/js/handlebars.partials.js +720 -708
  28. package/dist/assets/js/handlebars.partials.js.map +4 -4
  29. package/dist/assets/js/qld.bootstrap.min.js +3 -3
  30. package/dist/assets/js/qld.bootstrap.min.js.map +3 -3
  31. package/dist/assets/node/handlebars.init.min.js +239 -199
  32. package/dist/assets/node/handlebars.init.min.js.map +3 -3
  33. package/dist/components/bs5/footer/footer.hbs +20 -18
  34. package/dist/components/bs5/head/head.hbs +1 -1
  35. package/dist/components/bs5/header/header.hbs +40 -52
  36. package/dist/components/bs5/header/headerBrand.hbs +9 -10
  37. package/dist/components/bs5/image/image.hbs +8 -5
  38. package/dist/components/bs5/logo/logo.hbs +2 -0
  39. package/dist/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  40. package/dist/components/bs5/logo/logoCOALandscape.hbs +55 -109
  41. package/dist/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  42. package/dist/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
  43. package/dist/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
  44. package/dist/components/bs5/searchInput/searchInput.hbs +5 -5
  45. package/dist/package.json +12 -12
  46. package/dist/sample-data/breadcrumbs/breadcrumbs.data.json +1 -1
  47. package/dist/sample-data/header/header.variant.coBrand.data.json +5 -8
  48. package/dist/sample-data/header/header.variant.endorsed.data.json +3 -6
  49. package/dist/sample-data/header/header.variant.masterBrand.data.json +1 -6
  50. package/dist/sample-data/header/header.variant.standAlone.data.json +3 -6
  51. package/dist/sample-data/header/header.variant.subBrand.data.json +5 -8
  52. package/dist/sample-data/image/image.data.json +4 -2
  53. package/esbuild.js +1 -1
  54. package/package.json +12 -12
  55. package/src/components/bs5/banner/banner.scss +30 -21
  56. package/src/components/bs5/banner/banner.stories.js +25 -16
  57. package/src/components/bs5/breadcrumbs/breadcrumbs.data.json +1 -1
  58. package/src/components/bs5/breadcrumbs/breadcrumbs.scss +7 -2
  59. package/src/components/bs5/card/card.scss +1 -1
  60. package/src/components/bs5/footer/footer.hbs +20 -18
  61. package/src/components/bs5/footer/footer.scss +7 -5
  62. package/src/components/bs5/header/Header.js +25 -0
  63. package/src/components/bs5/header/_header-variables.scss +61 -247
  64. package/src/components/bs5/header/header.functions.js +10 -15
  65. package/src/components/bs5/header/header.hbs +40 -52
  66. package/src/components/bs5/header/header.scss +170 -158
  67. package/src/components/bs5/header/header.stories.js +37 -206
  68. package/src/components/bs5/header/header.variant.coBrand.data.json +5 -8
  69. package/src/components/bs5/header/header.variant.endorsed.data.json +3 -6
  70. package/src/components/bs5/header/header.variant.masterBrand.data.json +1 -6
  71. package/src/components/bs5/header/header.variant.standAlone.data.json +3 -6
  72. package/src/components/bs5/header/header.variant.subBrand.data.json +5 -8
  73. package/src/components/bs5/header/headerBrand.hbs +9 -10
  74. package/src/components/bs5/image/image.data.json +4 -2
  75. package/src/components/bs5/image/image.hbs +8 -5
  76. package/src/components/bs5/image/image.scss +29 -7
  77. package/src/components/bs5/image/image.stories.js +77 -57
  78. package/src/components/bs5/inpageAlert/inpageAlert.scss +107 -120
  79. package/src/components/bs5/linkColumns/linkColumns.scss +18 -25
  80. package/src/components/bs5/logo/logo.hbs +2 -0
  81. package/src/components/bs5/logo/logoCOADeliveringForQLD.hbs +49 -0
  82. package/src/components/bs5/logo/logoCOALandscape.hbs +55 -109
  83. package/src/components/bs5/logo/logoCOALandscape2Lines.hbs +55 -55
  84. package/src/components/bs5/navbar/navbar.scss +36 -14
  85. package/src/components/bs5/pageLayout/pageLayout.stories.js +11 -45
  86. package/src/components/bs5/pageLayout/templates/contentPageWithForm.hbs +112 -93
  87. package/src/components/bs5/pageLayout/templates/contentPageWithSideNavigation.hbs +57 -53
  88. package/src/components/bs5/searchInput/SearchInput.js +3 -5
  89. package/src/components/bs5/searchInput/__snapshots__/searchInput.test.js.snap +5 -5
  90. package/src/components/bs5/searchInput/searchInput.hbs +5 -5
  91. package/src/components/bs5/searchInput/searchInput.scss +17 -5
  92. package/src/components/bs5/tag/tag--large.stories.js +53 -0
  93. package/src/components/bs5/tag/tag--standard.stories.js +39 -0
  94. package/src/components/bs5/tag/tag--status.stories.js +97 -0
  95. package/src/components/bs5/tag/tag.scss +67 -36
  96. package/src/components/bs5/tag/tag.stories.js +69 -106
  97. package/src/css/main.scss +2 -2
  98. package/src/css/mixins/_index.scss +1 -0
  99. package/src/css/mixins/focusable.scss +6 -5
  100. package/src/css/mixins/make-link.scss +40 -0
  101. package/src/css/qld-theme.scss +16 -8
  102. package/src/css/qld-type.scss +3 -73
  103. package/src/css/variables/animation.scss +5 -0
  104. package/src/img/coa-delivering-for-qld.svg +47 -0
  105. package/src/img/coa-delivering-for-qld.svg.old +58 -0
  106. package/src/img/coa-landscape-2lines.svg +63 -0
  107. package/src/img/coa-landscape-web.svg +56 -0
  108. package/src/js/handlebars.helpers.js +51 -38
  109. package/src/js/handlebars.partials.js +12 -10
  110. package/dist/assets/img/_coa_header-logo-qgov--stacked.svg +0 -171
  111. package/dist/assets/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
  112. package/dist/assets/img/_coa_preheader-logo-qgov.svg +0 -56
  113. package/src/img/_coa_header-logo-qgov--stacked.svg +0 -171
  114. package/src/img/_coa_header-logo-qgov-masterbrand.svg +0 -56
  115. package/src/img/_coa_preheader-logo-qgov.svg +0 -56
@@ -3,10 +3,8 @@
3
3
  * Image utilities to create responsive, fixed-ratio images.
4
4
  */
5
5
 
6
- import Handlebars from "handlebars";
7
-
8
6
  import imagedata from "./image.data.json";
9
- import template from "./image.hbs?raw";
7
+ import { ImageComponent } from "./Image";
10
8
 
11
9
  /**
12
10
  *
@@ -39,11 +37,11 @@ export default {
39
37
  title: "3. Components/Image",
40
38
 
41
39
  render: (args) => {
42
- return Handlebars.compile(template)(args);
40
+ return new ImageComponent(args).html;
43
41
  },
44
42
 
45
43
  argTypes: {
46
- "ratioClass": {
44
+ ratioClass: {
47
45
  name: "Fixed image ratio",
48
46
  description: "Set the ratio class for the image component.",
49
47
  control: {
@@ -67,21 +65,21 @@ export default {
67
65
  ],
68
66
  },
69
67
 
70
- "otherClass": {
68
+ otherClass: {
71
69
  name: "Other Classes",
72
70
  description:
73
71
  "Optional. Any additional classes to apply to the image element for custom styling.",
74
72
  control: "text",
75
73
  },
76
74
 
77
- "figureClass": {
75
+ figureClass: {
78
76
  name: "Figure Class",
79
77
  description:
80
78
  "Optional. Any custom class to pass to the figure element for additional styling.",
81
79
  control: "text",
82
80
  },
83
81
 
84
- "positionX": {
82
+ positionX: {
85
83
  name: "Position X",
86
84
  description:
87
85
  "Optional. Adjust the horizontal image placement within the aspect ratio crop.",
@@ -96,7 +94,7 @@ export default {
96
94
  options: ["position-x-left", "position-x-center", "position-x-right"],
97
95
  },
98
96
 
99
- "positionY": {
97
+ positionY: {
100
98
  name: "Position Y",
101
99
  description:
102
100
  "Optional. Adjust the vertical image placement within the aspect ratio crop.",
@@ -111,14 +109,14 @@ export default {
111
109
  options: ["position-y-top", "position-y-center", "position-y-bottom"],
112
110
  },
113
111
 
114
- "width": {
112
+ width: {
115
113
  name: "Width",
116
114
  description:
117
115
  "Optional. Set the width of the image (e.g., '350', '100'). Use the unit fields to specify px or %.",
118
116
  control: "text",
119
117
  },
120
118
 
121
- "widthUnit": {
119
+ widthUnit: {
122
120
  name: "Width Unit",
123
121
  description:
124
122
  "Select the unit for the width of the image. Choose 'px' for pixels or '%' for percentage.",
@@ -126,14 +124,14 @@ export default {
126
124
  options: ["px", "%"],
127
125
  },
128
126
 
129
- "height": {
127
+ height: {
130
128
  name: "Height",
131
129
  description:
132
130
  "Optional. Set the height of the image (optional - note responsive images will scale their height). Use the unit field to specify px or %.",
133
131
  control: "text",
134
132
  },
135
133
 
136
- "heightUnit": {
134
+ heightUnit: {
137
135
  name: "Height Unit",
138
136
  description:
139
137
  "Optional. Select the unit for the height of the image. Choose 'px' for pixels or '%' for percentage.",
@@ -141,17 +139,31 @@ export default {
141
139
  options: ["px", "%"],
142
140
  },
143
141
 
142
+ caption: {
143
+ name: "Caption",
144
+ description:
145
+ "Optional. Main caption text for the image (16px, line-height 24px). Provides context or additional information about the image. For accessibility: caption should complement (not duplicate) the alt text. Alt text describes what's in the image; caption provides context or additional information. Both are read by screen readers.",
146
+ control: "text",
147
+ },
148
+
149
+ credit: {
150
+ name: "Credit",
151
+ description:
152
+ "Optional. Credit/attribution text for the image (14px, line-height 20px, lighter color). Displays below the caption text.",
153
+ control: "text",
154
+ },
155
+
144
156
  // Disabled controls, not needed in Storybook UI
145
157
  // "tabindex", "role", "storycolumn"
146
- "tabindex": {
158
+ tabindex: {
147
159
  table: { disable: true },
148
160
  },
149
161
 
150
- "role": {
162
+ role: {
151
163
  table: { disable: true },
152
164
  },
153
165
 
154
- "storycolumn": {
166
+ storycolumn: {
155
167
  table: { disable: true },
156
168
  },
157
169
  },
@@ -187,54 +199,59 @@ export const DefaultImage = {
187
199
  */
188
200
  export const UtilityClasses = {
189
201
  // Render several images, each with different ratios
190
- args: {
191
- image1x1: Handlebars.compile(template)({
192
- ...imagedata,
193
- ratioClass: "image-ratio-1x1",
194
- positionX: "position-x-left",
195
- positionY: "position-y-30",
196
- }),
197
- image3x2: Handlebars.compile(template)({
198
- ...imagedata,
199
- ratioClass: "image-ratio-3x2",
200
- }),
201
- image2x3: Handlebars.compile(template)({
202
- ...imagedata,
203
- ratioClass: "image-ratio-2x3",
204
- }),
205
- image4x3: Handlebars.compile(template)({
206
- ...imagedata,
207
- ratioClass: "image-ratio-4x3",
208
- }),
209
- image3x4: Handlebars.compile(template)({
210
- ...imagedata,
211
- ratioClass: "image-ratio-3x4",
212
- positionX: "position-x-40",
213
- positionY: "position-y-top",
214
- }),
215
- image16x9: Handlebars.compile(template)({
216
- ...imagedata,
217
- ratioClass: "image-ratio-16x9",
218
- }),
219
- },
202
+ args: imagedata,
220
203
 
221
204
  render: (args) => {
222
205
  return `
223
206
  <h2>Fixed Ratio Images with utility classes</h2>
224
207
  <div class="row">
225
208
  <strong>Default</strong><br><br>
226
- <div class="col-12 col-md-6 mb-4">${args.image3x2} <br><small>.image-ratio-3x2 (Default)</small></div>
209
+ <div class="col-12 col-md-6 mb-4">${
210
+ new ImageComponent({
211
+ ...args,
212
+ ratioClass: "image-ratio-3x2",
213
+ }).html
214
+ } <br><small>.image-ratio-3x2 (Default)</small></div>
227
215
  </div>
228
216
  <div class="row">
229
217
  <strong>Horizontal</strong><br><br>
230
- <div class="col-12 col-md-4 mb-4">${args.image1x1} <br><small>.image-ratio-1x1<br>.position-x-left<br>.position-y-30</small></div>
231
- <div class="col-12 col-md-4 mb-4">${args.image4x3} <br><small>.image-ratio-4x3</small></div>
232
- <div class="col-12 col-md-4 mb-4">${args.image16x9} <br><small>.image-ratio-16x9</small></div>
218
+ <div class="col-12 col-md-4 mb-4">${
219
+ new ImageComponent({
220
+ ...imagedata,
221
+ ratioClass: "image-ratio-1x1",
222
+ positionX: "position-x-left",
223
+ positionY: "position-y-30",
224
+ }).html
225
+ } <br><small>.image-ratio-1x1<br>.position-x-left<br>.position-y-30</small></div>
226
+ <div class="col-12 col-md-4 mb-4">${
227
+ new ImageComponent({
228
+ ...imagedata,
229
+ ratioClass: "image-ratio-4x3",
230
+ }).html
231
+ }<br><small>.image-ratio-4x3</small></div>
232
+ <div class="col-12 col-md-4 mb-4">${
233
+ new ImageComponent({
234
+ ...imagedata,
235
+ ratioClass: "image-ratio-16x9",
236
+ }).html
237
+ } <br><small>.image-ratio-16x9</small></div>
233
238
  </div>
234
239
  <div class="row">
235
240
  <strong>Vertical</strong><br><br>
236
- <div class="col-12 col-md-4 mb-4">${args.image2x3} <br><small>.image-ratio-2x3</small></div>
237
- <div class="col-12 col-md-4 mb-4">${args.image3x4} <br><small>.image-ratio-3x4<br>.position-x-40<br>.position-y-top</small></div>
241
+ <div class="col-12 col-md-4 mb-4">${
242
+ new ImageComponent({
243
+ ...imagedata,
244
+ ratioClass: "image-ratio-3x2",
245
+ }).html
246
+ } <br><small>.image-ratio-2x3</small></div>
247
+ <div class="col-12 col-md-4 mb-4">${
248
+ new ImageComponent({
249
+ ...imagedata,
250
+ ratioClass: "image-ratio-3x4",
251
+ positionX: "position-x-40",
252
+ positionY: "position-y-top",
253
+ }).html
254
+ } <br><small>.image-ratio-3x4<br>.position-x-40<br>.position-y-top</small></div>
238
255
  </div>
239
256
  `;
240
257
  },
@@ -242,12 +259,16 @@ export const UtilityClasses = {
242
259
 
243
260
  /**
244
261
  * Figure with Image and caption
262
+ *
263
+ * This example demonstrates the structured caption with caption and credit fields.
264
+ * The caption uses 16px font with 24px line-height, while the credit uses 14px font with 20px line-height and lighter color.
245
265
  */
246
266
  export const FigureWithImageCaption = {
247
267
  args: {
248
268
  ...imagedata,
249
269
  caption:
250
270
  "This is a caption for the image. It can be long or short. Longer captions, like this one, should wrap to the next line.",
271
+ credit: "Photo by Queensland Government",
251
272
  },
252
273
  };
253
274
 
@@ -267,11 +288,10 @@ export const FloatedImage = {
267
288
  },
268
289
 
269
290
  render: (args) => {
270
-
271
291
  args.src = "assets/img/image-example-couple-beach-md.jpg";
272
292
 
273
- let imageTag = Handlebars.compile(template)({ ...args, caption: null });
274
- let imageTagWithCaption = Handlebars.compile(template)(args);
293
+ let imageTag = new ImageComponent({ ...args, caption: null }).html;
294
+ let imageTagWithCaption = new ImageComponent(args).html;
275
295
 
276
296
  let customTemplate = `
277
297
  <h2>Example image with caption, right aligned</h2>
@@ -282,13 +302,13 @@ export const FloatedImage = {
282
302
  </div>
283
303
 
284
304
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
285
-
305
+
286
306
  <p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident.</p>
287
307
 
288
308
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt.</p>
289
309
 
290
310
  <h2>Example image without caption, left aligned</h2>
291
-
311
+
292
312
  <!-- Bootstrap classes control layout -->
293
313
  <div class="mb-32 float-md-start me-md-32">
294
314
  ${imageTag}
@@ -2,136 +2,123 @@
2
2
  // Extends: https://getbootstrap.com/docs/5.3/components/alerts/#variables
3
3
 
4
4
  //All alerts have the same text and background color, even on darker themes
5
- //To account for this, we redefine the global vars at the .alert scope
5
+ //To account for this, we redefine the global vars at the .alert scope
6
6
 
7
- .alert,
8
- .light .alert,
9
- .light-alt .alert,
10
- .dark .alert,
11
- .dark-alt .alert {
12
- --qld-headings-color: var(--#{$prefix}light-text-text);
13
- --qld-body-color: var(--#{$prefix}light-text-text);
14
- --qld-alert-color: var(--#{$prefix}light-text-text);
15
- --qld-alert-bg: #FFF;
16
- --qld-link-color: #{$link-color};
17
- --qld-link-hover-color: #{$link-hover-color};
18
- --qld-link-visited: #{$link-visited-color};
19
- --qld-selection-color: var(--qld-white);
20
- --qld-selection-bg: var(--qld-brand-primary);
21
- --qld-focus-color: var(--qld-light-focus);
7
+ .alert {
8
+ @include light-theme-properties();
9
+ --qld-headings-color: var(--#{$prefix}light-text-text);
10
+ --qld-alert-color: var(--#{$prefix}light-text-text);
11
+ --qld-alert-bg: #fff;
22
12
  }
23
13
 
24
-
25
-
26
14
  .alert {
27
-
28
- padding-left: 4rem;
29
- overflow-wrap: break-word;
30
-
31
- .alert-heading {
32
- line-height: 1.5;
33
- font-size: 1.5rem;
34
- font-weight: 600;
35
- margin: 0 0 1rem 0;
36
- padding: 0;
37
- color: var(--qld-color-default-color-light-text-heading);
38
- }
39
-
40
- p,
41
- ul,
42
- ol {
43
- line-height: 1.5;
44
-
45
- &:last-of-type {
46
- margin-bottom: 0;
47
- }
48
- }
49
-
50
- a {
51
- color: var(--qld-link-color);
52
- text-decoration-color: var(--qld-link-color);
53
-
54
- &:visited {
55
- color: var(--qld-link-visited);
56
- text-decoration-color: var(--qld-link-visited);
57
- }
58
- }
59
-
60
-
61
-
62
- // Close button for dismissible alerts
63
- .btn-close {
64
- position: absolute;
65
- top: 1rem;
66
- right: 1rem;
67
- height: 2rem;
68
- width: 2rem;
69
- 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='%23F5F5F5'/%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='%231D1D1D'/%3E%3C/svg%3E") no-repeat center center;
70
- }
71
-
72
- //Alert sidebar color and icon
73
- //Colors and icons defined below
74
- &:before,
75
- &:after {
76
- content: "";
77
- width: 3rem;
78
- position: absolute;
79
- left: 0;
80
- top: 0;
81
- bottom: 0;
82
- }
83
-
84
- &:after {
85
- color: #fff;
86
- background-repeat: no-repeat;
87
- background-position: center center;
15
+ padding-left: 4rem;
16
+ overflow-wrap: break-word;
17
+
18
+ .alert-heading {
19
+ line-height: 1.5;
20
+ font-size: 1.5rem;
21
+ font-weight: 600;
22
+ margin: 0 0 1rem 0;
23
+ padding: 0;
24
+ color: var(--qld-color-default-color-light-text-heading);
25
+ }
26
+
27
+ p,
28
+ ul,
29
+ ol {
30
+ line-height: 1.5;
31
+
32
+ &:last-of-type {
33
+ margin-bottom: 0;
88
34
  }
89
-
90
- //alerts color map
91
- $alert-colors-map: (
92
- "success": (color: var(--#{$prefix}success),
93
- icon: "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"
94
- ),
95
- "info": (color: var(--#{$prefix}info),
96
- icon: "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"
97
- ),
98
- "warning": (color: var(--#{$prefix}warning),
99
- icon: "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"
100
- ),
101
- "danger": (color: var(--#{$prefix}danger),
102
- icon: "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"
103
- ),
104
- //.alert-error can be a clone of .alert-danger
105
- "error": (color: var(--#{$prefix}danger),
106
- icon: "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"
107
- ),
108
- "light": (color: var(--#{$prefix}light-grey),
109
- icon: "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"
110
- ),
111
- "dark": (color: var(--#{$prefix}dark-grey),
112
- icon: "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"
113
- )
114
- );
115
-
116
- //Sets colors (border and icon-background) and icons for each alert type
117
- @each $key, $properties in $alert-colors-map {
118
-
35
+ }
36
+
37
+ // Close button for dismissible alerts
38
+ .btn-close {
39
+ position: absolute;
40
+ top: 1rem;
41
+ right: 1rem;
42
+ height: 2rem;
43
+ width: 2rem;
44
+ 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='%23F5F5F5'/%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='%231D1D1D'/%3E%3C/svg%3E")
45
+ no-repeat center center;
46
+ }
47
+
48
+ //Alert sidebar color and icon
49
+ //Colors and icons defined below
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: (
68
+ "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",
72
+ ),
73
+ "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",
77
+ ),
78
+ "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",
82
+ ),
83
+ "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",
87
+ ),
88
+ //.alert-error can be a clone of .alert-danger
89
+ "error": (
90
+ color: var(--#{$prefix}danger),
91
+ icon:
92
+ "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",
93
+ ),
94
+ "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",
98
+ ),
99
+ "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",
103
+ ),
104
+ );
105
+
106
+ //Sets colors (border and icon-background) and icons for each alert type
107
+ @each $key, $properties in $alert-colors-map {
119
108
  $color: map-get($properties, color);
120
109
  $icon: map-get($properties, icon);
121
110
 
122
111
  &-#{$key} {
123
- border-color: $color;
124
- border-width: 2px;
125
-
126
- &:before {
127
- background-color: $color;
128
- }
112
+ border-color: $color;
113
+ border-width: 2px;
129
114
 
130
- &:after {
131
- background-image: url($icon);
132
- }
115
+ &:before {
116
+ background-color: $color;
117
+ }
133
118
 
119
+ &:after {
120
+ background-image: url($icon);
121
+ }
134
122
  }
123
+ }
135
124
  }
136
-
137
- }
@@ -1,7 +1,9 @@
1
1
  .link-column {
2
- background-color: var(--qld-body-bg);
2
+ --max-column-width: 46rem;
3
+ background-color: var(--#{$prefix}body-bg);
4
+
3
5
  &:has(.col-1) {
4
- max-width: 46rem;
6
+ max-width: var(--max-column-width);
5
7
  }
6
8
  ul {
7
9
  width: 100%;
@@ -13,18 +15,12 @@
13
15
  }
14
16
  .col-2 {
15
17
  grid-template-columns: repeat(2, 1fr);
16
- .all-link {
17
- grid-column: 1/-1;
18
- }
19
18
  @include media-breakpoint-down(md) {
20
19
  grid-template-columns: repeat(1, 1fr);
21
20
  }
22
21
  }
23
22
  .col-3 {
24
23
  grid-template-columns: repeat(3, 1fr);
25
- .all-link {
26
- grid-column: 1/-1;
27
- }
28
24
  @include media-breakpoint-down(lg) {
29
25
  grid-template-columns: repeat(2, 1fr);
30
26
  }
@@ -57,25 +53,27 @@
57
53
  }
58
54
  }
59
55
  .nav-item {
60
- box-shadow: 0 1px 0 var(--qld-border-color);
61
- max-width: 46rem;
56
+ max-width: var(--max-column-width);
62
57
  display: flex;
63
58
  gap: 1rem;
64
59
  align-items: center;
65
60
  align-content: center;
61
+ border-block-end: 1px solid var(--#{$prefix}light-grey);
66
62
  // Required to reset styles from .qld-content-body li
67
63
  margin-block: 0;
68
64
  //Reset the line height too to override styles from .qld-content-body li
69
65
  line-height: 1.5rem;
70
66
  .nav-link {
71
- text-decoration: none;
72
- text-decoration-thickness: 0.5px;
73
- transition: text-decoration-thickness 0.2s ease;
67
+ text-decoration: underline;
68
+ text-decoration-color: transparent;
69
+ text-decoration-thickness: 0;
70
+ transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease;
74
71
  display: flex;
72
+ align-items: center;
75
73
  flex: 1;
76
74
  padding-block: 1rem;
77
75
  padding-inline: 0;
78
- color: var(--qld-link-color);
76
+ color: var(--#{$prefix}link-color);
79
77
  font-weight: 600;
80
78
  &::after {
81
79
  height: 1.25rem;
@@ -87,21 +85,15 @@
87
85
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='currentColor' d='M443.7 266.8l-165.9 176C274.5 446.3 269.1 448 265.5 448c-3.986 0-7.988-1.375-11.16-4.156c-6.773-5.938-7.275-16.06-1.118-22.59L393.9 272H16.59c-9.171 0-16.59-7.155-16.59-15.1S7.421 240 16.59 240h377.3l-140.7-149.3c-6.157-6.531-5.655-16.66 1.118-22.59c6.789-5.906 17.27-5.469 23.45 1.094l165.9 176C449.4 251.3 449.4 260.7 443.7 266.8z'/%3E%3C/svg%3E");
88
86
  mask-repeat: no-repeat;
89
87
  mask-position: right center;
90
- background-color: var(--qld-action-icon-color);
88
+ background-color: var(--#{$prefix}action-icon-color);
91
89
  transition: margin-inline-end 0.2s ease, width 0.2s ease;
92
-
93
- .ie8 &,
94
- .lt-ie8 & {
95
- content: " → ";
96
- }
97
90
  }
98
91
  &:hover {
99
- text-decoration: underline;
100
- text-decoration-color: var(--qld-link-color);
92
+ text-decoration-color: var(--#{$prefix}link-color);
101
93
  text-decoration-thickness: 2px;
102
- transition: text-decoration-thickness 0.2s ease;
94
+ transition: text-decoration-thickness 0.2s ease, text-decoration-color 0.2s ease;
103
95
  &::after {
104
- background-color: var(--qld-action-icon-hover-color);
96
+ background-color: var(--#{$prefix}action-icon-hover-color);
105
97
  margin-inline-end: 0rem;
106
98
  width: 2.5rem;
107
99
  transition: margin-inline-end 0.2s ease, width 0.2s ease;
@@ -110,8 +102,9 @@
110
102
  }
111
103
  }
112
104
  .all-link{
105
+ grid-column: 1/-1;
113
106
  max-width: 100%;
114
- box-shadow: none;
107
+ border-block-end: none;
115
108
  column-span: all;
116
109
  .qld-cta-link {
117
110
  margin-block-start: 2rem;
@@ -2,6 +2,8 @@
2
2
  {{>logoCOALandscape}}
3
3
  {{else ifCond logo "===" "coa-landscape-2lines"}}
4
4
  {{>logoCOALandscape2Lines}}
5
+ {{else ifCond logo "===" "coa-delivering-for-qld"}}
6
+ {{>logoCOADeliveringForQLD}}
5
7
  {{else}}
6
8
  {{>logoCOALandscape}}
7
9
  {{/ifCond}}