@qld-gov-au/qgds-bootstrap5 1.0.11 → 1.0.13
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/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/qld.bootstrap.min.js +20 -14
- package/dist/assets/js/qld.bootstrap.min.js.map +4 -4
- package/dist/components/bs5/header/header.hbs +18 -72
- package/dist/sample-data/header/header.data.json +33 -169
- package/dist/sample-data/tag/tag.data.json +19 -15
- package/package.json +18 -17
- package/src/components/bs5/breadcrumbs/breadcrumb.functions.js +56 -0
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +20 -0
- package/src/components/bs5/card/card.scss +13 -2
- package/src/components/bs5/correctincorrect/correctincorrect.scss +45 -51
- package/src/components/bs5/correctincorrect/correctincorrect.stories.js +29 -28
- package/src/components/bs5/header/_colours.scss +93 -122
- package/src/components/bs5/header/header.data.json +33 -169
- package/src/components/bs5/header/header.functions.js +141 -78
- package/src/components/bs5/header/header.hbs +18 -72
- package/src/components/bs5/header/header.scss +32 -9
- package/src/components/bs5/navbar/navbar.functions.js +26 -7
- package/src/components/bs5/spinner/spinner.scss +1 -3
- package/src/components/bs5/tag/tag.data.json +19 -15
- package/src/components/bs5/tag/tag.scss +129 -39
- package/src/components/bs5/tag/tag.stories.js +12 -12
- package/src/main.js +13 -15
- package/src/main.scss +1 -0
- package/src/scss/qld-variables.scss +6 -15
|
@@ -228,64 +228,10 @@
|
|
|
228
228
|
{{/isType}}
|
|
229
229
|
|
|
230
230
|
{{#isType dropdown_options.dropdown_type "form"}}
|
|
231
|
-
{{#if dropdown_options.dropdown_config.
|
|
232
|
-
{{
|
|
233
|
-
|
|
234
|
-
{{#if heading}}<h4 class="mt-2">{{heading}}</h4>{{/if}}
|
|
235
|
-
{{#if content}}<p>{{content}}</p>{{/if}}
|
|
236
|
-
|
|
237
|
-
{{#isType actionType "button"}}
|
|
238
|
-
<a class="btn btn-primary" href="{{action.button_action}}"
|
|
239
|
-
{{#if action.button_targetAttr }}
|
|
240
|
-
target="{{action.button_targetAttr}}"
|
|
241
|
-
{{/if}}>
|
|
242
|
-
<span class="btn-icon fa-solid fa-arrow-up-right-from-square"></span>
|
|
243
|
-
{{action.button_label}}
|
|
244
|
-
</a>
|
|
245
|
-
{{/isType}}
|
|
246
|
-
|
|
247
|
-
{{#each links}}
|
|
248
|
-
<div class="group">
|
|
249
|
-
<a class="mt-4 qld__header__cta-group-list" href="{{url}}"
|
|
250
|
-
{{#if action}}
|
|
251
|
-
target="{{action}}"
|
|
252
|
-
{{/if}}>
|
|
253
|
-
{{label}}
|
|
254
|
-
</a>
|
|
255
|
-
</div>
|
|
256
|
-
<hr>
|
|
257
|
-
{{/each}}
|
|
258
|
-
|
|
259
|
-
{{#isType actionType "list"}}
|
|
260
|
-
{{#each list_items}}
|
|
261
|
-
<ul>
|
|
262
|
-
<li class="qld__header__cta-group-list group">
|
|
263
|
-
<a href="{{url}}"
|
|
264
|
-
{{#if action }}
|
|
265
|
-
target="{{action}}"
|
|
266
|
-
{{/if}}>
|
|
267
|
-
{{label}}
|
|
268
|
-
</a>
|
|
269
|
-
</li>
|
|
270
|
-
</ul>
|
|
271
|
-
<hr>
|
|
272
|
-
{{/each}}
|
|
273
|
-
{{/isType}}
|
|
274
|
-
|
|
275
|
-
{{#isType actionType "select"}}
|
|
276
|
-
<select class="qld-text-input form-select qld-select" aria-label="" required=""
|
|
277
|
-
aria-required="">
|
|
278
|
-
<option selected="">Please select</option>
|
|
279
|
-
{{#each options}}
|
|
280
|
-
<option value="{{value}}">{{value}}</option>
|
|
281
|
-
{{/each}}
|
|
282
|
-
</select>
|
|
283
|
-
{{/isType}}
|
|
284
|
-
|
|
285
|
-
{{/each}}
|
|
231
|
+
{{#if dropdown_options.dropdown_config.content}}
|
|
232
|
+
{{{dropdown_options.dropdown_config.content}}}
|
|
286
233
|
{{/if}}
|
|
287
234
|
{{/isType}}
|
|
288
|
-
|
|
289
235
|
</ul>
|
|
290
236
|
{{/if}}
|
|
291
237
|
</div>
|
|
@@ -294,22 +240,18 @@
|
|
|
294
240
|
</div>
|
|
295
241
|
<div class="qld__header__main-nav-controls">
|
|
296
242
|
{{#if siteSearchAsset.value}}
|
|
297
|
-
<button aria-controls="qld-header-search"
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
class="
|
|
301
|
-
<use href="{{icon-root}}#{{siteSearchAsset.options.icons.search-icon}}"></use>
|
|
243
|
+
<button aria-controls="qld-header-search" class="qld__header__toggle-main-nav qld__main-nav__toggle-search" aria-expanded="false">
|
|
244
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" class="qld__icon qld__icon--lg">
|
|
245
|
+
<use class="icon-search" href="{{icon-root}}#{{icons.search-icon}}" style="display: block;"></use>
|
|
246
|
+
<use class="icon-close" href="{{icon-root}}#{{icons.close-icon}}" style="display: none;"></use>
|
|
302
247
|
</svg>
|
|
303
248
|
<span class="qld__main-nav__toggle-text">Search</span>
|
|
304
249
|
</button>
|
|
305
250
|
{{/if}}
|
|
306
|
-
<button aria-controls="main-nav" class="qld__header__toggle-main-nav qld__main-nav__toggle--open"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
class="qld__icon qld__icon--lg">
|
|
311
|
-
<use href="{{icon-root}}#{{siteSearchAsset.options.icons.menu-icon}}"></use>
|
|
312
|
-
</svg>
|
|
251
|
+
<button aria-controls="main-nav" class="qld__header__toggle-main-nav qld__main-nav__toggle--open" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
252
|
+
<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" class="qld__icon qld__icon--lg">
|
|
253
|
+
<use href="{{icon-root}}#{{icons.menu-icon}}"></use>
|
|
254
|
+
</svg>
|
|
313
255
|
<span class="qld__main-nav__toggle-text">Menu</span>
|
|
314
256
|
</button>
|
|
315
257
|
</div>
|
|
@@ -938,15 +880,19 @@
|
|
|
938
880
|
{{/if}}
|
|
939
881
|
{{#if siteSearchAsset.value}}
|
|
940
882
|
<div id="qld-header-search" class="qld__header__site-search qld__header__site-search--closed">
|
|
941
|
-
|
|
942
|
-
|
|
883
|
+
<form id="site-search" role="search"
|
|
884
|
+
{{#if siteSearchAsset.formAction.url}}action="{{siteSearchAsset.formAction.url}}"{{/if}}
|
|
885
|
+
{{#if siteSearchAsset.formAction.suggestions}}data-suggestions="{{siteSearchAsset.formAction.suggestions}}"{{/if}}
|
|
886
|
+
{{#if siteSearchAsset.formAction.results}}data-results-url="{{siteSearchAsset.formAction.results}}"{{/if}} novalidate="true">
|
|
887
|
+
<input type="text" class="form-control{{#if siteSearchAsset.options.borderStyle.full}} border-full{{/if}}"
|
|
943
888
|
placeholder="{{#if siteSearchAsset.placeholder}}{{siteSearchAsset.placeholder}}{{else}}Search this site{{/if}}"
|
|
944
889
|
id="search-input">
|
|
945
|
-
|
|
946
|
-
|
|
890
|
+
<ul id="suggestions" class="suggestions-dropdown suggestions-dropdown__group"></ul>
|
|
891
|
+
<input type="submit" class="btn btn-primary" value="{{#if siteSearchAsset.label}}{{siteSearchAsset.label}}{{else}}Search{{/if}}">
|
|
947
892
|
</form>
|
|
948
893
|
</div>
|
|
949
894
|
{{/if}}
|
|
895
|
+
|
|
950
896
|
</div>
|
|
951
897
|
</div>
|
|
952
898
|
</header>
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// // Palettes and second hand variables:
|
|
1
|
+
// ----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Header - palettes and second hand variables:
|
|
4
3
|
@import './colours';
|
|
5
4
|
@import './icons';
|
|
6
|
-
//
|
|
5
|
+
// ----------------------------------------------------------------------------------------------------------------------
|
|
7
6
|
|
|
8
7
|
.qld__header {
|
|
9
8
|
color: var(--#{$prefix}header_color);
|
|
10
9
|
background: var(--#{$prefix}header_bg);
|
|
11
10
|
font-size: 1rem;
|
|
12
|
-
line-height: 1.5;
|
|
13
11
|
|
|
14
12
|
@include media-breakpoint-up(sm) {
|
|
15
13
|
font-size: 1.25rem;
|
|
16
|
-
line-height: 1.6;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
16
|
.container-fluid {
|
|
@@ -483,13 +480,14 @@
|
|
|
483
480
|
color: var(--site-search-input-color);
|
|
484
481
|
}
|
|
485
482
|
|
|
483
|
+
//Search dropdown
|
|
486
484
|
.suggestions-dropdown {
|
|
487
485
|
position: absolute;
|
|
488
486
|
display: none;
|
|
489
487
|
left: 0;
|
|
490
488
|
top: 100%;
|
|
491
489
|
width: 100%;
|
|
492
|
-
z-index: 99;
|
|
490
|
+
z-index: 99;
|
|
493
491
|
border-radius: .5rem;
|
|
494
492
|
background: var(--#{$prefix}header_site-search-suggestions-bg);
|
|
495
493
|
box-shadow: var(--#{$prefix}header__pre-header_boxshadow);
|
|
@@ -499,6 +497,28 @@
|
|
|
499
497
|
padding: 0 1rem;
|
|
500
498
|
}
|
|
501
499
|
|
|
500
|
+
hr {
|
|
501
|
+
margin: 0;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
// Featured search result styles
|
|
505
|
+
.feature {
|
|
506
|
+
background-color: var(--#{$prefix}header_site-search-suggestions-feature_bg);
|
|
507
|
+
strong {
|
|
508
|
+
color: var(--#{$prefix}header_site-search-suggestions-feature_text-color);
|
|
509
|
+
}
|
|
510
|
+
ul {
|
|
511
|
+
li {
|
|
512
|
+
&:hover {
|
|
513
|
+
background-color: var(--#{$prefix}header_site-search-suggestions-feature_hover);
|
|
514
|
+
}
|
|
515
|
+
a {
|
|
516
|
+
color: var(--#{$prefix}header_site-search-suggestions-feature_text-color);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
502
522
|
// Show when active
|
|
503
523
|
&.show {
|
|
504
524
|
display: block;
|
|
@@ -522,7 +542,7 @@
|
|
|
522
542
|
padding: 0;
|
|
523
543
|
|
|
524
544
|
li {
|
|
525
|
-
height: 3rem;
|
|
545
|
+
min-height: 3rem;
|
|
526
546
|
list-style: none;
|
|
527
547
|
cursor: pointer;
|
|
528
548
|
|
|
@@ -537,9 +557,12 @@
|
|
|
537
557
|
&:hover {
|
|
538
558
|
background-color: var(--#{$prefix}header_site-search-suggestions-hover);
|
|
539
559
|
margin: 0 -1rem;
|
|
560
|
+
padding: 0 1rem;
|
|
561
|
+
|
|
540
562
|
a {
|
|
541
|
-
|
|
563
|
+
text-decoration: underline;
|
|
542
564
|
}
|
|
565
|
+
|
|
543
566
|
}
|
|
544
567
|
}
|
|
545
568
|
}
|
|
@@ -42,17 +42,17 @@ export function initializeNavbar() {
|
|
|
42
42
|
const overlay = document.getElementById('overlay');
|
|
43
43
|
|
|
44
44
|
// Add event listeners to each dropdown item
|
|
45
|
-
if(dropdownItems) {
|
|
45
|
+
if (dropdownItems) {
|
|
46
46
|
dropdownItems.forEach(item => {
|
|
47
47
|
item.addEventListener('click', function(event) {
|
|
48
48
|
// Stop the event from propagating - Bootstrap default click closes
|
|
49
|
-
event.stopPropagation();
|
|
49
|
+
event.stopPropagation();
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// Overlay on mobile open
|
|
55
|
-
if(overlay) {
|
|
55
|
+
if (overlay) {
|
|
56
56
|
overlay.addEventListener('click', function () {
|
|
57
57
|
// Check if the navbar is open
|
|
58
58
|
if (navbarCollapse.classList.contains('show')) {
|
|
@@ -63,7 +63,7 @@ export function initializeNavbar() {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
if(navbarCollapse) {
|
|
66
|
+
if (navbarCollapse) {
|
|
67
67
|
// Overlay show/hide events
|
|
68
68
|
navbarCollapse.addEventListener('show.bs.collapse', function () {
|
|
69
69
|
overlay.classList.add('show'); // Show the overlay
|
|
@@ -74,7 +74,7 @@ export function initializeNavbar() {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
if(dropdownToggles) {
|
|
77
|
+
if (dropdownToggles) {
|
|
78
78
|
// Initialize Popper and toggle handling
|
|
79
79
|
dropdownToggles.forEach(toggle => {
|
|
80
80
|
toggle.addEventListener('click', (event) => {
|
|
@@ -104,7 +104,7 @@ export function initializeNavbar() {
|
|
|
104
104
|
} else {
|
|
105
105
|
siblingElement.classList.remove('show');
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
// Check if a Popper instance should be activated or not
|
|
109
109
|
const resizeHandler = () => {
|
|
110
110
|
if (window.innerWidth > 992) {
|
|
@@ -119,7 +119,6 @@ export function initializeNavbar() {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
} else {
|
|
122
|
-
const dropdownMenu = toggle.closest('.nav-item').querySelector('.dropdown-menu');
|
|
123
122
|
if (dropdownMenu.dataset.popperActive) {
|
|
124
123
|
activePoppers.forEach(popperInstance => popperInstance.destroy());
|
|
125
124
|
activePoppers = []; // Clear out the array after destroying instances
|
|
@@ -134,6 +133,26 @@ export function initializeNavbar() {
|
|
|
134
133
|
});
|
|
135
134
|
});
|
|
136
135
|
}
|
|
136
|
+
|
|
137
|
+
// Reset state on resize to mobile
|
|
138
|
+
const resetNavbarState = () => {
|
|
139
|
+
if (window.innerWidth <= 992) {
|
|
140
|
+
// Remove 'show' class from all dropdowns and sibling elements
|
|
141
|
+
document.querySelectorAll('.navbar .dropdown-menu').forEach(menu => {
|
|
142
|
+
menu.classList.remove('show');
|
|
143
|
+
});
|
|
144
|
+
document.querySelectorAll('.navbar .first-element').forEach(elem => {
|
|
145
|
+
elem.classList.remove('show');
|
|
146
|
+
});
|
|
147
|
+
// Destroy all active Popper instances
|
|
148
|
+
activePoppers.forEach(popperInstance => popperInstance.destroy());
|
|
149
|
+
activePoppers = [];
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Attach resize listener to reset navbar state on resize to mobile
|
|
154
|
+
window.addEventListener('resize', resetNavbarState);
|
|
155
|
+
resetNavbarState(); // Call handler immediately to apply correct setting on init
|
|
137
156
|
}
|
|
138
157
|
|
|
139
158
|
// Initialize the navbar (see main.js)
|
|
@@ -4,15 +4,19 @@
|
|
|
4
4
|
"tagItems": [
|
|
5
5
|
{
|
|
6
6
|
"id": "One",
|
|
7
|
-
"content": "
|
|
7
|
+
"content": "Tag text"
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
10
|
"id": "Two",
|
|
11
|
-
"content": "
|
|
11
|
+
"content": "Tag text"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"id": "Three",
|
|
15
|
-
"content": "
|
|
15
|
+
"content": "Tag text"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "Four",
|
|
19
|
+
"content": "Tag text"
|
|
16
20
|
}
|
|
17
21
|
]
|
|
18
22
|
},
|
|
@@ -21,17 +25,17 @@
|
|
|
21
25
|
"tagItems": [
|
|
22
26
|
{
|
|
23
27
|
"id": "One",
|
|
24
|
-
"content": "
|
|
28
|
+
"content": "Tag text",
|
|
25
29
|
"classes": "tag-large"
|
|
26
30
|
},
|
|
27
31
|
{
|
|
28
32
|
"id": "Two",
|
|
29
|
-
"content": "
|
|
33
|
+
"content": "Tag text",
|
|
30
34
|
"classes": "tag-large"
|
|
31
35
|
},
|
|
32
36
|
{
|
|
33
37
|
"id": "Three",
|
|
34
|
-
"content": "
|
|
38
|
+
"content": "Tag text",
|
|
35
39
|
"classes": "tag-large"
|
|
36
40
|
}
|
|
37
41
|
]
|
|
@@ -41,17 +45,17 @@
|
|
|
41
45
|
"tagItems": [
|
|
42
46
|
{
|
|
43
47
|
"id": "One",
|
|
44
|
-
"content": "<a href='javascript:void(0)'>
|
|
48
|
+
"content": "<a href='javascript:void(0)'>Tag text</a>",
|
|
45
49
|
"classes": "tag-link"
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
52
|
"id": "Two",
|
|
49
|
-
"content": "<a href='javascript:void(0)'>
|
|
53
|
+
"content": "<a href='javascript:void(0)'>Tag text</a>",
|
|
50
54
|
"classes": "tag-link"
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
57
|
"id": "Three",
|
|
54
|
-
"content": "<a href='javascript:void(0)'>
|
|
58
|
+
"content": "<a href='javascript:void(0)'>Tag text</a>",
|
|
55
59
|
"classes": "tag-link"
|
|
56
60
|
}
|
|
57
61
|
]
|
|
@@ -62,15 +66,15 @@
|
|
|
62
66
|
"tagItems": [
|
|
63
67
|
{
|
|
64
68
|
"id": "One",
|
|
65
|
-
"content": "
|
|
69
|
+
"content": "Tag text"
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
72
|
"id": "Two",
|
|
69
|
-
"content": "
|
|
73
|
+
"content": "Tag text"
|
|
70
74
|
},
|
|
71
75
|
{
|
|
72
76
|
"id": "Three",
|
|
73
|
-
"content": "
|
|
77
|
+
"content": "Tag text"
|
|
74
78
|
}
|
|
75
79
|
]
|
|
76
80
|
},
|
|
@@ -79,17 +83,17 @@
|
|
|
79
83
|
"tagItems": [
|
|
80
84
|
{
|
|
81
85
|
"id": "One",
|
|
82
|
-
"content": "
|
|
86
|
+
"content": "Tag text",
|
|
83
87
|
"classes": "tag-info"
|
|
84
88
|
},
|
|
85
89
|
{
|
|
86
90
|
"id": "Two",
|
|
87
|
-
"content": "
|
|
91
|
+
"content": "Tag text",
|
|
88
92
|
"classes": "tag-info"
|
|
89
93
|
},
|
|
90
94
|
{
|
|
91
95
|
"id": "Three",
|
|
92
|
-
"content": "
|
|
96
|
+
"content": "Tag text",
|
|
93
97
|
"classes": "tag-info"
|
|
94
98
|
}
|
|
95
99
|
]
|
|
@@ -6,76 +6,165 @@
|
|
|
6
6
|
flex-wrap: wrap;
|
|
7
7
|
margin: 0.5rem 0;
|
|
8
8
|
padding: 30px;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
.tag-item {
|
|
11
|
+
border-color: $qld-light-grey;
|
|
12
|
+
color: $qld-dark-grey-muted;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tag-item {
|
|
16
|
+
margin: 0 0.5rem 0.5rem 0;
|
|
17
|
+
list-style-type: none;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
border-radius: 16px;
|
|
20
|
+
padding: 0 0.5rem;
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
border-style: solid;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
line-height: 1.5rem;
|
|
25
|
+
text-align: center;
|
|
26
|
+
|
|
27
|
+
&:focus-within {
|
|
28
|
+
outline: 2px solid var(--qld-focus-color);
|
|
29
|
+
outline-offset: 2px;
|
|
30
|
+
border-radius: 16px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.tag-large {
|
|
34
|
+
margin: 0 1rem 1rem 0;
|
|
35
|
+
line-height: 1.5;
|
|
36
|
+
font-size: 1rem;
|
|
37
|
+
padding: 0.5rem 1rem;
|
|
38
|
+
border-radius: 32px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.tag-link {
|
|
42
|
+
color: $qld-sapphire-blue;
|
|
43
|
+
border-color: $qld-sapphire-blue;
|
|
44
|
+
|
|
45
|
+
a {
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
|
|
48
|
+
&:focus {
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover,
|
|
54
|
+
&:active,
|
|
55
|
+
&:focus {
|
|
56
|
+
background-color: $qld-textbox-border-color;
|
|
57
|
+
|
|
58
|
+
a {
|
|
59
|
+
color: white;
|
|
60
|
+
text-decoration: underline;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.tag-link:not(.tag-large) {
|
|
66
|
+
|
|
67
|
+
&:hover,
|
|
68
|
+
&:active,
|
|
69
|
+
&:focus {
|
|
70
|
+
text-underline-offset: 0.1rem;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.tag-info {
|
|
12
75
|
color: $qld-dark-grey-muted;
|
|
76
|
+
border: 0;
|
|
77
|
+
background-color: $qld-extra-light-grey;
|
|
13
78
|
}
|
|
14
79
|
}
|
|
80
|
+
|
|
15
81
|
&.tag-dark {
|
|
16
82
|
background-color: $qld-sapphire-blue;
|
|
83
|
+
|
|
17
84
|
.tag-item {
|
|
18
85
|
color: $qld-dark-text;
|
|
19
86
|
}
|
|
87
|
+
|
|
88
|
+
.tag-link {
|
|
89
|
+
color: $qld-white;
|
|
90
|
+
border-color: $qld-white;
|
|
91
|
+
|
|
92
|
+
a {
|
|
93
|
+
color: white;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:hover,
|
|
97
|
+
&:active,
|
|
98
|
+
&:focus {
|
|
99
|
+
background-color: $qld-light-green-dark;
|
|
100
|
+
border-color: $qld-light-green-dark;
|
|
101
|
+
|
|
102
|
+
a {
|
|
103
|
+
color: $qld-text-darkest;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.tag-info {
|
|
109
|
+
background-color: $qld-color-dark-background--shade;
|
|
110
|
+
}
|
|
20
111
|
}
|
|
112
|
+
|
|
21
113
|
&.tag-alt {
|
|
22
114
|
background-color: $qld-light-grey-alt;
|
|
115
|
+
|
|
23
116
|
.tag-item {
|
|
24
117
|
color: $qld-dark-grey-muted;
|
|
25
118
|
border-color: $qld-soft-grey;
|
|
26
119
|
}
|
|
120
|
+
|
|
121
|
+
.tag-link:hover,
|
|
122
|
+
.tag-link:active,
|
|
123
|
+
.tag-link:focus {
|
|
124
|
+
color: $qld-white !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.tag-link {
|
|
128
|
+
color: $qld-sapphire-blue;
|
|
129
|
+
border-color: $qld-sapphire-blue;
|
|
130
|
+
}
|
|
27
131
|
}
|
|
132
|
+
|
|
28
133
|
&.tag-dark-alt {
|
|
29
134
|
background-color: $qld-dark-blue;
|
|
135
|
+
|
|
30
136
|
.tag-item {
|
|
137
|
+
a {
|
|
138
|
+
color: $qld-dark-text;
|
|
139
|
+
}
|
|
140
|
+
|
|
31
141
|
color: $qld-dark-text;
|
|
32
142
|
border-color: $qld-dark-border;
|
|
33
143
|
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
144
|
|
|
37
|
-
.tag-
|
|
38
|
-
|
|
39
|
-
list-style-type: none;
|
|
40
|
-
display: inline-block;
|
|
41
|
-
border-radius: 16px;
|
|
42
|
-
padding: 0 0.5rem;
|
|
43
|
-
border-width: 1px;
|
|
44
|
-
border-style: solid;
|
|
45
|
-
font-size: 0.875rem;
|
|
46
|
-
line-height: 1.5rem;
|
|
47
|
-
text-align: center;
|
|
48
|
-
&.tag-large {
|
|
49
|
-
line-height: 1.5;
|
|
50
|
-
font-size: 1rem;
|
|
51
|
-
padding: 0.5rem 1rem;
|
|
52
|
-
border-radius: 32px;
|
|
53
|
-
}
|
|
54
|
-
&.tag-link {
|
|
55
|
-
color: $qld-sapphire-blue;
|
|
56
|
-
border-color: $qld-sapphire-blue;
|
|
57
|
-
a {
|
|
58
|
-
text-decoration: none;
|
|
145
|
+
.tag-info {
|
|
146
|
+
background-color: $qld-dark-blue-shade;
|
|
59
147
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
148
|
+
|
|
149
|
+
.tag-link {
|
|
150
|
+
|
|
151
|
+
&:hover,
|
|
152
|
+
&:active,
|
|
153
|
+
&:focus {
|
|
154
|
+
background-color: $qld-light-green-dark;
|
|
155
|
+
border-color: $qld-light-green-dark;
|
|
156
|
+
|
|
157
|
+
a {
|
|
158
|
+
color: $qld-text-darkest;
|
|
159
|
+
}
|
|
67
160
|
}
|
|
68
161
|
}
|
|
69
162
|
}
|
|
70
|
-
&.tag-info {
|
|
71
|
-
color: $qld-dark-grey-muted;
|
|
72
|
-
border-color: $qld-extra-light-grey;
|
|
73
|
-
background-color: $qld-extra-light-grey;
|
|
74
|
-
}
|
|
75
163
|
}
|
|
76
164
|
|
|
77
165
|
$close-icon: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M180.7 180.7C186.9 174.4 197.1 174.4 203.3 180.7L256 233.4L308.7 180.7C314.9 174.4 325.1 174.4 331.3 180.7C337.6 186.9 337.6 197.1 331.3 203.3L278.6 256L331.3 308.7C337.6 314.9 337.6 325.1 331.3 331.3C325.1 337.6 314.9 337.6 308.7 331.3L256 278.6L203.3 331.3C197.1 337.6 186.9 337.6 180.7 331.3C174.4 325.1 174.4 314.9 180.7 308.7L233.4 256L180.7 203.3C174.4 197.1 174.4 186.9 180.7 180.7zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 32C132.3 32 32 132.3 32 256C32 379.7 132.3 480 256 480C379.7 480 480 379.7 480 256C480 132.3 379.7 32 256 32z'/%3E%3C/svg%3E";
|
|
78
166
|
$close-icon-hover: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z'/%3E%3C/svg%3E";
|
|
167
|
+
|
|
79
168
|
.close-icon {
|
|
80
169
|
mask-image: url($close-icon);
|
|
81
170
|
background-color: $qld-dark-green;
|
|
@@ -85,6 +174,7 @@ $close-icon-hover: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'
|
|
|
85
174
|
border: none;
|
|
86
175
|
margin-left: 0.5rem;
|
|
87
176
|
cursor: pointer;
|
|
177
|
+
|
|
88
178
|
&:hover {
|
|
89
179
|
background-color: $qld-alt-button-hover;
|
|
90
180
|
mask-image: url($close-icon-hover);
|
|
@@ -28,9 +28,9 @@ export const Default = {
|
|
|
28
28
|
args: defaultdata.default,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
//
|
|
32
|
-
export const
|
|
33
|
-
args: defaultdata.
|
|
31
|
+
// Info Tag story
|
|
32
|
+
export const Information = {
|
|
33
|
+
args: defaultdata.info,
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// Action Tag story
|
|
@@ -38,17 +38,17 @@ export const Action = {
|
|
|
38
38
|
args: defaultdata.action,
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//
|
|
42
|
-
export const
|
|
43
|
-
args: defaultdata.
|
|
41
|
+
// Filter Tag story
|
|
42
|
+
export const Filter = {
|
|
43
|
+
args: defaultdata.filter,
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
//
|
|
47
|
-
export const
|
|
48
|
-
args: defaultdata.
|
|
46
|
+
// Large Tag story
|
|
47
|
+
export const Large = {
|
|
48
|
+
args: defaultdata.large,
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
//
|
|
52
|
-
export const
|
|
53
|
-
args: defaultdata.
|
|
51
|
+
// Dark Tag story
|
|
52
|
+
export const Dark = {
|
|
53
|
+
args: defaultdata.dark,
|
|
54
54
|
};
|