@qld-gov-au/qgds-bootstrap5 1.0.13 → 1.0.15
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/footer/footer.hbs +98 -112
- package/dist/components/bs5/footer/footerForgov.hbs +86 -59
- 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/index.html +2 -1
- package/dist/sample-data/button/button.data.json +2 -1
- package/dist/sample-data/footer/footer.data.json +93 -45
- 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/footer/_colours.scss +74 -0
- package/src/components/bs5/footer/_measurements.scss +30 -0
- package/src/components/bs5/footer/footer.data.json +93 -45
- package/src/components/bs5/footer/footer.functions.js +36 -0
- package/src/components/bs5/footer/footer.hbs +98 -112
- package/src/components/bs5/footer/footer.scss +445 -199
- package/src/components/bs5/footer/footer.stories.js +17 -6
- package/src/components/bs5/footer/footerForgov.hbs +86 -59
- 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 +63 -39
- package/src/main.scss +6 -3
- package/src/scss/qld-print.scss +365 -0
- package/src/scss/qld-type.scss +94 -85
- package/src/scss/qld-variables.scss +87 -101
- package/src/templates/compiled/index.html +2 -1
- package/src/templates/index.html +31 -46
- 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
|
@@ -1,178 +1,258 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------------------------------------------------
|
|
2
|
+
// Header - palettes and second hand variables:
|
|
3
|
+
@import "./colours";
|
|
4
|
+
|
|
1
5
|
/*
|
|
2
6
|
* Mobile layout
|
|
3
7
|
*/
|
|
4
8
|
.qld-quick-exit {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
bottom: 0;
|
|
10
|
-
padding: 1rem;
|
|
11
|
-
position: fixed;
|
|
12
|
-
width: 100%;
|
|
13
|
-
z-index: 200;
|
|
14
|
-
|
|
15
|
-
&-inner {
|
|
16
|
-
display: -ms-flexbox;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
height: 100%;
|
|
20
|
-
|
|
21
|
-
.qg-quick-exit__tips {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.qld-quick-exit-input:checked+.qld-tooltip-parent .qld-tooltip-wrapper {
|
|
26
|
-
display: block
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.qld-quick-exit-input:checked+.qld-quick-exit-label {
|
|
30
|
-
color: white;
|
|
31
|
-
font-weight: 500
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.qld-tooltip {
|
|
35
|
-
width: 190px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.qld-tooltip-parent {
|
|
39
|
-
position: relative
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.qld-tooltip-wrapper {
|
|
43
|
-
background-color: $qld-white;
|
|
44
|
-
bottom: 50px;
|
|
45
|
-
box-shadow: 0 0 8px 0 #8a8f91;
|
|
46
|
-
color: #000;
|
|
47
|
-
display: none;
|
|
48
|
-
font-weight: 500;
|
|
49
|
-
padding: 25px;
|
|
50
|
-
position: absolute
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.qld-tooltip-wrapper:after {
|
|
54
|
-
border-bottom: 14px solid $qld-white;
|
|
55
|
-
border-left: 14px solid $qld-white;
|
|
56
|
-
border-right: 14px solid transparent;
|
|
57
|
-
border-top: 14px solid transparent;
|
|
58
|
-
bottom: -14px;
|
|
59
|
-
content: " ";
|
|
60
|
-
position: absolute;
|
|
61
|
-
left: 25px;
|
|
62
|
-
transform: rotate(-45deg)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.qld-quick-exit-item.qld-tooltip-container {
|
|
66
|
-
text-decoration: underline;
|
|
9
|
+
--#{$prefix}quick-exit-spacing: 1rem;
|
|
10
|
+
--#{$prefix}quick-exit-gaps: 25px;
|
|
11
|
+
--#{$prefix}quick-exit-text-outline: 2px;
|
|
12
|
+
--#{$prefix}quick-exit-text-outline-offset: 2px;
|
|
67
13
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
&:focus-within {
|
|
71
|
-
outline-offset: 2px;
|
|
72
|
-
box-shadow: none;
|
|
73
|
-
outline: 2px solid var(--qld-focus-color);
|
|
74
|
-
border-radius: 0px;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
14
|
+
// --#{$prefix}quick-tooltip-text-outline-thickness: 0.5px;
|
|
15
|
+
// --#{$prefix}quick-tooltip-text-outline-offset: 5px;
|
|
77
16
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
text-underline-offset: 5px;
|
|
84
|
-
text-decoration-thickness: 0.5px;
|
|
17
|
+
--#{$prefix}tooltip-width: 190px;
|
|
18
|
+
--#{$prefix}tooltip-arrow: 8px;
|
|
19
|
+
--#{$prefix}tooltip-desktop-top-offset: 40px;
|
|
20
|
+
--#{$prefix}icon-info-spacing: 40px;
|
|
21
|
+
--#{$prefix}quick-exit-actions-right-padding: 9px;
|
|
85
22
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
23
|
+
background: var(--#{$prefix}quick-exit-bg);
|
|
24
|
+
color: var(--#{$prefix}quick-exit-text-colour);
|
|
25
|
+
inset-inline-start: 0;
|
|
26
|
+
inset-block-end: 0;
|
|
27
|
+
padding-block: 16px;
|
|
28
|
+
padding-inline: 24px;
|
|
29
|
+
position: fixed;
|
|
30
|
+
width: 100%;
|
|
31
|
+
z-index: 200;
|
|
90
32
|
|
|
33
|
+
&-inner {
|
|
34
|
+
display: -ms-flexbox;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
height: 100%;
|
|
91
38
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
39
|
+
.qld-quick-exit-input:checked + .qld-tooltip-parent .qld-tooltip-wrapper {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
.qld-quick-exit-input:checked + .qld-quick-exit-label {
|
|
43
|
+
color: var(--#{$prefix}quick-exit-text-colour);
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
}
|
|
46
|
+
.qld-tooltip {
|
|
47
|
+
width: var(--#{$prefix}tooltip-width);
|
|
48
|
+
}
|
|
49
|
+
.qld-tooltip-parent {
|
|
50
|
+
position: relative;
|
|
51
|
+
}
|
|
52
|
+
.qld-tooltip-wrapper {
|
|
53
|
+
background-color: var(--#{$prefix}quick-exit-tooltip-bg);
|
|
54
|
+
inset-block-end: calc(var(--#{$prefix}tooltip-desktop-top-offset) + 9px);
|
|
55
|
+
box-shadow: 0 0 8px 0 var(--#{$prefix}quick-exit-tooltip-box-shadow);
|
|
56
|
+
color: var(--#{$prefix}quick-exit-tooltip-text);
|
|
57
|
+
display: none;
|
|
58
|
+
font-weight: 500;
|
|
59
|
+
padding: var(--#{$prefix}quick-exit-gaps);
|
|
60
|
+
position: absolute;
|
|
61
|
+
}
|
|
62
|
+
.qld-tooltip-wrapper:after {
|
|
63
|
+
border-block-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
|
|
64
|
+
border-inline-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
|
|
65
|
+
border-inline-end: var(--#{$prefix}tooltip-arrow) solid transparent;
|
|
66
|
+
border-block-start: var(--#{$prefix}tooltip-arrow) solid transparent;
|
|
67
|
+
inset-block-end: calc(var(--#{$prefix}tooltip-arrow) * -1);
|
|
68
|
+
content: " ";
|
|
69
|
+
position: absolute;
|
|
70
|
+
inset-inline-start: var(--#{$prefix}quick-exit-gaps);
|
|
71
|
+
transform: rotate(-45deg);
|
|
72
|
+
}
|
|
73
|
+
.qld-quick-exit-item.qld-tooltip-container {
|
|
74
|
+
text-decoration: underline;
|
|
75
|
+
margin-inline-end: var(--#{$prefix}quick-exit-gaps);
|
|
76
|
+
&:focus,
|
|
77
|
+
&:active,
|
|
78
|
+
&:focus-within {
|
|
79
|
+
outline-offset: var(--#{$prefix}quick-exit-text-outline-offset);
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
outline: var(--#{$prefix}quick-exit-text-outline) solid var(--#{$prefix}quick-exit-tooltip-btn-focus);
|
|
82
|
+
border-radius: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.qld-quick-exit-label,
|
|
86
|
+
.qld-tooltip-prompt {
|
|
87
|
+
font-weight: 500;
|
|
88
|
+
text-decoration-line: underline;
|
|
89
|
+
text-decoration-style: solid;
|
|
90
|
+
text-underline-offset: calc(var(--#{$prefix}quick-exit-text-outline-offset) * 2);
|
|
91
|
+
&:hover {
|
|
92
|
+
text-decoration-thickness: var(--qld-link-underline-thickness-hover); //
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.qld-tooltip-prompt {
|
|
96
|
+
text-wrap: nowrap;
|
|
97
|
+
}
|
|
98
|
+
.qld-quick-exit-list {
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
list-style: none;
|
|
102
|
+
-ms-flex-align: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
display: -ms-flexbox;
|
|
105
|
+
display: flex;
|
|
106
|
+
height: 100%;
|
|
107
|
+
-ms-flex-pack: distribute;
|
|
108
|
+
justify-content: space-around;
|
|
109
|
+
}
|
|
110
|
+
.qld-quick-exit-actions {
|
|
111
|
+
-ms-flex-positive: 1;
|
|
112
|
+
flex-grow: 0;
|
|
113
|
+
}
|
|
114
|
+
.qld-quick-exit-tip-title {
|
|
115
|
+
margin-block-end: 0;
|
|
116
|
+
}
|
|
117
|
+
.qld-quick-exit-button {
|
|
118
|
+
border-color: var(--#{$prefix}quick-exit-button-bg-colour);
|
|
119
|
+
background-color: var(--#{$prefix}quick-exit-button-bg-colour);
|
|
120
|
+
color: var(--#{$prefix}quick-exit-button-text-colour);
|
|
121
|
+
&:hover {
|
|
122
|
+
border-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
|
|
123
|
+
background-color: var(--#{$prefix}quick-exit-button-bg-colour-hover);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.qld-quick-exit-tip-link {
|
|
127
|
+
color: var(--#{$prefix}quick-exit-link-text-colour);
|
|
109
128
|
}
|
|
129
|
+
.qg-quick-exit__tips {
|
|
130
|
+
flex-grow: 1;
|
|
131
|
+
}
|
|
132
|
+
&.has-icon-info .qg-quick-exit__tips {
|
|
133
|
+
display: block;
|
|
134
|
+
padding-inline-start: var(--#{$prefix}icon-info-spacing);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
110
137
|
}
|
|
111
138
|
|
|
112
|
-
|
|
113
139
|
/*
|
|
114
140
|
* Desktop layout
|
|
115
141
|
*/
|
|
116
142
|
@media screen and (min-width: 992px) {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
justify-content: space-between;
|
|
129
|
-
|
|
130
|
-
.qg-quick-exit__tips {
|
|
131
|
-
display: block;
|
|
132
|
-
padding-left: 40px
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.qld-quick-exit-tip-link {
|
|
136
|
-
-ms-flex-align: center;
|
|
137
|
-
align-items: center;
|
|
138
|
-
color: $qld-white;
|
|
139
|
-
display: -ms-flexbox;
|
|
140
|
-
display: flex;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.qld-quick-exit-actions {
|
|
144
|
-
padding-right: 9px;
|
|
145
|
-
-ms-flex-positive: 0;
|
|
146
|
-
flex-grow: 0
|
|
147
|
-
}
|
|
143
|
+
.qld-quick-exit {
|
|
144
|
+
-webkit-box-pack: justify;
|
|
145
|
+
-ms-flex-pack: justify;
|
|
146
|
+
justify-content: space-between;
|
|
147
|
+
position: relative;
|
|
148
|
+
position: -webkit-sticky;
|
|
149
|
+
position: sticky;
|
|
150
|
+
inset-block-start: 0;
|
|
151
|
+
z-index: 999;
|
|
152
|
+
padding-block: 20px; //
|
|
153
|
+
padding-inline: 40px; //
|
|
148
154
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.qld-tooltip-wrapper {
|
|
154
|
-
bottom: auto;
|
|
155
|
-
top: 40px;
|
|
156
|
-
padding: 1rem;
|
|
157
|
-
}
|
|
155
|
+
&-inner {
|
|
156
|
+
justify-content: space-between;
|
|
158
157
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
158
|
+
.qld-quick-exit-tip-link {
|
|
159
|
+
-ms-flex-align: center;
|
|
160
|
+
align-items: center;
|
|
161
|
+
color: $qld-white; //
|
|
162
|
+
display: -ms-flexbox;
|
|
163
|
+
display: flex;
|
|
164
|
+
}
|
|
165
|
+
.qld-quick-exit-actions {
|
|
166
|
+
padding-inline-end: var(--#{$prefix}quick-exit-actions-right-padding);
|
|
167
|
+
-ms-flex-positive: 0;
|
|
168
|
+
flex-grow: 0;
|
|
169
|
+
}
|
|
170
|
+
.qld-tooltip-wrapper {
|
|
171
|
+
inset-block-end: auto;
|
|
172
|
+
inset-block-start: var(--#{$prefix}tooltip-desktop-top-offset);
|
|
173
|
+
padding: var(--#{$prefix}quick-exit-spacing);
|
|
174
|
+
}
|
|
175
|
+
.qld-tooltip-wrapper:after {
|
|
176
|
+
border-block-end: var(--#{$prefix}tooltip-arrow) solid transparent;
|
|
177
|
+
border-inline-start: var(--#{$prefix}tooltip-arrow) solid transparent;
|
|
178
|
+
border-inline-end: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
|
|
179
|
+
border-block-start: var(--#{$prefix}tooltip-arrow) solid var(--#{$prefix}quick-exit-tooltip-bg);
|
|
180
|
+
inset-block-end: auto;
|
|
181
|
+
inset-inline-start: 25px; //
|
|
182
|
+
inset-block-start: calc(var(--#{$prefix}tooltip-arrow) * -1);
|
|
183
|
+
}
|
|
184
|
+
.not-mobile,
|
|
185
|
+
.qld-quick-exit-tip-link {
|
|
186
|
+
display: inline;
|
|
187
|
+
}
|
|
170
188
|
}
|
|
189
|
+
}
|
|
171
190
|
}
|
|
172
|
-
|
|
173
191
|
.icon-info {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
192
|
+
position: absolute;
|
|
193
|
+
inset-inline-start: calc(var(--#{$prefix}quick-exit-spacing) * 2.5);
|
|
194
|
+
background-repeat: no-repeat;
|
|
195
|
+
margin-block-start: 4px; //
|
|
196
|
+
background-image: url("data:image/svg+xml,<svg width='18' height='19' viewBox='0 0 18 19' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 0.25C4.00781 0.25 0 4.29297 0 9.25C0 14.2422 4.00781 18.25 9 18.25C13.957 18.25 18 14.2422 18 9.25C18 4.29297 13.957 0.25 9 0.25ZM9 17.125C4.64062 17.125 1.125 13.6094 1.125 9.25C1.125 4.92578 4.64062 1.375 9 1.375C13.3242 1.375 16.875 4.92578 16.875 9.25C16.875 13.6094 13.3242 17.125 9 17.125ZM9 6.71875C9.45703 6.71875 9.84375 6.36719 9.84375 5.875C9.84375 5.41797 9.45703 5.03125 9 5.03125C8.50781 5.03125 8.15625 5.41797 8.15625 5.875C8.15625 6.36719 8.50781 6.71875 9 6.71875ZM10.6875 12.625H9.5625V8.6875C9.5625 8.40625 9.28125 8.125 9 8.125H7.875C7.55859 8.125 7.3125 8.40625 7.3125 8.6875C7.3125 9.00391 7.55859 9.25 7.875 9.25H8.4375V12.625H7.3125C6.99609 12.625 6.75 12.9062 6.75 13.1875C6.75 13.5039 6.99609 13.75 7.3125 13.75H10.6875C10.9688 13.75 11.25 13.5039 11.25 13.1875C11.25 12.9062 10.9688 12.625 10.6875 12.625Z' fill='white'/></svg>");
|
|
197
|
+
}
|
|
198
|
+
.qld-quick-exit-inner {
|
|
199
|
+
padding: 0;
|
|
200
|
+
}
|
|
201
|
+
.qld-quick-exit-inner.has-tooltip {
|
|
202
|
+
.qg-quick-exit__tips {
|
|
203
|
+
padding-inline-start: 0;
|
|
204
|
+
}
|
|
205
|
+
@media screen and (max-width: 925px) {
|
|
206
|
+
.not-mobile {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
@media screen and (max-width: 520px) {
|
|
211
|
+
.very-small-mobile {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
.qld-quick-exit-inner.has-icon-info {
|
|
217
|
+
.qg-quick-exit__tips {
|
|
218
|
+
padding-inline-start: var(--#{$prefix}icon-info-spacing);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
.qld-quick-exit-inner.has-icon-info.has-tooltip {
|
|
222
|
+
@media screen and (max-width: 1020px) {
|
|
223
|
+
.icon-info {
|
|
224
|
+
display: none;
|
|
225
|
+
}
|
|
226
|
+
.qg-quick-exit__tips {
|
|
227
|
+
padding-inline-start: 0;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
@media screen and (max-width: 925px) {
|
|
231
|
+
.not-mobile {
|
|
232
|
+
display: none;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
@media screen and (max-width: 520px) {
|
|
236
|
+
.very-small-mobile {
|
|
237
|
+
display: none;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media screen and (max-width: 850px) {
|
|
243
|
+
.not-mobile,
|
|
244
|
+
.qld-quick-exit-tip-link {
|
|
245
|
+
display: none;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
////////////////////////////////////////////////////////////////////////////////////
|
|
250
|
+
/// This is only for Responsive Design and keeping important info available to view
|
|
251
|
+
@media screen and (max-width: 365px) {
|
|
252
|
+
.qld-quick-exit-button {
|
|
253
|
+
padding-inline: 10px; //
|
|
254
|
+
}
|
|
255
|
+
.very-small-mobile {
|
|
256
|
+
display: none;
|
|
257
|
+
}
|
|
178
258
|
}
|
|
@@ -6,18 +6,16 @@ export default {
|
|
|
6
6
|
tags: ["autodocs"],
|
|
7
7
|
title: "Components/Quickexit",
|
|
8
8
|
render: (args) => {
|
|
9
|
-
|
|
10
|
-
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
9
|
+
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
11
10
|
//We can't use commas on our class="..." attribute, so we need to replace the commas with spaces.
|
|
12
11
|
|
|
13
|
-
if(
|
|
14
|
-
args.customClass = args.customClass.replaceAll(","," ");
|
|
15
|
-
} else if (
|
|
12
|
+
if (typeof args.customClass === "string") {
|
|
13
|
+
args.customClass = args.customClass.replaceAll(",", " ");
|
|
14
|
+
} else if (typeof args.customClass === "object") {
|
|
16
15
|
args.customClass = args.customClass.join(" ");
|
|
17
16
|
}
|
|
18
|
-
|
|
17
|
+
|
|
19
18
|
return new Quickexit(args).html;
|
|
20
|
-
|
|
21
19
|
},
|
|
22
20
|
};
|
|
23
21
|
|
|
@@ -32,15 +30,39 @@ export const Default = {
|
|
|
32
30
|
* Dark themed Loading Quickexit
|
|
33
31
|
*/
|
|
34
32
|
export const Dark = {
|
|
35
|
-
args: {
|
|
36
|
-
|
|
33
|
+
args: {
|
|
34
|
+
...defaultdata,
|
|
35
|
+
},
|
|
36
|
+
parameters: {
|
|
37
|
+
backgrounds: {
|
|
38
|
+
default: "Dark",
|
|
39
|
+
values: [{ name: "Dark", value: "var(--qld-brand-primary)" }],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
decorators: [
|
|
43
|
+
(Story) => {
|
|
44
|
+
return `
|
|
45
|
+
<div class="dark">
|
|
46
|
+
${Story()}
|
|
47
|
+
</div>
|
|
48
|
+
`;
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Forgov Quickexit
|
|
55
|
+
*/
|
|
56
|
+
export const Forgov = {
|
|
57
|
+
args: {
|
|
58
|
+
...defaultdata,
|
|
59
|
+
hasIconInfo: false,
|
|
60
|
+
hasTooltip: false,
|
|
37
61
|
},
|
|
38
62
|
parameters: {
|
|
39
63
|
backgrounds: {
|
|
40
|
-
default:
|
|
41
|
-
values: [
|
|
42
|
-
{ name: 'Dark', value: 'var(--qld-brand-primary)' },
|
|
43
|
-
],
|
|
64
|
+
default: "Dark",
|
|
65
|
+
values: [{ name: "Dark", value: "var(--qld-brand-primary)" }],
|
|
44
66
|
},
|
|
45
67
|
},
|
|
46
68
|
decorators: [
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.qld-search-input {
|
|
2
|
+
// ------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
// 1. Common vars
|
|
4
|
+
// ------------------------------------------------------------------------------------------------------------------
|
|
5
|
+
// Search inputs
|
|
6
|
+
--#{$prefix}site-search-bg: var(--#{$prefix}color-default-color-light-background-default-shade);
|
|
7
|
+
--#{$prefix}site-search-btn-color: var(--#{$prefix}color-default-color-dark-text-default);
|
|
8
|
+
--#{$prefix}site-search-btn-bg: var(--#{$prefix}color-default-color-light-link-default);
|
|
9
|
+
--#{$prefix}site-search-border-color: var(--#{$prefix}color-default-color-light-action-primary-hover);
|
|
10
|
+
--#{$prefix}site-search-icon-color:var(--#{$prefix}color-default-color-light-text-lighter);
|
|
11
|
+
--#{$prefix}site-search-text-color:var(--#{$prefix}color-default-color-light-text-default);
|
|
12
|
+
--#{$prefix}site-search_boxshadow: 0 1px 2px rgba(0, 0, 0, .2), 0 1px 3px 1px rgba(0, 0, 0, .1);
|
|
13
|
+
|
|
14
|
+
// Search input dark
|
|
15
|
+
--#{$prefix}dark-site-search-bg: var(--#{$prefix}color-default-color-dark-background-default-shade);
|
|
16
|
+
--#{$prefix}dark-site-search-btn-color: var(--#{$prefix}color-default-color-light-text-default);
|
|
17
|
+
--#{$prefix}dark-site-search-btn-bg: var(--#{$prefix}color-default-color-light-accent-design-accent);
|
|
18
|
+
--#{$prefix}dark-site-search-border-color: var(--#{$prefix}color-default-color-dark-border-default);
|
|
19
|
+
--#{$prefix}dark-site-search-icon-color:var(--#{$prefix}color-default-color-dark-text-lighter);
|
|
20
|
+
--#{$prefix}dark-site-search-text-color:var(--#{$prefix}color-default-color-dark-text-default);
|
|
21
|
+
|
|
22
|
+
// Dropdown
|
|
23
|
+
--#{$prefix}site-search-suggestions-bg: var(--#{$prefix}color-default-color-light-background-default-shade);
|
|
24
|
+
--#{$prefix}site-search-suggestions-hover: var(--#{$prefix}color-default-color-light-border-default);
|
|
25
|
+
--#{$prefix}site-search-suggestions-hover__border_color: var(--#{$prefix}color-default-color-light-accent-design-accent);
|
|
26
|
+
--#{$prefix}site-search-suggestions-feature_bg: var(--#{$prefix}color-default-color-dark-background-default);
|
|
27
|
+
--#{$prefix}site-search-suggestions-feature_hover: var(--#{$prefix}color-default-color-dark-background-default-shade);
|
|
28
|
+
--#{$prefix}site-search-suggestions-feature_text-color: var(--#{$prefix}color-default-color-dark-text-default);
|
|
29
|
+
|
|
30
|
+
// Search bootstrap variables
|
|
31
|
+
--site-search-bg: var(--#{$prefix}site-search-bg);
|
|
32
|
+
--site-search-btn-color: var(--#{$prefix}site-search-btn-color);
|
|
33
|
+
--site-search-btn-bg: var(--#{$prefix}site-search-btn-bg);
|
|
34
|
+
--site-search-border-color: var(--#{$prefix}site-search-border-color);
|
|
35
|
+
--site-search-icon-color: var(--#{$prefix}site-search-icon-color);
|
|
36
|
+
--site-search-input-color: var(--#{$prefix}site-search-text-color);
|
|
37
|
+
--site-search-text-color: var(--#{$prefix}site-search-text-color);
|
|
38
|
+
--site-search-input-focus-color: var(--#{$prefix}color-default-color-light-focus-default);
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// ------------------------------------------------------------------------------------------------------------------
|
|
42
|
+
// 2. Colour modes
|
|
43
|
+
// ------------------------------------------------------------------------------------------------------------------
|
|
44
|
+
.dark &,
|
|
45
|
+
.dark-alt & {
|
|
46
|
+
// Search (dark/dark/alt)
|
|
47
|
+
--site-search-bg: var(--#{$prefix}dark-site-search-bg);
|
|
48
|
+
--site-search-btn-color: var(--#{$prefix}dark-site-search-btn-color);
|
|
49
|
+
--site-search-btn-bg: var(--#{$prefix}dark-site-search-btn-bg);
|
|
50
|
+
--site-search-border-color: var(--#{$prefix}dark-site-search-border-color);
|
|
51
|
+
--site-search-icon-color: var(--#{$prefix}dark-site-search-icon-color);
|
|
52
|
+
--site-search-input-color: var(--#{$prefix}dark-site-search-text-color);
|
|
53
|
+
--site-search-text-color: var(--#{$prefix}dark-site-search-text-color);
|
|
54
|
+
|
|
55
|
+
// Suggestions colours
|
|
56
|
+
--#{$prefix}site-search-suggestions-bg: var(--#{$prefix}color-default-color-dark-background-default-shade);
|
|
57
|
+
--#{$prefix}site-search-suggestions-hover: var(--#{$prefix}color-default-color-dark-background-default);
|
|
58
|
+
--#{$prefix}site-search-suggestions-hover__border_color: var(--#{$prefix}color-default-color-dark-accent-design-accent);
|
|
59
|
+
--#{$prefix}site-search-suggestions-feature_bg: var(--#{$prefix}color-default-color-dark-background-alt);
|
|
60
|
+
--#{$prefix}site-search-suggestions-feature_hover: var(--#{$prefix}color-default-color-dark-background-alt-shade);
|
|
61
|
+
--#{$prefix}site-search-suggestions-feature_text-color: var(--#{$prefix}color-default-color-dark-text-default);
|
|
62
|
+
}
|
|
63
|
+
}
|