nsw-design-system 2.14.2 → 3.0.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 +586 -350
- package/README.md +28 -34
- package/dist/css/core.css +2 -0
- package/dist/css/main.css +1 -1
- package/dist/js/main.js +65 -112
- package/package.json +4 -2
- package/src/components/_all.scss +9 -14
- package/src/components/accordion/_accordion.scss +23 -28
- package/src/components/accordion/accordion.js +4 -4
- package/src/components/breadcrumbs/_breadcrumbs.scss +35 -40
- package/src/components/button/_button.scss +167 -26
- package/src/components/callout/_callout.scss +2 -79
- package/src/components/card/_card.scss +139 -168
- package/src/components/content-block/_content-block.scss +8 -39
- package/src/components/filters/_filters.scss +11 -77
- package/src/components/filters/filters.js +0 -5
- package/src/components/footer/_footer.scss +77 -132
- package/src/components/{forms/_forms.scss → form/_form.scss} +71 -50
- package/src/components/global-alert/_global-alert.scss +68 -0
- package/src/components/{site-wide-message/site-wide-message.js → global-alert/global-alert.js} +3 -3
- package/src/components/header/_header.scss +140 -253
- package/src/components/hero-banner/_hero-banner.scss +150 -84
- package/src/components/hero-search/_hero-search.scss +23 -44
- package/src/components/in-page-alert/_in-page-alert.scss +66 -0
- package/src/components/in-page-nav/_in-page-nav.scss +22 -0
- package/src/components/link-list/_link-list.scss +26 -41
- package/src/components/list-item/_list-item.scss +28 -44
- package/src/components/main-nav/_main-nav.scss +272 -0
- package/src/components/{main-navigation/main-navigation.js → main-nav/main-nav.js} +40 -39
- package/src/components/masthead/_masthead.scss +9 -18
- package/src/components/media/_media.scss +0 -1
- package/src/components/pagination/_pagination.scss +35 -46
- package/src/components/progress-indicator/_progress-indicator.scss +11 -12
- package/src/components/results-bar/_results-bar.scss +0 -1
- package/src/components/side-nav/_side-nav.scss +73 -0
- package/src/components/table/_table.scss +56 -0
- package/src/components/tables/_tables.scss +0 -86
- package/src/components/tabs/_tabs.scss +79 -0
- package/src/components/{tab-navigation/tab-navigation.js → tabs/tabs.js} +6 -8
- package/src/components/tag/_tag.scss +60 -0
- package/src/{styles → core}/_all.scss +3 -0
- package/src/core/grid/_grid.scss +117 -0
- package/src/core/iconography/_icon.scss +83 -0
- package/src/core/layout/_layout.scss +42 -0
- package/src/{styles → core}/section/_section.scss +0 -40
- package/src/{styles → core}/spacing/_spacing.scss +0 -8
- package/src/core/typography/_typography.scss +324 -0
- package/src/global/scss/base/_all.scss +4 -0
- package/src/global/scss/base/_functions.scss +44 -0
- package/src/global/scss/{style/_base.scss → base/_global.scss} +0 -0
- package/src/global/scss/base/_mixins.scss +241 -0
- package/src/global/scss/{tools → base}/_print.scss +1 -1
- package/src/global/scss/helpers/_all.scss +3 -1
- package/src/global/scss/helpers/_colour.scss +2 -1
- package/src/global/scss/helpers/_list.scss +21 -0
- package/src/global/scss/helpers/_text.scss +9 -0
- package/src/global/scss/helpers/_visibility.scss +31 -0
- package/src/global/scss/settings/_palette.scss +2 -1
- package/src/global/scss/settings/_settings.scss +9 -317
- package/src/global/scss/settings/_theme.scss +5 -1
- package/src/main.js +8 -11
- package/src/main.scss +13 -21
- package/dist/assets/svg/sprite.svg +0 -1
- package/src/components/banner/_banner.scss +0 -205
- package/src/components/direction-links/_direction-links.scss +0 -63
- package/src/components/feature-tile/_feature-tile.scss +0 -170
- package/src/components/forms/_forms-prev.scss +0 -356
- package/src/components/in-page-navigation/_in-page-navigation.scss +0 -27
- package/src/components/main-navigation/_main-navigation.scss +0 -406
- package/src/components/notification/_notification.scss +0 -92
- package/src/components/side-navigation/_side-navigation.scss +0 -86
- package/src/components/site-wide-message/_site-wide-message.scss +0 -163
- package/src/components/social-bar/_social-bar.scss +0 -28
- package/src/components/social-bar/social-bar.js +0 -24
- package/src/components/tab-navigation/_tab-navigation.scss +0 -69
- package/src/components/tags/_tags.scss +0 -69
- package/src/global/scss/helpers/_sr-only.scss +0 -7
- package/src/global/scss/style/_all.scss +0 -3
- package/src/global/scss/style/_grid.scss +0 -171
- package/src/global/scss/style/_icons.scss +0 -44
- package/src/global/scss/tools/_all.scss +0 -10
- package/src/global/scss/tools/_breakpoint.scss +0 -16
- package/src/global/scss/tools/_buttons.scss +0 -36
- package/src/global/scss/tools/_focus.scss +0 -25
- package/src/global/scss/tools/_general.scss +0 -163
- package/src/global/scss/tools/_grid.scss +0 -129
- package/src/global/scss/tools/_links.scss +0 -33
- package/src/global/scss/tools/_spacing.scss +0 -37
- package/src/global/scss/tools/_sr-only.scss +0 -21
- package/src/global/scss/tools/_typography.scss +0 -71
- package/src/styles/layout/_layout.scss +0 -0
- package/src/styles/typography/_typography.scss +0 -325
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
.nsw-card {
|
|
2
|
-
font-family: var(--nsw-font-family);
|
|
3
2
|
position: relative;
|
|
4
3
|
display: flex;
|
|
5
4
|
flex-direction: column;
|
|
6
5
|
overflow: hidden;
|
|
7
6
|
height: 100%;
|
|
8
|
-
|
|
9
|
-
border-
|
|
10
|
-
border-top-right-radius: var(--nsw-border-radius);
|
|
7
|
+
color: var(--nsw-text-dark);
|
|
8
|
+
border-radius: var(--nsw-border-radius);
|
|
11
9
|
|
|
12
10
|
&:hover {
|
|
13
11
|
color: var(--nsw-text-light);
|
|
14
12
|
|
|
15
|
-
.nsw-card__link {
|
|
16
|
-
color: var(--nsw-text-light);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
13
|
.nsw-card__content {
|
|
20
14
|
background-color: var(--nsw-brand-dark);
|
|
21
15
|
border-color: transparent;
|
|
@@ -25,165 +19,119 @@
|
|
|
25
19
|
}
|
|
26
20
|
}
|
|
27
21
|
|
|
28
|
-
.nsw-card__image
|
|
22
|
+
.nsw-card__image {
|
|
29
23
|
&::after {
|
|
30
|
-
background-color:
|
|
24
|
+
background-color: transparent;
|
|
31
25
|
}
|
|
32
26
|
}
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
a {
|
|
35
29
|
color: var(--nsw-text-light);
|
|
36
30
|
}
|
|
37
31
|
|
|
38
|
-
.nsw-
|
|
39
|
-
|
|
32
|
+
.nsw-material-icons {
|
|
33
|
+
color: var(--nsw-text-light);
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
36
|
|
|
43
37
|
&:focus-within {
|
|
44
38
|
@include nsw-focus;
|
|
45
39
|
|
|
46
|
-
|
|
40
|
+
a {
|
|
47
41
|
text-decoration: none;
|
|
48
42
|
}
|
|
49
43
|
}
|
|
50
44
|
|
|
51
|
-
&__title {
|
|
52
|
-
@include font-size('md');
|
|
53
|
-
font-weight: var(--nsw-font-bold);
|
|
54
|
-
margin: 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
45
|
&__content {
|
|
58
46
|
@include font-size('sm');
|
|
59
|
-
|
|
47
|
+
padding: rem(16px) rem(16px) rem(62px) rem(16px);
|
|
60
48
|
background-color: var(--nsw-white);
|
|
61
49
|
border-radius: var(--nsw-border-radius);
|
|
62
50
|
border: 1px solid var(--nsw-grey-03);
|
|
63
51
|
display: flex;
|
|
64
52
|
flex-direction: column;
|
|
65
|
-
order: 2;
|
|
66
53
|
height: 100%;
|
|
67
|
-
transition: background $transition-duration, border $transition-duration;
|
|
68
|
-
|
|
69
|
-
&::before {
|
|
70
|
-
content: '';
|
|
71
|
-
height: 6px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&::after {
|
|
75
|
-
content: '';
|
|
76
|
-
position: absolute;
|
|
77
|
-
top: 0;
|
|
78
|
-
left: 0;
|
|
79
|
-
right: 0;
|
|
80
|
-
height: 6px;
|
|
81
|
-
background-color: var(--nsw-brand-accent);
|
|
82
|
-
transition: background $transition-duration;
|
|
83
|
-
}
|
|
54
|
+
transition: background $nsw-transition-duration, border $nsw-transition-duration;
|
|
84
55
|
|
|
85
56
|
@include breakpoint('lg') {
|
|
86
|
-
|
|
57
|
+
padding: rem(32px) rem(32px) rem(94px) rem(32px);
|
|
87
58
|
}
|
|
88
59
|
}
|
|
89
60
|
|
|
90
|
-
&
|
|
91
|
-
|
|
92
|
-
transition: color $transition-duration;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&__tag {
|
|
61
|
+
&__title {
|
|
62
|
+
@include font-size('md');
|
|
96
63
|
font-weight: var(--nsw-font-bold);
|
|
97
|
-
order: 1;
|
|
98
|
-
margin: 0 0 1rem;
|
|
99
64
|
|
|
100
|
-
|
|
101
|
-
|
|
65
|
+
a {
|
|
66
|
+
@include pseudo-clickable-block;
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
color: var(--nsw-text-dark);
|
|
69
|
+
transition: color $nsw-transition-duration;
|
|
70
|
+
|
|
71
|
+
&:focus {
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
outline: none;
|
|
78
|
+
}
|
|
102
79
|
}
|
|
103
80
|
}
|
|
104
81
|
|
|
105
|
-
&
|
|
106
|
-
|
|
107
|
-
|
|
82
|
+
&__copy {
|
|
83
|
+
margin-top: rem(16px);
|
|
84
|
+
transition: color $nsw-transition-duration;
|
|
108
85
|
}
|
|
109
86
|
|
|
110
87
|
&__tag,
|
|
111
88
|
&__date {
|
|
112
89
|
@include font-size('xs');
|
|
113
|
-
transition: color $transition-duration;
|
|
90
|
+
transition: color $nsw-transition-duration;
|
|
91
|
+
margin-bottom: rem(16px);
|
|
114
92
|
}
|
|
115
93
|
|
|
116
|
-
&
|
|
117
|
-
|
|
118
|
-
&__icon {
|
|
119
|
-
order: 3;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&__icon {
|
|
123
|
-
@include nsw-spacing(margin, md none none none);
|
|
124
|
-
position: absolute;
|
|
125
|
-
bottom: rem(13px);
|
|
126
|
-
left: rem(13px);
|
|
127
|
-
transition: color $transition-duration;
|
|
128
|
-
|
|
129
|
-
&.nsw-icon {
|
|
130
|
-
@include nsw-spacing(bottom, md);
|
|
131
|
-
width: rem(24px);
|
|
132
|
-
height: rem(24px);
|
|
133
|
-
left: auto;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
@include breakpoint('lg') {
|
|
137
|
-
@include nsw-spacing(margin, xl none none none);
|
|
138
|
-
bottom: rem(29px);
|
|
139
|
-
left: rem(28px);
|
|
94
|
+
&__tag {
|
|
95
|
+
font-weight: var(--nsw-font-bold);
|
|
140
96
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
transition: color $transition-duration;
|
|
144
|
-
}
|
|
97
|
+
+ .nsw-card__date {
|
|
98
|
+
margin-top: rem(-8);
|
|
145
99
|
}
|
|
146
100
|
}
|
|
147
101
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
102
|
+
.nsw-material-icons {
|
|
103
|
+
font-size: rem(map-get($nsw-icon-sizes, 30));
|
|
104
|
+
color: var(--nsw-brand-dark);
|
|
105
|
+
position: absolute;
|
|
106
|
+
bottom: rem(16px);
|
|
107
|
+
left: rem(16px);
|
|
108
|
+
transition: color $nsw-transition-duration;
|
|
153
109
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
110
|
+
@include breakpoint('lg') {
|
|
111
|
+
bottom: rem(32px);
|
|
112
|
+
left: rem(32px);
|
|
157
113
|
}
|
|
158
114
|
}
|
|
159
115
|
|
|
160
|
-
&__image
|
|
161
|
-
|
|
116
|
+
&__image {
|
|
117
|
+
min-height: rem(200px);
|
|
162
118
|
height: rem(200px);
|
|
163
119
|
position: relative;
|
|
164
|
-
background-color: var(--nsw-white);
|
|
165
120
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
left: 0;
|
|
171
|
-
right: 0;
|
|
172
|
-
height: 6px;
|
|
173
|
-
background-color: var(--nsw-brand-accent);
|
|
174
|
-
transition: background $transition-duration, border $transition-duration;
|
|
121
|
+
img {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
object-fit: cover;
|
|
175
125
|
}
|
|
176
|
-
}
|
|
177
126
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
127
|
+
+ .nsw-card__content {
|
|
128
|
+
border-top-left-radius: 0;
|
|
129
|
+
border-top-right-radius: 0;
|
|
130
|
+
border-top-width: 0;
|
|
183
131
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
132
|
+
&::after {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
187
135
|
}
|
|
188
136
|
}
|
|
189
137
|
|
|
@@ -191,10 +139,17 @@
|
|
|
191
139
|
.nsw-card__content {
|
|
192
140
|
background-color: var(--nsw-brand-light);
|
|
193
141
|
border-color: transparent;
|
|
142
|
+
|
|
143
|
+
&::before,
|
|
144
|
+
&::after {
|
|
145
|
+
display: none;
|
|
146
|
+
}
|
|
194
147
|
}
|
|
195
148
|
|
|
196
|
-
.nsw-card__image
|
|
197
|
-
|
|
149
|
+
.nsw-card__image {
|
|
150
|
+
&::after {
|
|
151
|
+
display: none;
|
|
152
|
+
}
|
|
198
153
|
}
|
|
199
154
|
}
|
|
200
155
|
|
|
@@ -207,107 +162,123 @@
|
|
|
207
162
|
.nsw-card__content {
|
|
208
163
|
background-color: var(--nsw-white);
|
|
209
164
|
border-color: var(--nsw-grey-03);
|
|
210
|
-
|
|
211
|
-
&::after {
|
|
212
|
-
display: block;
|
|
213
|
-
}
|
|
214
165
|
}
|
|
215
166
|
|
|
216
|
-
.nsw-
|
|
217
|
-
&::after {
|
|
218
|
-
background-color: var(--nsw-brand-accent);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.nsw-card__link {
|
|
167
|
+
.nsw-card__title a {
|
|
223
168
|
color: var(--nsw-text-dark);
|
|
224
169
|
}
|
|
225
170
|
|
|
226
171
|
.nsw-material-icons {
|
|
227
172
|
color: var(--nsw-brand-dark);
|
|
228
173
|
}
|
|
229
|
-
|
|
230
|
-
.nsw-icon {
|
|
231
|
-
fill: var(--nsw-brand-dark);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.nsw-card__image-area {
|
|
236
|
-
background-color: var(--nsw-brand-dark);
|
|
237
174
|
}
|
|
238
175
|
|
|
239
176
|
.nsw-card__content {
|
|
240
177
|
background-color: var(--nsw-brand-dark);
|
|
241
178
|
border-color: transparent;
|
|
179
|
+
|
|
180
|
+
&::before,
|
|
181
|
+
&::after {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
242
184
|
}
|
|
243
185
|
|
|
244
|
-
.nsw-
|
|
186
|
+
.nsw-card__image {
|
|
187
|
+
&::after {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.nsw-card__title a {
|
|
245
193
|
color: var(--nsw-text-light);
|
|
246
194
|
}
|
|
247
195
|
|
|
248
196
|
.nsw-material-icons {
|
|
249
197
|
color: var(--nsw-text-light);
|
|
250
198
|
}
|
|
199
|
+
}
|
|
251
200
|
|
|
252
|
-
|
|
253
|
-
|
|
201
|
+
&--headline {
|
|
202
|
+
.nsw-card__title {
|
|
203
|
+
@include font-size('lg');
|
|
254
204
|
}
|
|
255
205
|
}
|
|
256
206
|
|
|
257
|
-
&--
|
|
207
|
+
&--highlight {
|
|
258
208
|
.nsw-card__content {
|
|
259
|
-
&::before
|
|
209
|
+
&::before {
|
|
210
|
+
content: '';
|
|
211
|
+
height: 4px;
|
|
212
|
+
}
|
|
213
|
+
|
|
260
214
|
&::after {
|
|
261
|
-
|
|
215
|
+
content: '';
|
|
216
|
+
position: absolute;
|
|
217
|
+
top: 0;
|
|
218
|
+
left: 0;
|
|
219
|
+
right: 0;
|
|
220
|
+
height: 4px;
|
|
221
|
+
background-color: var(--nsw-brand-accent);
|
|
222
|
+
transition: background $nsw-transition-duration;
|
|
262
223
|
}
|
|
263
224
|
}
|
|
264
225
|
|
|
265
|
-
.nsw-card__image
|
|
226
|
+
.nsw-card__image {
|
|
266
227
|
&::after {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
228
|
+
content: '';
|
|
229
|
+
position: absolute;
|
|
230
|
+
bottom: -4px;
|
|
231
|
+
left: 0;
|
|
232
|
+
right: 0;
|
|
233
|
+
height: 4px;
|
|
234
|
+
background-color: var(--nsw-brand-accent);
|
|
235
|
+
transition: background $nsw-transition-duration;
|
|
270
236
|
}
|
|
271
237
|
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&--horizontal {
|
|
241
|
+
@include breakpoint('md') {
|
|
242
|
+
flex-direction: row;
|
|
243
|
+
align-items: stretch;
|
|
272
244
|
|
|
273
|
-
&:hover {
|
|
274
245
|
.nsw-card__content {
|
|
275
|
-
|
|
276
|
-
|
|
246
|
+
flex: 1 1 50%;
|
|
247
|
+
height: auto;
|
|
248
|
+
|
|
249
|
+
> .nsw-material-icons {
|
|
250
|
+
left: calc(50% + #{rem(16px)});
|
|
277
251
|
}
|
|
278
252
|
}
|
|
279
253
|
|
|
280
|
-
.nsw-card__image
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
254
|
+
.nsw-card__image {
|
|
255
|
+
flex: 1 1 50%;
|
|
256
|
+
position: relative;
|
|
257
|
+
height: auto;
|
|
284
258
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
border-
|
|
259
|
+
+ .nsw-card__content {
|
|
260
|
+
border-top-right-radius: var(--nsw-border-radius);
|
|
261
|
+
border-bottom-left-radius: 0;
|
|
262
|
+
border-top-width: 1px;
|
|
263
|
+
border-left-width: 0;
|
|
289
264
|
}
|
|
290
265
|
}
|
|
291
266
|
|
|
292
|
-
&.nsw-card--
|
|
293
|
-
.nsw-card__image
|
|
294
|
-
|
|
295
|
-
|
|
267
|
+
&.nsw-card--highlight {
|
|
268
|
+
.nsw-card__image::after {
|
|
269
|
+
top: 0;
|
|
270
|
+
bottom: 0;
|
|
271
|
+
left: auto;
|
|
272
|
+
right: -4px;
|
|
273
|
+
width: 4px;
|
|
274
|
+
height: auto;
|
|
296
275
|
}
|
|
297
276
|
}
|
|
298
277
|
}
|
|
299
278
|
|
|
300
|
-
|
|
301
|
-
.nsw-
|
|
302
|
-
|
|
303
|
-
border-color: transparent;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
&.nsw-card--dark {
|
|
308
|
-
.nsw-card__image-area::after {
|
|
309
|
-
background-color: var(--nsw-brand-dark);
|
|
310
|
-
border-color: transparent;
|
|
279
|
+
@include breakpoint('lg') {
|
|
280
|
+
.nsw-card__content > .nsw-material-icons {
|
|
281
|
+
left: calc(50% + #{rem(32px)});
|
|
311
282
|
}
|
|
312
283
|
}
|
|
313
284
|
}
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
.nsw-content-block {
|
|
2
|
-
font-family: var(--nsw-font-family);
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
|
|
8
2
|
&__title {
|
|
9
3
|
@include font-size('lg');
|
|
10
4
|
font-weight: var(--nsw-font-bold);
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&__content {
|
|
15
|
-
@include font-size('sm');
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
order: 2;
|
|
19
|
-
|
|
20
|
-
a {
|
|
21
|
-
@include text-link;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__copy {
|
|
26
|
-
margin: rem(16px) 0 0 0;
|
|
27
|
-
|
|
28
|
-
a {
|
|
29
|
-
font-weight: var(--nsw-font-normal);
|
|
30
|
-
}
|
|
31
5
|
}
|
|
32
6
|
|
|
33
7
|
&__list {
|
|
34
|
-
margin: rem(16px) 0 0 0;
|
|
35
8
|
padding: 0;
|
|
36
9
|
list-style-type: none;
|
|
37
10
|
|
|
38
11
|
li {
|
|
12
|
+
margin: 0;
|
|
39
13
|
padding: rem(8px) 0 rem(8px) rem(14px);
|
|
40
14
|
position: relative;
|
|
41
15
|
|
|
@@ -50,26 +24,21 @@
|
|
|
50
24
|
left: 0;
|
|
51
25
|
}
|
|
52
26
|
}
|
|
53
|
-
|
|
54
|
-
a {
|
|
55
|
-
font-weight: var(--nsw-font-normal);
|
|
56
|
-
}
|
|
57
27
|
}
|
|
58
28
|
|
|
59
29
|
&__link {
|
|
60
|
-
margin: rem(16px)
|
|
30
|
+
margin-top: rem(16px);
|
|
61
31
|
}
|
|
62
32
|
|
|
63
|
-
&__image
|
|
64
|
-
order: 1;
|
|
33
|
+
&__image {
|
|
65
34
|
max-height: rem(200px);
|
|
66
35
|
margin-bottom: rem(24px);
|
|
67
|
-
}
|
|
68
36
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
37
|
+
img {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: rem(200px);
|
|
40
|
+
object-fit: cover;
|
|
41
|
+
}
|
|
73
42
|
}
|
|
74
43
|
|
|
75
44
|
&__icon {
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
.nsw-filters {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
button {
|
|
5
|
-
font-family: var(--nsw-font-family);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.nsw-page-layout__sidebar & {
|
|
1
|
+
.nsw-filters {
|
|
2
|
+
.nsw-layout__sidebar & {
|
|
9
3
|
margin: rem(-8px) 0 rem(-16px) 0;
|
|
10
4
|
|
|
11
5
|
@include breakpoint('lg') {
|
|
@@ -33,39 +27,26 @@
|
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
button {
|
|
30
|
+
@include link-button;
|
|
36
31
|
display: flex;
|
|
37
32
|
align-items: center;
|
|
38
|
-
|
|
39
|
-
background-color: transparent;
|
|
40
|
-
border: 0;
|
|
41
|
-
padding: 0;
|
|
42
|
-
color: var(--nsw-brand-dark);
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
@include nsw-hover;
|
|
46
|
-
outline: 4px solid var(--nsw-text-hover);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:focus {
|
|
50
|
-
@include nsw-focus;
|
|
51
|
-
}
|
|
33
|
+
text-decoration: none;
|
|
52
34
|
|
|
53
35
|
span {
|
|
54
|
-
@include font-size('sm');
|
|
55
|
-
font-weight: var(--nsw-font-bold);
|
|
56
36
|
text-decoration: underline;
|
|
57
37
|
padding-left: rem(8px);
|
|
58
38
|
}
|
|
59
39
|
}
|
|
60
40
|
|
|
61
41
|
.nsw-material-icons {
|
|
42
|
+
font-size: rem(map-get($nsw-icon-sizes, 24));
|
|
62
43
|
border-radius: var(--nsw-border-radius);
|
|
63
|
-
font-size: rem(24px);
|
|
64
44
|
padding: rem(1px);
|
|
65
45
|
border: 2px solid var(--nsw-brand-dark);
|
|
46
|
+
text-decoration: none;
|
|
66
47
|
}
|
|
67
48
|
|
|
68
|
-
|
|
49
|
+
&.active {
|
|
69
50
|
.nsw-material-icons {
|
|
70
51
|
background-color: var(--nsw-brand-dark);
|
|
71
52
|
color: var(--nsw-text-light);
|
|
@@ -80,41 +61,12 @@
|
|
|
80
61
|
left: 0;
|
|
81
62
|
right: 0;
|
|
82
63
|
background-color: var(--nsw-white);
|
|
83
|
-
padding: rem(
|
|
64
|
+
padding: rem(16px) rem(8px);
|
|
84
65
|
border-bottom: 1px solid var(--nsw-grey-04);
|
|
85
66
|
|
|
86
67
|
@include breakpoint('lg') {
|
|
87
68
|
display: none;
|
|
88
69
|
}
|
|
89
|
-
|
|
90
|
-
button {
|
|
91
|
-
background-color: transparent;
|
|
92
|
-
border: 0;
|
|
93
|
-
padding: 0;
|
|
94
|
-
color: var(--nsw-brand-dark);
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: center;
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
@include nsw-hover;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&:focus {
|
|
104
|
-
@include nsw-focus;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
span {
|
|
108
|
-
@include font-size('sm');
|
|
109
|
-
font-weight: var(--nsw-font-bold);
|
|
110
|
-
text-decoration: underline;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
i {
|
|
114
|
-
font-size: rem(24px);
|
|
115
|
-
margin-right: rem(4px);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
70
|
}
|
|
119
71
|
|
|
120
72
|
&__wrapper {
|
|
@@ -175,10 +127,6 @@
|
|
|
175
127
|
padding: rem(32px) 0;
|
|
176
128
|
}
|
|
177
129
|
}
|
|
178
|
-
|
|
179
|
-
button {
|
|
180
|
-
margin: 0;
|
|
181
|
-
}
|
|
182
130
|
}
|
|
183
131
|
|
|
184
132
|
&__cancel {
|
|
@@ -200,27 +148,13 @@
|
|
|
200
148
|
}
|
|
201
149
|
|
|
202
150
|
button {
|
|
203
|
-
@include
|
|
204
|
-
@include font-size('sm');
|
|
205
|
-
font-weight: normal;
|
|
206
|
-
text-decoration: underline;
|
|
207
|
-
cursor: pointer;
|
|
208
|
-
background-color: transparent;
|
|
209
|
-
border: 0;
|
|
210
|
-
padding: 0;
|
|
151
|
+
@include link-button;
|
|
211
152
|
}
|
|
212
153
|
}
|
|
213
154
|
|
|
214
155
|
&__more,
|
|
215
|
-
&__less {
|
|
216
|
-
@include
|
|
217
|
-
@include font-size('sm');
|
|
218
|
-
font-weight: normal;
|
|
219
|
-
text-decoration: underline;
|
|
220
|
-
cursor: pointer;
|
|
221
|
-
background-color: transparent;
|
|
222
|
-
border: 0;
|
|
223
|
-
padding: 0;
|
|
156
|
+
&__less {
|
|
157
|
+
@include link-button;
|
|
224
158
|
margin-top: rem(24px);
|
|
225
159
|
}
|
|
226
160
|
|