nsw-design-system 3.2.0 → 3.2.3
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/CHANGELOG.md +162 -97
- package/dist/css/main.css +1 -1
- package/dist/js/main.js +7 -3
- package/package.json +1 -1
- package/src/components/footer/_footer.scss +45 -0
- package/src/components/form/_form.scss +7 -14
- package/src/components/hero-banner/_hero-banner.scss +6 -2
- package/src/components/main-nav/main-nav.js +6 -3
package/package.json
CHANGED
|
@@ -104,6 +104,30 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
&__links {
|
|
108
|
+
@include breakpoint('md') {
|
|
109
|
+
display: flex;
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
margin-top: rem(-16px);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__social {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
align-items: center;
|
|
119
|
+
margin: 0 rem(-12px);
|
|
120
|
+
padding: rem(8px) 0 rem(12px) 0;
|
|
121
|
+
|
|
122
|
+
@include breakpoint('md') {
|
|
123
|
+
padding-bottom: rem(8px);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
a {
|
|
127
|
+
margin: 0 rem(4px);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
107
131
|
&__info {
|
|
108
132
|
@include breakpoint('md') {
|
|
109
133
|
display: flex;
|
|
@@ -124,4 +148,25 @@
|
|
|
124
148
|
text-align: right;
|
|
125
149
|
}
|
|
126
150
|
}
|
|
151
|
+
|
|
152
|
+
&--dark {
|
|
153
|
+
.nsw-footer__lower {
|
|
154
|
+
background-color: var(--nsw-brand-dark);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&--light {
|
|
159
|
+
hr {
|
|
160
|
+
background-color: var(--nsw-grey-02);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.nsw-footer__lower {
|
|
164
|
+
background-color: var(--nsw-brand-light);
|
|
165
|
+
color: var(--nsw-text-dark);
|
|
166
|
+
|
|
167
|
+
a {
|
|
168
|
+
@include link-dark;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
127
172
|
}
|
|
@@ -174,7 +174,7 @@ $nsw-form-tick: '<svg fill="#ffffff" version="1.1" xmlns="http://www.w3.org/2000
|
|
|
174
174
|
display: flex;
|
|
175
175
|
align-items: center;
|
|
176
176
|
justify-content: center;
|
|
177
|
-
padding: 0 rem(
|
|
177
|
+
padding: 0 rem(24px);
|
|
178
178
|
margin: 0;
|
|
179
179
|
border-top-left-radius: 0;
|
|
180
180
|
border-bottom-left-radius: 0;
|
|
@@ -188,20 +188,21 @@ $nsw-form-tick: '<svg fill="#ffffff" version="1.1" xmlns="http://www.w3.org/2000
|
|
|
188
188
|
|
|
189
189
|
.nsw-material-icons {
|
|
190
190
|
display: block;
|
|
191
|
-
|
|
192
|
-
font-size: rem(map-get($nsw-icon-sizes, 30));
|
|
191
|
+
font-size: rem(map-get($nsw-icon-sizes, 36));
|
|
193
192
|
position: static;
|
|
194
193
|
}
|
|
195
194
|
|
|
196
195
|
&--icon {
|
|
197
196
|
.nsw-button {
|
|
198
197
|
padding: 0;
|
|
199
|
-
min-width: rem(
|
|
198
|
+
min-width: rem(60px);
|
|
200
199
|
border-color: var(--nsw-grey-01);
|
|
201
200
|
border-left-width: 0;
|
|
201
|
+
}
|
|
202
202
|
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
.nsw-button--white {
|
|
204
|
+
.nsw-material-icons {
|
|
205
|
+
color: var(--nsw-brand-dark);
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
}
|
|
@@ -210,14 +211,6 @@ $nsw-form-tick: '<svg fill="#ffffff" version="1.1" xmlns="http://www.w3.org/2000
|
|
|
210
211
|
.nsw-form__input {
|
|
211
212
|
padding: rem(16px);
|
|
212
213
|
}
|
|
213
|
-
|
|
214
|
-
.nsw-button {
|
|
215
|
-
min-width: rem(58px);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.nsw-material-icons {
|
|
219
|
-
font-size: rem(map-get($nsw-icon-sizes, 36));
|
|
220
|
-
}
|
|
221
214
|
}
|
|
222
215
|
}
|
|
223
216
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
|
|
135
135
|
@include breakpoint('xl') {
|
|
136
136
|
width: 50%;
|
|
137
|
-
padding-left: calc(var(--nsw-container-width)/12
|
|
137
|
+
padding-left: calc(var(--nsw-container-width)/12 + #{rem($grid-gutters)}*2);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -174,6 +174,10 @@
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
&--off-white {
|
|
178
|
+
background-color: var(--nsw-off-white);
|
|
179
|
+
}
|
|
180
|
+
|
|
177
181
|
&--dark {
|
|
178
182
|
background-color: var(--nsw-brand-dark);
|
|
179
183
|
|
|
@@ -226,7 +230,7 @@
|
|
|
226
230
|
|
|
227
231
|
@include breakpoint('xl') {
|
|
228
232
|
width: 50%;
|
|
229
|
-
padding-left: calc(var(--nsw-container-width)/4
|
|
233
|
+
padding-left: calc(var(--nsw-container-width)/4 + #{rem($grid-gutters)}*2);
|
|
230
234
|
}
|
|
231
235
|
}
|
|
232
236
|
}
|
|
@@ -139,9 +139,12 @@ class Navigation {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
buttonClickDesktop(e) {
|
|
142
|
-
this.
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
const isDesktop = this.breakpoint.matches
|
|
143
|
+
if (!isDesktop || !e.target.closest('.nsw-main-nav__sub-nav')) {
|
|
144
|
+
this.saveElements(e)
|
|
145
|
+
this.toggleSubNavDesktop()
|
|
146
|
+
e.preventDefault()
|
|
147
|
+
}
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
buttonKeydownDesktop(e) {
|