@qld-gov-au/qgds-bootstrap5 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.js +1 -1
- package/.storybook/preview.js +8 -0
- package/README.md +96 -46
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.helpers.bundle.js +1 -1
- package/dist/assets/js/handlebars.helpers.bundle.js.map +3 -3
- package/dist/assets/js/handlebars.helpers.js +4 -8
- package/dist/assets/js/qld.bootstrap.min.js +9 -9
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
- package/dist/components/bs5/button/button.hbs +30 -9
- package/dist/components/bs5/header/header.hbs +15 -17
- package/dist/components/bs5/navbar/navbar.hbs +1 -1
- package/dist/components/bs5/quickexit/quickexit.hbs +28 -20
- package/dist/components/bs5/searchInput/searchInput.hbs +9 -3
- package/dist/components/handlebars.helpers.js +4 -8
- package/dist/components/handlebars.init.bundle.js +1 -1
- package/dist/components/handlebars.init.bundle.js.map +3 -3
- package/dist/sample-data/button/button.data.json +2 -1
- package/dist/sample-data/header/header.data.json +134 -75
- package/dist/sample-data/navbar/navbar.data.json +8 -8
- package/dist/sample-data/quickexit/quickexit.data.json +8 -1
- package/dist/sample-data/searchInput/searchInput.data.json +10 -1
- package/package.json +20 -19
- package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +71 -32
- package/src/components/bs5/breadcrumbs/breadcrumbs.hbs +1 -1
- package/src/components/bs5/button/button.data.json +2 -1
- package/src/components/bs5/button/button.hbs +30 -9
- package/src/components/bs5/button/button.scss +87 -44
- package/src/components/bs5/button/button.stories.js +121 -27
- package/src/components/bs5/callout/callout.scss +1 -1
- package/src/components/bs5/header/_colours.scss +0 -52
- package/src/components/bs5/header/header.data.json +134 -75
- package/src/components/bs5/header/header.functions.js +1 -180
- package/src/components/bs5/header/header.hbs +15 -17
- package/src/components/bs5/header/header.scss +7 -156
- package/src/components/bs5/header/header.stories.js +10 -50
- package/src/components/bs5/modal/modal.scss +54 -35
- package/src/components/bs5/modal/modal.stories.js +2 -2
- package/src/components/bs5/navbar/_colours.scss +46 -82
- package/src/components/bs5/navbar/navbar.data.json +8 -8
- package/src/components/bs5/navbar/navbar.hbs +1 -1
- package/src/components/bs5/navbar/navbar.scss +15 -6
- package/src/components/bs5/quickexit/_colours.scss +28 -0
- package/src/components/bs5/quickexit/quickexit.data.json +8 -1
- package/src/components/bs5/quickexit/quickexit.hbs +28 -20
- package/src/components/bs5/quickexit/quickexit.scss +236 -156
- package/src/components/bs5/quickexit/quickexit.stories.js +35 -13
- package/src/components/bs5/searchInput/_colours.scss +63 -0
- package/src/components/bs5/searchInput/search.functions.js +170 -0
- package/src/components/bs5/searchInput/searchInput.data.json +10 -1
- package/src/components/bs5/searchInput/searchInput.hbs +9 -3
- package/src/components/bs5/searchInput/searchInput.scss +122 -21
- package/src/components/bs5/searchInput/searchInput.stories.js +1 -1
- package/src/components/bs5/tag/tag.scss +4 -2
- package/src/js/handlebars.helpers.js +4 -8
- package/src/main.js +24 -7
- package/src/main.scss +6 -3
- package/src/scss/qld-print.scss +365 -0
- package/src/scss/qld-variables.scss +87 -101
- package/src/components/common/header/Header.js +0 -11
- package/src/components/common/header/header.html +0 -259
- package/src/components/common/header/header.scss +0 -118
- /package/src/components/bs5/{header/_search.json → searchInput/search.json} +0 -0
package/src/main.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { accordionToggleAll, accordionToggleAllButtonState, accordionHashLinks } from "./components/bs5/accordion/accordion.functions";
|
|
2
2
|
import { videoEmbedPlay, videoTranscriptTitle } from "./components/bs5/video/video.functions";
|
|
3
3
|
import { initializeNavbar } from './components/bs5/navbar/navbar.functions';
|
|
4
|
-
import {
|
|
4
|
+
import { initBreadcrumb } from "./components/bs5/breadcrumbs/breadcrumb.functions";
|
|
5
5
|
import { positionQuickExit, initQuickexit } from './components/bs5/quickexit/quickexit.functions';
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
import { toggleSearch } from './components/bs5/header/header.functions';
|
|
8
|
+
import { showSuggestions } from './components/bs5/searchInput/search.functions';
|
|
7
9
|
|
|
8
10
|
window.addEventListener('scroll', positionQuickExit, true);
|
|
9
11
|
window.addEventListener('resize', positionQuickExit, true);
|
|
@@ -15,10 +17,14 @@ window.addEventListener("DOMContentLoaded", () => {
|
|
|
15
17
|
|
|
16
18
|
//Header search
|
|
17
19
|
let headerSearchButton = document.querySelector('.qld__main-nav__toggle-search');
|
|
18
|
-
|
|
20
|
+
|
|
21
|
+
if (headerSearchButton) {
|
|
19
22
|
document.querySelector('.qld__main-nav__toggle-search').addEventListener('click', toggleSearch);
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
|
|
25
|
+
const form = document.querySelector('.site-search');
|
|
26
|
+
const searchInput = form.querySelector('.qld-search-input input');
|
|
27
|
+
|
|
22
28
|
if (searchInput) {
|
|
23
29
|
let timeout;
|
|
24
30
|
|
|
@@ -38,19 +44,30 @@ window.addEventListener("DOMContentLoaded", () => {
|
|
|
38
44
|
showSuggestions('', true);
|
|
39
45
|
}
|
|
40
46
|
});
|
|
47
|
+
|
|
41
48
|
// Close suggestions when clicking outside
|
|
42
49
|
document.addEventListener('click', function(event) {
|
|
43
|
-
if (!searchInput.contains(event.target) && !document.
|
|
44
|
-
document.
|
|
50
|
+
if (!searchInput.contains(event.target) && !document.querySelector('.suggestions').contains(event.target)) {
|
|
51
|
+
document.querySelector('.suggestions').style.display = 'none';
|
|
45
52
|
}
|
|
46
53
|
});
|
|
47
54
|
}
|
|
48
55
|
|
|
56
|
+
//Header
|
|
57
|
+
// Get the <header> element
|
|
58
|
+
var header = document.querySelector('header');
|
|
59
|
+
if (header) {
|
|
60
|
+
// Get the current page URL without query string parameters
|
|
61
|
+
var url = window.location.origin + window.location.pathname;
|
|
62
|
+
// Set the data-page-url attribute on the <header> element
|
|
63
|
+
header.setAttribute('data-page-url', url);
|
|
64
|
+
}
|
|
65
|
+
|
|
49
66
|
// Navbar
|
|
50
67
|
initializeNavbar();
|
|
51
68
|
|
|
52
69
|
// Breadcrumb
|
|
53
|
-
|
|
70
|
+
initBreadcrumb();
|
|
54
71
|
|
|
55
72
|
// Quick exit
|
|
56
73
|
initQuickexit();
|
package/src/main.scss
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Guidelines for this setup: https://getbootstrap.com/docs/5.3/customize/sass/
|
|
6
6
|
|
|
7
7
|
// External fonts
|
|
8
|
-
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&family=Noto+Sans:wght@400;600&display=swap');
|
|
8
|
+
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&family=Noto+Sans:wght@400;600;900&display=swap');
|
|
9
9
|
$font-family-sans-serif: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
|
|
10
10
|
$font-family-sitename: "Fira Sans";
|
|
11
11
|
|
|
@@ -113,5 +113,8 @@ $enable-dark-mode: true;
|
|
|
113
113
|
// Common Layout Blocks, under review
|
|
114
114
|
@import "./components/common/layout/content.scss";
|
|
115
115
|
|
|
116
|
-
// Themes
|
|
117
|
-
@import "./scss/qld-theme.scss";
|
|
116
|
+
// Themes
|
|
117
|
+
@import "./scss/qld-theme.scss";
|
|
118
|
+
|
|
119
|
+
// Print
|
|
120
|
+
@import "./scss/qld-print.scss";
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
@media print {
|
|
2
|
+
|
|
3
|
+
.h1, h1 {
|
|
4
|
+
font-size: 1.5em; // Size of h2
|
|
5
|
+
margin-top: -5rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.h2, h2 {
|
|
9
|
+
font-size: 1.17em; // Size of h3
|
|
10
|
+
&:not(:first-child) {
|
|
11
|
+
margin-top: 1rem;
|
|
12
|
+
margin-bottom: 1rem;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.h3, h3 {
|
|
17
|
+
font-size: 1em; // Size of h4
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.h4, h4 {
|
|
21
|
+
font-size: 0.83em; // Size of h5
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.h5, h5 {
|
|
25
|
+
font-size: 0.67em; // Size of h6
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
width: 100%;
|
|
30
|
+
margin: 0;
|
|
31
|
+
float: none;
|
|
32
|
+
position: static;
|
|
33
|
+
}
|
|
34
|
+
*:before,
|
|
35
|
+
*:after {
|
|
36
|
+
color: #000 !important;
|
|
37
|
+
text-shadow: none !important;
|
|
38
|
+
// background: transparent !important; // originally for icons
|
|
39
|
+
box-shadow: none !important;
|
|
40
|
+
}
|
|
41
|
+
a,
|
|
42
|
+
a:visited {
|
|
43
|
+
text-decoration-line: underline;
|
|
44
|
+
color: #000 !important;
|
|
45
|
+
}
|
|
46
|
+
// Don't show links that are fragment identifiers,
|
|
47
|
+
// or use the `javascript:` pseudo protocol
|
|
48
|
+
a[href^="#"]:after,
|
|
49
|
+
a[href^="javascript:"]:after {
|
|
50
|
+
content: "";
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
blockquote {
|
|
54
|
+
border: 1px solid #999;
|
|
55
|
+
page-break-inside: avoid;
|
|
56
|
+
}
|
|
57
|
+
thead {
|
|
58
|
+
display: table-header-group;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
tr,
|
|
62
|
+
img {
|
|
63
|
+
page-break-inside: avoid;
|
|
64
|
+
page-break-after: avoid;
|
|
65
|
+
page-break-before: avoid;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.qld__header__pre-header-brand-image {
|
|
69
|
+
display: block !important;
|
|
70
|
+
}
|
|
71
|
+
img {
|
|
72
|
+
max-width: 100% !important;
|
|
73
|
+
width: auto;
|
|
74
|
+
}
|
|
75
|
+
/** Setting margins */
|
|
76
|
+
// @page { margin: 2cm }
|
|
77
|
+
|
|
78
|
+
/* Addding page breaks for best practice */
|
|
79
|
+
p,
|
|
80
|
+
h2,
|
|
81
|
+
h3 {
|
|
82
|
+
orphans: 3;
|
|
83
|
+
widows: 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
a {
|
|
87
|
+
page-break-inside: avoid;
|
|
88
|
+
}
|
|
89
|
+
h1, h2, h3, h4, h5, h6 {
|
|
90
|
+
page-break-after: avoid;
|
|
91
|
+
page-break-inside: avoid;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
table, pre {
|
|
95
|
+
page-break-inside: avoid;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
ul, ol, dl {
|
|
99
|
+
page-break-before: avoid;
|
|
100
|
+
}
|
|
101
|
+
blockquote {
|
|
102
|
+
page-break-inside: avoid;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
.btn,
|
|
107
|
+
.dropup > .btn {
|
|
108
|
+
> .caret {
|
|
109
|
+
border-top-color: #000 !important;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.label {
|
|
113
|
+
border: 1px solid #000;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.table-bordered {
|
|
117
|
+
th,
|
|
118
|
+
td {
|
|
119
|
+
border: 1px solid #ddd !important;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.row {
|
|
123
|
+
display: block;
|
|
124
|
+
}
|
|
125
|
+
.btn {
|
|
126
|
+
border: none;
|
|
127
|
+
.btn-icon {
|
|
128
|
+
width: auto;
|
|
129
|
+
}
|
|
130
|
+
&:disabled,
|
|
131
|
+
&.disabled {
|
|
132
|
+
color: #d3d3d3!important;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.qg-site-map {
|
|
137
|
+
display:none !important;
|
|
138
|
+
}
|
|
139
|
+
#qg-primary-content {
|
|
140
|
+
max-width: 100%;
|
|
141
|
+
width:100%;
|
|
142
|
+
left:0;
|
|
143
|
+
table{
|
|
144
|
+
font-size: 15px;
|
|
145
|
+
}
|
|
146
|
+
margin-top: 0;
|
|
147
|
+
h1 {
|
|
148
|
+
font-size: 25px;
|
|
149
|
+
}
|
|
150
|
+
h2 {
|
|
151
|
+
font-size: 20px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Hide sections that are not to print */
|
|
156
|
+
#qg-access,
|
|
157
|
+
#browser,
|
|
158
|
+
#qg-banner,
|
|
159
|
+
#tools,
|
|
160
|
+
#qg-site-nav,
|
|
161
|
+
#qg-section-nav,
|
|
162
|
+
.qg-section-nav,
|
|
163
|
+
#qg-site-map,
|
|
164
|
+
.qg-options,
|
|
165
|
+
#qg-page-feedback,
|
|
166
|
+
#header-bg,
|
|
167
|
+
.print-content-link,
|
|
168
|
+
#qg-site-header form,
|
|
169
|
+
.qg-utilities,
|
|
170
|
+
#qg-location-dropdown,
|
|
171
|
+
.qg-legal li {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* Some landmark headings should be visible */
|
|
176
|
+
.breadcrumb h2 {
|
|
177
|
+
position: static;
|
|
178
|
+
}
|
|
179
|
+
/* Style breadcrumbs */
|
|
180
|
+
.breadcrumb {
|
|
181
|
+
display: inline;
|
|
182
|
+
list-style: none;
|
|
183
|
+
}
|
|
184
|
+
.breadcrumb h2 {
|
|
185
|
+
font-size: 100%;
|
|
186
|
+
display: block;
|
|
187
|
+
margin: .5em 0;
|
|
188
|
+
font-weight: normal;
|
|
189
|
+
}
|
|
190
|
+
.breadcrumb ol,
|
|
191
|
+
.breadcrumb li,
|
|
192
|
+
.breadcrumb li.last-child,
|
|
193
|
+
.breadcrumb a {
|
|
194
|
+
text-decoration-line: none !important;
|
|
195
|
+
color: black !important;
|
|
196
|
+
display: inline !important;
|
|
197
|
+
margin: 0 !important;
|
|
198
|
+
padding: 0 !important;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.breadcrumb a {
|
|
202
|
+
padding-right: .5em;
|
|
203
|
+
}
|
|
204
|
+
.breadcrumb a:after, .breadcrumb .breadcrumb-item a:after {
|
|
205
|
+
content: " >";
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
.breadcrumb li:before, .breadcrumb a:before {
|
|
209
|
+
display: none !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* A few simple lines */
|
|
213
|
+
#qg-site-header {
|
|
214
|
+
border-bottom: 1px solid #000000 !important;
|
|
215
|
+
margin-bottom: 1em;
|
|
216
|
+
display: block;
|
|
217
|
+
min-height: 32mm;
|
|
218
|
+
}
|
|
219
|
+
#qg-site-map {
|
|
220
|
+
border-top: 1px solid #000000;
|
|
221
|
+
padding-top: 1em;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* hide the tagline when printing */
|
|
225
|
+
#qg-branding {
|
|
226
|
+
display: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
#page-container,
|
|
230
|
+
#content-container,
|
|
231
|
+
.article,
|
|
232
|
+
#document-properties,
|
|
233
|
+
#post-page-options,
|
|
234
|
+
#page-feedback,
|
|
235
|
+
#content .section,
|
|
236
|
+
#content,
|
|
237
|
+
.section,
|
|
238
|
+
.max-width {
|
|
239
|
+
width: 100% !important;
|
|
240
|
+
max-width: 100% !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.print-link-url,
|
|
244
|
+
#site-name img.qg-print-version,
|
|
245
|
+
#qg-logo img.qg-print-version,
|
|
246
|
+
#qg-coa img.qg-print-version {
|
|
247
|
+
margin: 0;
|
|
248
|
+
padding: 0;
|
|
249
|
+
text-decoration-line: none;
|
|
250
|
+
display: inline;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
#ia .d1 img {
|
|
254
|
+
float: left;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
body {
|
|
258
|
+
/* Set some defaults */
|
|
259
|
+
background: white;
|
|
260
|
+
|
|
261
|
+
/* Reset variables as needed for printing */
|
|
262
|
+
--qld-body-color: black;
|
|
263
|
+
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Hide elements not needed for printing */
|
|
267
|
+
.navbar, footer, .sidebar {
|
|
268
|
+
display: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.row {
|
|
272
|
+
margin-left: 0px;
|
|
273
|
+
margin-right: 0px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/* Other print styles... */
|
|
278
|
+
blockquote {
|
|
279
|
+
border: none;
|
|
280
|
+
}
|
|
281
|
+
.pagination, .qld-quick-exit {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
.accordion {
|
|
285
|
+
--#{$prefix}accordion-btn-bg: transparent !important;
|
|
286
|
+
--#{$prefix}accordion-border-color: transparent !important;
|
|
287
|
+
--#{$prefix}accordion-btn-color: var(--qld-body-color);
|
|
288
|
+
.accordion-button {
|
|
289
|
+
text-decoration: none;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
.accordion-toggle-btn {
|
|
293
|
+
display: none;
|
|
294
|
+
}
|
|
295
|
+
header:after {
|
|
296
|
+
content:"(" attr(data-page-url) ")";
|
|
297
|
+
display: block;
|
|
298
|
+
font-size: 0.9rem;
|
|
299
|
+
font-weight: bold;
|
|
300
|
+
margin-bottom: 1em;
|
|
301
|
+
margin-left: 2em;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.nav-item.active a {
|
|
305
|
+
display: block;
|
|
306
|
+
}
|
|
307
|
+
.accordion-collapse {
|
|
308
|
+
display: block!important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
a[href^=http]:after {
|
|
312
|
+
content:" (" attr(href) ")";
|
|
313
|
+
color: var(--qld-primary) !important;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
a.btn {
|
|
317
|
+
box-shadow: none;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
button.btn {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.global-alert {
|
|
325
|
+
display: none;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
a.btn:after {
|
|
329
|
+
display: block;
|
|
330
|
+
content:" (" attr(href) ")";
|
|
331
|
+
}
|
|
332
|
+
/* Custom qld- styles */
|
|
333
|
+
.qld-side-navigation, .qld-inpage-nav, .qld__header__site-search.qld__header__site-search--closed {
|
|
334
|
+
display: none;
|
|
335
|
+
}
|
|
336
|
+
.qld__header__brand-image.qld__header__brand-image_subtype, .qld__header__brand-image {
|
|
337
|
+
display: block !important;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.qld__header__brand a:after {
|
|
341
|
+
display: none;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* adding class to print data-href from breadcrumb link */
|
|
345
|
+
.print-current-url {
|
|
346
|
+
display: block;
|
|
347
|
+
font-size: bold;
|
|
348
|
+
color: var(--qld-primary) !important;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/*print styles for forms*/
|
|
354
|
+
@media only print {
|
|
355
|
+
form abbr[title*=required]:after {
|
|
356
|
+
content: ''
|
|
357
|
+
}
|
|
358
|
+
form .label {
|
|
359
|
+
border: none;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.no-print {
|
|
364
|
+
@extend .d-print-none;
|
|
365
|
+
}
|
|
@@ -4,48 +4,40 @@
|
|
|
4
4
|
// These variables include new $variables for the project, or replace existing out-of-the-box bootstrap variables defined under /node_modules/bootstrap/.../_variables.scss,
|
|
5
5
|
|
|
6
6
|
//QGDS tokens - masterbrand
|
|
7
|
+
@import "@qld-gov-au/qgds-tokens/dist/scss/_variables.scss";
|
|
7
8
|
@import "@qld-gov-au/qgds-tokens/dist/scss/_map.scss";
|
|
8
9
|
|
|
9
10
|
//QLD Names Colours
|
|
10
|
-
$qld-dark-blue :
|
|
11
|
-
$qld-sapphire-blue :
|
|
12
|
-
$qld-light-blue :
|
|
13
|
-
$qld-light-green :
|
|
14
|
-
$qld-dark-green :
|
|
15
|
-
$qld-golden-yellow :
|
|
16
|
-
$qld-maroon-traditional :
|
|
17
|
-
$qld-maroon-modern :
|
|
18
|
-
$qld-dark-text:
|
|
19
|
-
$qld-dark-border:
|
|
20
|
-
$qld-dark-alt-border:
|
|
21
|
-
$qld-alt-button-hover:
|
|
22
|
-
$qld-general-info-alert:
|
|
23
|
-
$qld-red-border:
|
|
24
|
-
$qld-blue-border:
|
|
25
|
-
$qld-yellow-border:
|
|
26
|
-
$qld-dark-blue-shade :
|
|
27
|
-
$qld-light-background:
|
|
28
|
-
$qld-light-background-shade:
|
|
29
|
-
$qld-light-border:
|
|
30
|
-
$qld-dark-focus:
|
|
31
|
-
$qld-link-visited:
|
|
32
|
-
$qld-link-visited-dark:
|
|
33
|
-
$qld-text-light-blue-dark :
|
|
34
|
-
$qld-light-green-dark :
|
|
35
|
-
$qld-dark-green-dark :
|
|
36
|
-
$qld-light-yellow :
|
|
37
|
-
$qld-button-dark-blue :
|
|
38
|
-
$qld-text-darkest :
|
|
39
|
-
$qld-dark-hover :
|
|
40
|
-
|
|
41
|
-
//Hypothetical
|
|
42
|
-
$cobrand-blue : #132D4E;
|
|
43
|
-
$cobrand-grey : #294d7b;
|
|
44
|
-
$cobrand-maroon : #A70240;
|
|
45
|
-
$cobrand-purple : #634B78;
|
|
46
|
-
$cobrand-yellow : #FBAF54;
|
|
47
|
-
$cobrand-orange : #FD855D;
|
|
48
|
-
|
|
11
|
+
$qld-dark-blue : $core-default-color-brand-primary-dark-blue;
|
|
12
|
+
$qld-sapphire-blue : $core-default-color-brand-primary-sapphire-blue;
|
|
13
|
+
$qld-light-blue : $core-default-color-brand-primary-light-blue;
|
|
14
|
+
$qld-light-green : $core-default-color-brand-primary-light-green;
|
|
15
|
+
$qld-dark-green : $core-default-color-brand-secondary-darkgreen;
|
|
16
|
+
$qld-golden-yellow : $core-default-color-brand-secondary-golden-yellow;
|
|
17
|
+
$qld-maroon-traditional : $core-default-color-brand-other-gov-maroon;
|
|
18
|
+
$qld-maroon-modern : $core-default-color-brand-other-modern-maroon;
|
|
19
|
+
$qld-dark-text: $core-default-color-neutral-white;
|
|
20
|
+
$qld-dark-border: $color-default-color-dark-border-default;
|
|
21
|
+
$qld-dark-alt-border: $color-default-color-dark-border-alt;
|
|
22
|
+
$qld-alt-button-hover: $color-default-color-light-action-secondary-hover;
|
|
23
|
+
$qld-general-info-alert: $core-default-color-status-info-lighter;
|
|
24
|
+
$qld-red-border: $core-default-color-status-error-darker;
|
|
25
|
+
$qld-blue-border: $color-default-color-light-border-light;
|
|
26
|
+
$qld-yellow-border: $core-default-color-status-caution-darker;
|
|
27
|
+
$qld-dark-blue-shade : $color-default-color-dark-background-alt-shade;
|
|
28
|
+
$qld-light-background: $core-default-color-status-info-lightest;
|
|
29
|
+
$qld-light-background-shade: $color-default-color-light-background-light-shade;
|
|
30
|
+
$qld-light-border: $color-default-color-light-border-default;
|
|
31
|
+
$qld-dark-focus: $color-default-color-dark-focus-default;
|
|
32
|
+
$qld-link-visited: $color-default-color-light-underline-visited;
|
|
33
|
+
$qld-link-visited-dark: $color-default-color-dark-underline-visited;
|
|
34
|
+
$qld-text-light-blue-dark : $core-default-color-neutral-lighter;
|
|
35
|
+
$qld-light-green-dark : $core-default-color-brand-primary-light-green;
|
|
36
|
+
$qld-dark-green-dark : $color-default-color-dark-action-primary;
|
|
37
|
+
$qld-light-yellow : $core-default-color-status-caution-lightest;
|
|
38
|
+
$qld-button-dark-blue : $color-default-color-light-action-primary-hover;
|
|
39
|
+
$qld-text-darkest : $color-default-color-dark-link-on-action;
|
|
40
|
+
$qld-dark-hover : $color-default-color-dark-background-default-shade;
|
|
49
41
|
|
|
50
42
|
//QGOV Brand Mapping - QLD.GOV.AU
|
|
51
43
|
$qld-brand-primary-dark : $qld-dark-blue;
|
|
@@ -55,74 +47,66 @@ $qld-brand-secondary-dark : $qld-dark-green;
|
|
|
55
47
|
$qld-brand-secondary : $qld-light-green;
|
|
56
48
|
$qld-brand-accent : $qld-golden-yellow;
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
// Uncoment to switch primary palette
|
|
60
|
-
// $qld-brand-primary-dark : $cobrand-grey;
|
|
61
|
-
// $qld-brand-primary : $cobrand-maroon;
|
|
62
|
-
// $qld-brand-primary-light : $cobrand-blue;
|
|
63
|
-
// $qld-brand-secondary-dark : $cobrand-orange;
|
|
64
|
-
// $qld-brand-secondary : $cobrand-purple;
|
|
65
|
-
// $qld-brand-accent : $cobrand-yellow;
|
|
66
|
-
|
|
67
|
-
|
|
68
50
|
//Grays
|
|
69
|
-
$qld-system-darkest :
|
|
70
|
-
$qld-text-
|
|
71
|
-
$qld-
|
|
72
|
-
$qld-
|
|
73
|
-
$qld-color-
|
|
74
|
-
$qld-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
$qld-
|
|
78
|
-
$qld-soft-grey : #7A7A7A;
|
|
79
|
-
$qld-alt-grey : #DADADA;
|
|
80
|
-
$qld-grey : #E0E0E0;
|
|
81
|
-
$qld-light-grey : #EBEBEB;
|
|
82
|
-
$qld-light-grey-alt : #E8E8E8;
|
|
83
|
-
$qld-extra-light-grey : #F5F5F5;
|
|
84
|
-
$qld-white : #FFFFFF;
|
|
85
|
-
$qld-white-underline : rgba(255, 255, 255, 0.72);
|
|
86
|
-
$qld-dark-underline : rgba(3, 33, 63, 0.72);
|
|
87
|
-
$qld-maroon-traditional: #771E32;
|
|
88
|
-
$qld-maroon-modern : #A70240;
|
|
89
|
-
$qld-notify-warning : #E22339;
|
|
90
|
-
$qld-notify-information: #0085B3;
|
|
91
|
-
$qld-notify-success : #339D37;
|
|
92
|
-
$qld-notify-alert : #FFCC2C;
|
|
93
|
-
$qld-syntax-values : #6BBE27;
|
|
94
|
-
$qld-syntax-elements : #A7E5FF;
|
|
95
|
-
$qld-syntax-properties : #C88DF7;
|
|
96
|
-
$qld-syntax-comments : #C0D7EC;
|
|
97
|
-
$qld-textbox-border-color: #003E7D;
|
|
98
|
-
$qld-color-error-light: #FFF6F6;
|
|
99
|
-
$qld-color-success-light: #F7FBF8;
|
|
51
|
+
$qld-system-darkest : $core-default-color-neutral-darkest;
|
|
52
|
+
$qld-hint-text-color: $core-default-color-neutral-dark;
|
|
53
|
+
$qld-dark-grey : $core-default-color-neutral-darker;
|
|
54
|
+
$qld-medium-grey : $core-default-color-neutral-dark;
|
|
55
|
+
$qld-alt-grey : $core-default-color-neutral-light;
|
|
56
|
+
$qld-light-link: $color-default-color-light-link-default;
|
|
57
|
+
|
|
58
|
+
//Should be core color rather than second hand reference (no match)
|
|
59
|
+
$qld-soft-grey : $color-default-color-light-border-alt;
|
|
100
60
|
|
|
101
|
-
$qld-
|
|
61
|
+
$qld-dark-grey-muted : $color-default-color-light-text-lighter;
|
|
62
|
+
$qld-text-grey : $color-default-color-light-text-default;
|
|
63
|
+
$qld-hint-text-color-muted: $core-default-color-neutral-lighter;
|
|
64
|
+
$qld-color-dark-button-hover: $core-default-color-brand-primary-light-green;
|
|
65
|
+
$qld-text-headings : $color-default-color-light-text-heading;
|
|
66
|
+
$qld-grey : $core-default-color-neutral-light;
|
|
67
|
+
$qld-light-grey : $core-default-color-neutral-lighter;
|
|
68
|
+
$qld-light-grey-alt : $color-default-color-light-background-alt;
|
|
69
|
+
$qld-extra-light-grey : $core-default-color-neutral-lightest;
|
|
70
|
+
$qld-white : $core-default-color-neutral-white;
|
|
71
|
+
$qld-white-underline : $core-default-color-status-underline-light;
|
|
72
|
+
$qld-dark-underline : $core-default-color-status-underline-dark;
|
|
73
|
+
$qld-maroon-traditional: $core-default-color-brand-other-gov-maroon;
|
|
74
|
+
$qld-maroon-modern : $core-default-color-brand-other-modern-maroon;
|
|
75
|
+
$qld-notify-warning : $core-default-color-status-error-default;
|
|
76
|
+
$qld-notify-information: $core-default-color-status-info-default;
|
|
77
|
+
$qld-notify-success : $core-default-color-status-success-default;
|
|
78
|
+
$qld-notify-alert : $core-default-color-status-caution-default;
|
|
79
|
+
$qld-syntax-values : $core-default-color-brand-primary-light-green;
|
|
80
|
+
$qld-syntax-elements : $core-default-color-code-light-blue;
|
|
81
|
+
$qld-syntax-properties : $core-default-color-code-violet;
|
|
82
|
+
$qld-syntax-comments : $core-default-color-code-muted;
|
|
83
|
+
$qld-textbox-border-color: $color-default-color-light-action-primary-hover;
|
|
84
|
+
$qld-color-error-light: $core-default-color-status-error-lightest;
|
|
85
|
+
$qld-color-success-light: $core-default-color-status-success-lightest;
|
|
102
86
|
|
|
103
87
|
// Define new figma variables as SASS variables
|
|
104
|
-
$qld-color-background:
|
|
105
|
-
$qld-color-background--shade:
|
|
106
|
-
$qld-color-light-background:
|
|
107
|
-
$qld-color-light-background--shade:
|
|
108
|
-
$qld-color-light-alt-background:
|
|
109
|
-
$qld-color-light-alt-background--shade:
|
|
88
|
+
$qld-color-background: $core-default-color-neutral-white;
|
|
89
|
+
$qld-color-background--shade: $color-default-color-light-background-default-shade;
|
|
90
|
+
$qld-color-light-background: $core-default-color-status-info-lightest;
|
|
91
|
+
$qld-color-light-background--shade: $color-default-color-light-background-light-shade;
|
|
92
|
+
$qld-color-light-alt-background: $color-default-color-light-background-alt;
|
|
93
|
+
$qld-color-light-alt-background--shade: $color-default-color-light-background-alt-shade;
|
|
110
94
|
|
|
111
|
-
$qld-color-dark-background:
|
|
112
|
-
$qld-color-dark-background--shade:
|
|
113
|
-
$qld-color-dark-alt-background:
|
|
114
|
-
$qld-color-dark-alt-background--shade:
|
|
95
|
+
$qld-color-dark-background: $core-default-color-brand-primary-sapphire-blue;
|
|
96
|
+
$qld-color-dark-background--shade: $color-default-color-dark-background-default-shade;
|
|
97
|
+
$qld-color-dark-alt-background: $core-default-color-brand-primary-dark-blue;
|
|
98
|
+
$qld-color-dark-alt-background--shade: $color-default-color-dark-background-alt-shade;
|
|
115
99
|
|
|
116
100
|
$qld-light-action-primary: $qld-sapphire-blue;
|
|
117
|
-
$qld-light-action-primary-hover: $
|
|
118
|
-
$qld-light-action-secondary:
|
|
119
|
-
$qld-light-action-secondary-hover:
|
|
101
|
+
$qld-light-action-primary-hover: $color-default-color-light-action-primary-hover;
|
|
102
|
+
$qld-light-action-secondary: $color-default-color-light-action-secondary;
|
|
103
|
+
$qld-light-action-secondary-hover: $color-default-color-light-action-secondary-hover;
|
|
120
104
|
|
|
121
|
-
$qld-dark-action-primary: $
|
|
122
|
-
$qld-dark-action-primary-hover: $
|
|
123
|
-
$qld-dark-action-secondary:
|
|
124
|
-
$qld-dark-action-secondary-hover:
|
|
125
|
-
$qld-dark-action-text: $
|
|
105
|
+
$qld-dark-action-primary: $color-default-color-dark-action-primary;
|
|
106
|
+
$qld-dark-action-primary-hover: $color-default-color-dark-action-primary-hover;
|
|
107
|
+
$qld-dark-action-secondary: $core-default-color-brand-secondary-golden-yellow;
|
|
108
|
+
$qld-dark-action-secondary-hover: $color-default-color-dark-action-secondary-hover;
|
|
109
|
+
$qld-dark-action-text: $color-default-color-dark-link-on-action;
|
|
126
110
|
|
|
127
111
|
$primary : $qld-brand-primary;
|
|
128
112
|
$primary-dark : $qld-brand-primary-dark;
|
|
@@ -223,6 +207,8 @@ $project-colors: (
|
|
|
223
207
|
"light-background": $qld-light-background,
|
|
224
208
|
"light-background-shade": $qld-light-background-shade,
|
|
225
209
|
"light-border": $qld-light-border,
|
|
210
|
+
"light-link": $qld-light-link,
|
|
211
|
+
|
|
226
212
|
"light-alt-background": $qld-color-light-alt-background,
|
|
227
213
|
"light-alt-background-shade": $qld-color-light-alt-background--shade,
|
|
228
214
|
"dark-background": $qld-color-dark-background,
|
|
@@ -234,8 +220,8 @@ $project-colors: (
|
|
|
234
220
|
);
|
|
235
221
|
|
|
236
222
|
// Merge maps
|
|
237
|
-
$
|
|
238
|
-
$theme-colors: map-merge($
|
|
223
|
+
$tokens: map-merge($theme-colors, $qld-tokens);
|
|
224
|
+
$theme-colors: map-merge($tokens, $project-colors);
|
|
239
225
|
|
|
240
226
|
// Cusotm GRID breakpoints: https://getbootstrap.com/docs/5.2/layout/grid/#variables
|
|
241
227
|
$grid-breakpoints: (
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Component from "../../../js/QGDSComponent.js";
|
|
2
|
-
import template from "./table.hbs?raw";
|
|
3
|
-
|
|
4
|
-
export class Header {
|
|
5
|
-
// Use the global Component class to create a new instance of the Header component.
|
|
6
|
-
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
7
|
-
|
|
8
|
-
constructor(data = {}) {
|
|
9
|
-
return new Component(template, data);
|
|
10
|
-
}
|
|
11
|
-
}
|