@ndla/ui 50.9.7 → 50.9.9
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/es/AudioPlayer/AudioPlayer.js +34 -34
- package/es/Embed/ContentLinkEmbed.js +2 -2
- package/es/Embed/IframeEmbed.js +11 -4
- package/es/Embed/UuDisclaimerEmbed.js +75 -0
- package/es/Embed/index.js +2 -1
- package/es/ExpandableBox/ExpandableBox.js +8 -2
- package/es/Filter/ToggleItem.js +31 -9
- package/es/Filter/index.js +0 -3
- package/es/Logo/Logo.js +44 -20
- package/es/Logo/SvgLogo.js +7 -3
- package/es/Messages/MessageBox.js +6 -6
- package/es/RelatedArticleList/RelatedArticleList.js +8 -8
- package/es/all.css +1 -1
- package/es/index.js +2 -2
- package/es/locale/messages-en.js +3 -0
- package/es/locale/messages-nb.js +3 -0
- package/es/locale/messages-nn.js +3 -0
- package/es/locale/messages-se.js +3 -0
- package/es/locale/messages-sma.js +3 -0
- package/lib/AudioPlayer/AudioPlayer.js +34 -34
- package/lib/Embed/ContentLinkEmbed.js +2 -2
- package/lib/Embed/IframeEmbed.js +12 -4
- package/lib/Embed/UuDisclaimerEmbed.d.ts +15 -0
- package/lib/Embed/UuDisclaimerEmbed.js +78 -0
- package/lib/Embed/index.d.ts +1 -0
- package/lib/Embed/index.js +7 -0
- package/lib/ExpandableBox/ExpandableBox.js +8 -1
- package/lib/Filter/ToggleItem.d.ts +1 -2
- package/lib/Filter/ToggleItem.js +32 -9
- package/lib/Filter/index.d.ts +0 -3
- package/lib/Filter/index.js +0 -21
- package/lib/Logo/Logo.d.ts +0 -2
- package/lib/Logo/Logo.js +45 -22
- package/lib/Logo/SvgLogo.js +8 -3
- package/lib/Messages/MessageBox.d.ts +1 -1
- package/lib/Messages/MessageBox.js +6 -6
- package/lib/RelatedArticleList/RelatedArticleList.js +8 -8
- package/lib/all.css +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +6 -12
- package/lib/locale/messages-en.d.ts +3 -0
- package/lib/locale/messages-en.js +3 -0
- package/lib/locale/messages-nb.d.ts +3 -0
- package/lib/locale/messages-nb.js +3 -0
- package/lib/locale/messages-nn.d.ts +3 -0
- package/lib/locale/messages-nn.js +3 -0
- package/lib/locale/messages-se.d.ts +3 -0
- package/lib/locale/messages-se.js +3 -0
- package/lib/locale/messages-sma.d.ts +3 -0
- package/lib/locale/messages-sma.js +3 -0
- package/package.json +12 -12
- package/src/AudioPlayer/AudioPlayer.tsx +13 -27
- package/src/CampaignBlock/CampaignBlock.stories.tsx +15 -0
- package/src/Embed/BrightcoveEmbed.stories.tsx +1 -1
- package/src/Embed/ContentLinkEmbed.tsx +1 -1
- package/src/Embed/ExternalEmbed.stories.tsx +93 -0
- package/src/Embed/IframeEmbed.tsx +8 -3
- package/src/Embed/UuDisclaimerEmbed.stories.tsx +150 -0
- package/src/Embed/UuDisclaimerEmbed.tsx +62 -0
- package/src/Embed/index.ts +1 -0
- package/src/ExpandableBox/ExpandableBox.stories.tsx +10 -1
- package/src/ExpandableBox/ExpandableBox.tsx +11 -1
- package/src/Figure/component.figure.scss +0 -56
- package/src/Filter/ToggleItem.tsx +131 -9
- package/src/Filter/index.ts +0 -3
- package/src/Logo/Logo.tsx +36 -16
- package/src/Logo/SvgLogo.tsx +8 -9
- package/src/Messages/MessageBox.tsx +1 -1
- package/src/RelatedArticleList/RelatedArticleList.tsx +1 -1
- package/src/index.ts +2 -1
- package/src/locale/messages-en.ts +3 -0
- package/src/locale/messages-nb.ts +3 -0
- package/src/locale/messages-nn.ts +3 -0
- package/src/locale/messages-se.ts +3 -0
- package/src/locale/messages-sma.ts +3 -0
- package/src/main.scss +0 -2
- package/es/Filter/FilterList.js +0 -100
- package/es/Filter/FilterListPhone.js +0 -224
- package/es/Filter/filterClasses.js +0 -13
- package/lib/Filter/FilterList.d.ts +0 -32
- package/lib/Filter/FilterList.js +0 -105
- package/lib/Filter/FilterListPhone.d.ts +0 -38
- package/lib/Filter/FilterListPhone.js +0 -229
- package/lib/Filter/filterClasses.d.ts +0 -9
- package/lib/Filter/filterClasses.js +0 -20
- package/src/Filter/FilterList.tsx +0 -137
- package/src/Filter/FilterListPhone.tsx +0 -278
- package/src/Filter/component.filter.scss +0 -503
- package/src/Filter/filterClasses.ts +0 -14
- package/src/Logo/component.logo.scss +0 -28
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
** FILTER
|
|
3
|
-
** Component for filtering content
|
|
4
|
-
**
|
|
5
|
-
** EXAMPLE:
|
|
6
|
-
** <div class="c-filter__list">
|
|
7
|
-
** <span class="c-filter__label">FILTER:</span>
|
|
8
|
-
** <div class="c-filter__item">
|
|
9
|
-
** <input type="checkbox" class="c-filter__input" name="gruppe" id="1T" value="1T">
|
|
10
|
-
** <label for="1T"><span class="c-filter__item-checkbox"></span></label>
|
|
11
|
-
** </div>
|
|
12
|
-
** <div class="c-filter__item">
|
|
13
|
-
** <input type="checkbox" class="c-filter__input" name="gruppe" id="R1" value="R1">
|
|
14
|
-
** <label for="R1"><span class="c-filter__item-checkbox"></span></label>
|
|
15
|
-
** </div>
|
|
16
|
-
** </div>
|
|
17
|
-
**/
|
|
18
|
-
|
|
19
|
-
.c-filter {
|
|
20
|
-
align-items: center;
|
|
21
|
-
flex-grow: 2;
|
|
22
|
-
|
|
23
|
-
& > h1,
|
|
24
|
-
& > h2,
|
|
25
|
-
& > h3 {
|
|
26
|
-
border-bottom: 1px solid $brand-color--light;
|
|
27
|
-
margin-bottom: $spacing--small;
|
|
28
|
-
|
|
29
|
-
@include mq(tablet) {
|
|
30
|
-
border: none;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__wrapper-multiple-filters {
|
|
35
|
-
margin-bottom: $spacing;
|
|
36
|
-
> * {
|
|
37
|
-
> .c-filter__label {
|
|
38
|
-
width: 120px;
|
|
39
|
-
}
|
|
40
|
-
> .c-filter__item-wrapper {
|
|
41
|
-
width: calc(100% - 120px);
|
|
42
|
-
}
|
|
43
|
-
&:not(:last-child) {
|
|
44
|
-
margin-bottom: $spacing--small;
|
|
45
|
-
@include mq(tabletWide) {
|
|
46
|
-
margin-bottom: $spacing--xsmall;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
&:not(:first-child) {
|
|
50
|
-
border-top: 1px solid $brand-grey--lighter;
|
|
51
|
-
padding-top: $spacing--small;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__list {
|
|
57
|
-
margin: 0;
|
|
58
|
-
padding: 0;
|
|
59
|
-
top: 80px;
|
|
60
|
-
width: 100%;
|
|
61
|
-
font-family: $font;
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: flex-start;
|
|
64
|
-
flex-flow: column;
|
|
65
|
-
|
|
66
|
-
@include mq(tablet) {
|
|
67
|
-
width: auto;
|
|
68
|
-
position: relative;
|
|
69
|
-
top: 0;
|
|
70
|
-
border: none;
|
|
71
|
-
padding-top: 0;
|
|
72
|
-
flex-flow: row;
|
|
73
|
-
.c-filter__label {
|
|
74
|
-
margin-right: $spacing;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&--float-right {
|
|
79
|
-
float: right;
|
|
80
|
-
top: 0;
|
|
81
|
-
width: auto;
|
|
82
|
-
padding: 0;
|
|
83
|
-
border: none;
|
|
84
|
-
margin-right: -$spacing--small;
|
|
85
|
-
margin-top: -4px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&--search,
|
|
89
|
-
&--search-popover {
|
|
90
|
-
flex-flow: column;
|
|
91
|
-
|
|
92
|
-
@include mq(desktop) {
|
|
93
|
-
.c-filter {
|
|
94
|
-
&__label {
|
|
95
|
-
display: block;
|
|
96
|
-
margin: 0 0 $spacing--small 0;
|
|
97
|
-
font-weight: 600;
|
|
98
|
-
}
|
|
99
|
-
&__item {
|
|
100
|
-
display: block;
|
|
101
|
-
margin: 0 0 $spacing--small;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
&--search-popover {
|
|
108
|
-
.c-filter {
|
|
109
|
-
&__label {
|
|
110
|
-
@include font-size(16px, 32px);
|
|
111
|
-
|
|
112
|
-
@include mq(desktop) {
|
|
113
|
-
@include font-size(22px, 32px);
|
|
114
|
-
margin-bottom: $spacing--medium;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__item-wrapper {
|
|
119
|
-
@include mq(desktop) {
|
|
120
|
-
columns: 2;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__item {
|
|
125
|
-
display: list-item;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&--filter-single-checkbox {
|
|
131
|
-
@include mq($until: mobileWide) {
|
|
132
|
-
width: 100% !important;
|
|
133
|
-
margin: $spacing 0 0 0 !important;
|
|
134
|
-
padding: $spacing--xsmall 20px;
|
|
135
|
-
background: $brand-grey--lighter;
|
|
136
|
-
flex-direction: row;
|
|
137
|
-
.c-filter__item label {
|
|
138
|
-
padding-left: 0;
|
|
139
|
-
flex-direction: row;
|
|
140
|
-
.c-filter__item-checkbox {
|
|
141
|
-
margin-right: $spacing--small;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&__label {
|
|
149
|
-
@include font-size(16px, 22px);
|
|
150
|
-
|
|
151
|
-
@include mq(tablet) {
|
|
152
|
-
margin: 0 0 $spacing--small;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@include mq($until: mobileWide) {
|
|
156
|
-
padding-left: $spacing;
|
|
157
|
-
padding-right: $spacing;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&--hidden {
|
|
161
|
-
@include visually-hidden();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
&__item-wrapper {
|
|
166
|
-
margin: 0;
|
|
167
|
-
padding: 0;
|
|
168
|
-
list-style: none;
|
|
169
|
-
max-width: 780px;
|
|
170
|
-
|
|
171
|
-
@include mq($until: mobileWide) {
|
|
172
|
-
flex-flow: wrap;
|
|
173
|
-
width: 100%;
|
|
174
|
-
flex-flow: column;
|
|
175
|
-
.c-filter__item {
|
|
176
|
-
width: 100%;
|
|
177
|
-
border-bottom: 1px solid $brand-grey--lighter;
|
|
178
|
-
margin-bottom: 0;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&--collapse-mobile {
|
|
183
|
-
@include mq($from: mobileWide, $until: tabletWide) {
|
|
184
|
-
flex-flow: wrap;
|
|
185
|
-
width: calc(100% + 24px);
|
|
186
|
-
margin-left: -24px;
|
|
187
|
-
.c-filter__item {
|
|
188
|
-
width: auto;
|
|
189
|
-
max-width: 50%;
|
|
190
|
-
flex: 50%;
|
|
191
|
-
padding-left: $spacing--small;
|
|
192
|
-
padding-right: $spacing--small;
|
|
193
|
-
transform: translateX($spacing--small);
|
|
194
|
-
&:nth-child(odd) {
|
|
195
|
-
transform: translateX($spacing--small - 2);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@include mq($until: tabletWide) {
|
|
201
|
-
display: flex;
|
|
202
|
-
align-items: flex-start;
|
|
203
|
-
|
|
204
|
-
.c-filter__item {
|
|
205
|
-
margin: 0;
|
|
206
|
-
background: #fff;
|
|
207
|
-
display: flex;
|
|
208
|
-
position: static;
|
|
209
|
-
min-height: 52px;
|
|
210
|
-
align-items: center;
|
|
211
|
-
border-bottom: 1px solid $brand-grey--lighter;
|
|
212
|
-
}
|
|
213
|
-
.c-filter__label {
|
|
214
|
-
text-transform: uppercase;
|
|
215
|
-
@include font-size(12px, 16px);
|
|
216
|
-
}
|
|
217
|
-
.c-filter__input {
|
|
218
|
-
position: absolute;
|
|
219
|
-
top: 0;
|
|
220
|
-
left: 0;
|
|
221
|
-
width: 0;
|
|
222
|
-
height: 0;
|
|
223
|
-
opacity: 0;
|
|
224
|
-
z-index: 5;
|
|
225
|
-
cursor: pointer;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
@include mq($from: tabletWide) {
|
|
229
|
-
.c-filter__item {
|
|
230
|
-
width: 50%;
|
|
231
|
-
margin: 0 0 $spacing--small;
|
|
232
|
-
padding-right: $spacing--small;
|
|
233
|
-
label {
|
|
234
|
-
width: 100%;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
&--aligned-grouping {
|
|
240
|
-
@include mq($until: 568px) {
|
|
241
|
-
> li {
|
|
242
|
-
width: 100%;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
@include mq(568px) {
|
|
246
|
-
> li {
|
|
247
|
-
width: 235px;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
&--grouped-options {
|
|
252
|
-
margin-bottom: $spacing--small;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
&__item {
|
|
257
|
-
display: inline-block;
|
|
258
|
-
position: relative;
|
|
259
|
-
margin: 0 $spacing--small 0 2px;
|
|
260
|
-
color: $brand-color;
|
|
261
|
-
border-radius: $border-radius;
|
|
262
|
-
transition: $transition;
|
|
263
|
-
cursor: pointer;
|
|
264
|
-
@include font-size(16px, 18px);
|
|
265
|
-
|
|
266
|
-
&--hidden {
|
|
267
|
-
display: none !important;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&--no-results,
|
|
271
|
-
&--disabled {
|
|
272
|
-
cursor: not-allowed;
|
|
273
|
-
pointer-events: none;
|
|
274
|
-
color: $brand-color--tertiary;
|
|
275
|
-
|
|
276
|
-
.c-filter__item-checkbox {
|
|
277
|
-
opacity: 0.5;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&:hover {
|
|
282
|
-
.c-filter__item-checkbox {
|
|
283
|
-
border: 2px solid $brand-color--tertiary;
|
|
284
|
-
&:before {
|
|
285
|
-
width: 5px;
|
|
286
|
-
transition: width 100ms ease;
|
|
287
|
-
}
|
|
288
|
-
&:after {
|
|
289
|
-
width: 10px;
|
|
290
|
-
transition: width 150ms ease 100ms;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
[data-icon] {
|
|
296
|
-
margin-left: $spacing--small;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
input:checked {
|
|
300
|
-
& + label .c-filter__item-checkbox {
|
|
301
|
-
border: 2px solid $brand-color;
|
|
302
|
-
background: $brand-color;
|
|
303
|
-
&:before {
|
|
304
|
-
background: white;
|
|
305
|
-
width: 5px;
|
|
306
|
-
}
|
|
307
|
-
&:after {
|
|
308
|
-
background: white;
|
|
309
|
-
width: 10px;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
input {
|
|
315
|
-
&:focus,
|
|
316
|
-
&:active {
|
|
317
|
-
& + label {
|
|
318
|
-
@include restore-outline();
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
label {
|
|
324
|
-
cursor: pointer;
|
|
325
|
-
display: inline-flex;
|
|
326
|
-
align-items: center;
|
|
327
|
-
@include mq($until: tabletWide) {
|
|
328
|
-
width: 100%;
|
|
329
|
-
}
|
|
330
|
-
@include mq($until: mobileWide) {
|
|
331
|
-
width: 100%;
|
|
332
|
-
padding: $spacing--xsmall 0;
|
|
333
|
-
justify-content: space-between;
|
|
334
|
-
min-height: 52px;
|
|
335
|
-
align-items: center;
|
|
336
|
-
.c-filter__text {
|
|
337
|
-
flex-grow: 1;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
&__icon {
|
|
344
|
-
margin: 3px 0;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
&__input {
|
|
348
|
-
position: absolute;
|
|
349
|
-
// width: 100%;
|
|
350
|
-
// height: 100%;
|
|
351
|
-
opacity: 0;
|
|
352
|
-
z-index: 5;
|
|
353
|
-
cursor: pointer;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
&__item-checkbox {
|
|
357
|
-
content: '';
|
|
358
|
-
display: inline-block;
|
|
359
|
-
position: relative;
|
|
360
|
-
width: 24px;
|
|
361
|
-
height: 24px;
|
|
362
|
-
padding: 0;
|
|
363
|
-
background: $white;
|
|
364
|
-
border: 2px solid $brand-color--tertiary;
|
|
365
|
-
margin: 2px $spacing--small 2px 3px;
|
|
366
|
-
border-radius: 2px;
|
|
367
|
-
flex-shrink: 0;
|
|
368
|
-
|
|
369
|
-
@include mq(tablet) {
|
|
370
|
-
width: 20px;
|
|
371
|
-
height: 20px;
|
|
372
|
-
margin: 4px $spacing--small 4px 3px;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
&:before {
|
|
376
|
-
content: '';
|
|
377
|
-
width: 0px;
|
|
378
|
-
height: 2px;
|
|
379
|
-
border-radius: 2px;
|
|
380
|
-
background: $brand-color--tertiary;
|
|
381
|
-
position: absolute;
|
|
382
|
-
transform: rotate(45deg);
|
|
383
|
-
top: 10px;
|
|
384
|
-
left: 7px;
|
|
385
|
-
|
|
386
|
-
@include mq(tablet) {
|
|
387
|
-
top: 8px;
|
|
388
|
-
left: 5px;
|
|
389
|
-
}
|
|
390
|
-
transition: width 50ms ease 50ms;
|
|
391
|
-
transform-origin: 0% 0%;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
&:after {
|
|
395
|
-
content: '';
|
|
396
|
-
width: 0;
|
|
397
|
-
height: 2px;
|
|
398
|
-
border-radius: 2px;
|
|
399
|
-
background: $brand-color--tertiary;
|
|
400
|
-
position: absolute;
|
|
401
|
-
transform: rotate(305deg);
|
|
402
|
-
top: 13px;
|
|
403
|
-
left: 8px;
|
|
404
|
-
|
|
405
|
-
@include mq(tablet) {
|
|
406
|
-
top: 11px;
|
|
407
|
-
left: 6px;
|
|
408
|
-
}
|
|
409
|
-
transition: width 50ms ease;
|
|
410
|
-
transform-origin: 0% 0%;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
&__text {
|
|
414
|
-
z-index: 2;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
&__expand {
|
|
418
|
-
display: flex;
|
|
419
|
-
align-items: center;
|
|
420
|
-
background: none;
|
|
421
|
-
border: 0;
|
|
422
|
-
padding: 0;
|
|
423
|
-
margin-top: $spacing;
|
|
424
|
-
cursor: pointer;
|
|
425
|
-
color: $brand-color;
|
|
426
|
-
@include font-size(16px, 32px);
|
|
427
|
-
|
|
428
|
-
span {
|
|
429
|
-
margin-right: $spacing;
|
|
430
|
-
}
|
|
431
|
-
@include mq($until: mobileWide) {
|
|
432
|
-
margin-top: 0;
|
|
433
|
-
padding: $spacing--xsmall $spacing;
|
|
434
|
-
width: 100%;
|
|
435
|
-
justify-content: space-between;
|
|
436
|
-
min-height: 52px;
|
|
437
|
-
border-bottom: 1px solid $brand-grey--lighter;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
&--background {
|
|
442
|
-
background-color: $brand-grey--lightest;
|
|
443
|
-
padding: $spacing;
|
|
444
|
-
@include mq($until: mobileWide) {
|
|
445
|
-
padding: 0;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
&__usefilter-wrapper {
|
|
450
|
-
display: flex;
|
|
451
|
-
align-items: flex-end;
|
|
452
|
-
justify-content: center;
|
|
453
|
-
padding: $spacing--large 0 $spacing--large;
|
|
454
|
-
@include mq($from: tabletWide) {
|
|
455
|
-
justify-content: flex-start;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
&__no-filter-selected {
|
|
460
|
-
color: $text-light-color;
|
|
461
|
-
@include font-size(16px, 16px);
|
|
462
|
-
@include mq($until: mobileWide) {
|
|
463
|
-
padding: 0 $spacing $spacing--small $spacing;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
&__narrow-active-filters {
|
|
468
|
-
@include mq($from: tabletWide) {
|
|
469
|
-
display: flex;
|
|
470
|
-
flex-direction: row-reverse;
|
|
471
|
-
justify-content: flex-end;
|
|
472
|
-
align-items: flex-start;
|
|
473
|
-
}
|
|
474
|
-
.c-filter__modal-button {
|
|
475
|
-
flex: 0 0 auto;
|
|
476
|
-
height: 40px;
|
|
477
|
-
margin-right: 13px;
|
|
478
|
-
@include mq($until: desktop) {
|
|
479
|
-
height: auto;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
.c-active-filters {
|
|
483
|
-
padding-bottom: 0;
|
|
484
|
-
flex-direction: row;
|
|
485
|
-
button {
|
|
486
|
-
margin-right: $spacing--xsmall;
|
|
487
|
-
width: auto;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
&__modal-header {
|
|
492
|
-
display: flex;
|
|
493
|
-
justify-content: space-between;
|
|
494
|
-
width: 100%;
|
|
495
|
-
.c-filter__modal-heading {
|
|
496
|
-
display: flex;
|
|
497
|
-
align-items: baseline;
|
|
498
|
-
h1 {
|
|
499
|
-
margin-right: $spacing;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2018-present, NDLA.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the GPLv3 license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import BEMHelper from "react-bem-helper";
|
|
10
|
-
|
|
11
|
-
export const classes = new BEMHelper({
|
|
12
|
-
name: "filter",
|
|
13
|
-
prefix: "c-",
|
|
14
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
.c-logo {
|
|
2
|
-
a {
|
|
3
|
-
box-shadow: none;
|
|
4
|
-
}
|
|
5
|
-
width: 120px;
|
|
6
|
-
margin: 0;
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
&--large {
|
|
10
|
-
width: 287px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&--white {
|
|
14
|
-
.c-logo {
|
|
15
|
-
&__graphic {
|
|
16
|
-
fill: $white;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&__graphic {
|
|
22
|
-
fill: $brand-color;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__beta {
|
|
26
|
-
margin-top: 9px;
|
|
27
|
-
}
|
|
28
|
-
}
|