@skyscanner/backpack-web 38.22.0 → 39.0.0

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.
Files changed (44) hide show
  1. package/bpk-mixins/_badges-v2.scss +37 -36
  2. package/bpk-mixins/_badges.scss +37 -36
  3. package/bpk-mixins/_borders.scss +16 -16
  4. package/bpk-mixins/_breakpoints.scss +11 -11
  5. package/bpk-mixins/_buttons.scss +141 -137
  6. package/bpk-mixins/_cards.scss +13 -13
  7. package/bpk-mixins/_chips.scss +66 -66
  8. package/bpk-mixins/_forms.scss +214 -202
  9. package/bpk-mixins/_icons.scss +7 -4
  10. package/bpk-mixins/_index.scss +19 -19
  11. package/bpk-mixins/_layers.scss +34 -34
  12. package/bpk-mixins/_margins.scss +3 -3
  13. package/bpk-mixins/_panels.scss +9 -9
  14. package/bpk-mixins/_radii.scss +6 -6
  15. package/bpk-mixins/_scroll-indicators.scss +2 -2
  16. package/bpk-mixins/_shadows.scss +4 -4
  17. package/bpk-mixins/_spinners.scss +10 -10
  18. package/bpk-mixins/_tokens.scss +1 -3
  19. package/bpk-mixins/_typography.scss +204 -195
  20. package/bpk-mixins/_utils.scss +17 -12
  21. package/bpk-stylesheets/index.scss +13 -14
  22. package/bpk-stylesheets/normalize.css +18 -422
  23. package/bpk-stylesheets/normalize.scss +422 -0
  24. package/package.json +1 -5
  25. package/unstable__bpk-mixins/_badges-v2.scss +0 -240
  26. package/unstable__bpk-mixins/_badges.scss +0 -240
  27. package/unstable__bpk-mixins/_borders.scss +0 -268
  28. package/unstable__bpk-mixins/_breakpoints.scss +0 -221
  29. package/unstable__bpk-mixins/_buttons.scss +0 -587
  30. package/unstable__bpk-mixins/_cards.scss +0 -94
  31. package/unstable__bpk-mixins/_chips.scss +0 -249
  32. package/unstable__bpk-mixins/_forms.scss +0 -1045
  33. package/unstable__bpk-mixins/_icons.scss +0 -88
  34. package/unstable__bpk-mixins/_index.scss +0 -38
  35. package/unstable__bpk-mixins/_layers.scss +0 -199
  36. package/unstable__bpk-mixins/_margins.scss +0 -75
  37. package/unstable__bpk-mixins/_panels.scss +0 -96
  38. package/unstable__bpk-mixins/_radii.scss +0 -80
  39. package/unstable__bpk-mixins/_scroll-indicators.scss +0 -79
  40. package/unstable__bpk-mixins/_shadows.scss +0 -58
  41. package/unstable__bpk-mixins/_spinners.scss +0 -102
  42. package/unstable__bpk-mixins/_tokens.scss +0 -19
  43. package/unstable__bpk-mixins/_typography.scss +0 -1225
  44. package/unstable__bpk-mixins/_utils.scss +0 -267
@@ -18,9 +18,9 @@
18
18
 
19
19
  /* stylelint-disable at-rule-disallowed-list */
20
20
 
21
- @import 'tokens.scss';
22
- @import 'typography.scss';
23
- @import 'utils.scss';
21
+ @use 'tokens';
22
+ @use 'typography';
23
+ @use 'utils';
24
24
 
25
25
  ////
26
26
  /// @group buttons
@@ -35,58 +35,58 @@
35
35
 
36
36
  @mixin bpk-button {
37
37
  display: inline-block;
38
- min-height: $bpk-button-height;
38
+ min-height: tokens.$bpk-button-height;
39
39
  margin: 0;
40
- padding: (6 * $bpk-one-pixel-rem) bpk-spacing-base();
40
+ padding: (6 * tokens.$bpk-one-pixel-rem) tokens.bpk-spacing-base();
41
41
  border: 0;
42
- border-radius: $bpk-button-border-radius;
42
+ border-radius: tokens.$bpk-button-border-radius;
43
43
  text-align: center;
44
44
  text-decoration: none;
45
45
  cursor: pointer;
46
46
  vertical-align: middle;
47
47
  user-select: none;
48
48
 
49
- @include bpk-label-1;
50
- @include bpk-themeable-property(
49
+ @include typography.bpk-label-1;
50
+ @include utils.bpk-themeable-property(
51
51
  color,
52
52
  --bpk-button-primary-text-color,
53
- $bpk-text-on-dark-day
53
+ tokens.$bpk-text-on-dark-day
54
54
  );
55
- @include bpk-themeable-property(
55
+ @include utils.bpk-themeable-property(
56
56
  background-color,
57
57
  --bpk-button-primary-background-color,
58
- $bpk-private-button-primary-normal-background-day
58
+ tokens.$bpk-private-button-primary-normal-background-day
59
59
  );
60
60
 
61
- @include bpk-hover {
62
- @include bpk-themeable-property(
61
+ @include utils.bpk-hover {
62
+ @include utils.bpk-themeable-property(
63
63
  color,
64
64
  --bpk-button-primary-hover-text-color,
65
- $bpk-text-on-dark-day
65
+ tokens.$bpk-text-on-dark-day
66
66
  );
67
- @include bpk-themeable-property(
67
+ @include utils.bpk-themeable-property(
68
68
  background-color,
69
69
  --bpk-button-primary-hover-background-color,
70
- $bpk-private-button-primary-pressed-background-day
70
+ tokens.$bpk-private-button-primary-pressed-background-day
71
71
  );
72
72
  }
73
73
 
74
74
  &:active {
75
- @include bpk-themeable-property(
75
+ @include utils.bpk-themeable-property(
76
76
  color,
77
77
  --bpk-button-primary-active-text-color,
78
- $bpk-text-on-dark-day
78
+ tokens.$bpk-text-on-dark-day
79
79
  );
80
- @include bpk-themeable-property(
80
+ @include utils.bpk-themeable-property(
81
81
  background-color,
82
82
  --bpk-button-primary-active-background-color,
83
- $bpk-private-button-primary-pressed-background-day
83
+ tokens.$bpk-private-button-primary-pressed-background-day
84
84
  );
85
85
  }
86
86
 
87
87
  &:disabled {
88
- background-color: $bpk-private-button-disabled-background-day;
89
- color: $bpk-text-disabled-day;
88
+ background-color: tokens.$bpk-private-button-disabled-background-day;
89
+ color: tokens.$bpk-text-disabled-day;
90
90
  cursor: not-allowed;
91
91
  }
92
92
  }
@@ -102,8 +102,8 @@
102
102
  /// }
103
103
 
104
104
  @mixin bpk-button--large {
105
- min-height: $bpk-button-large-height;
106
- padding: (12 * $bpk-one-pixel-rem) bpk-spacing-base();
105
+ min-height: tokens.$bpk-button-large-height;
106
+ padding: (12 * tokens.$bpk-one-pixel-rem) tokens.bpk-spacing-base();
107
107
  }
108
108
 
109
109
  /// PrimaryOnDark button. Modifies the bpk-button mixin.
@@ -117,46 +117,46 @@
117
117
  /// }
118
118
 
119
119
  @mixin bpk-button--primary-on-dark {
120
- @include bpk-themeable-property(
120
+ @include utils.bpk-themeable-property(
121
121
  color,
122
122
  --bpk-button-primary-on-dark-text-color,
123
- $bpk-text-on-light-day
123
+ tokens.$bpk-text-on-light-day
124
124
  );
125
- @include bpk-themeable-property(
125
+ @include utils.bpk-themeable-property(
126
126
  background-color,
127
127
  --bpk-button-primary-on-dark-background-color,
128
- $bpk-private-button-primary-on-dark-normal-background-day
128
+ tokens.$bpk-private-button-primary-on-dark-normal-background-day
129
129
  );
130
130
 
131
- @include bpk-hover {
132
- @include bpk-themeable-property(
131
+ @include utils.bpk-hover {
132
+ @include utils.bpk-themeable-property(
133
133
  color,
134
134
  --bpk-button-primary-on-dark-hover-text-color,
135
- $bpk-text-on-light-day
135
+ tokens.$bpk-text-on-light-day
136
136
  );
137
- @include bpk-themeable-property(
137
+ @include utils.bpk-themeable-property(
138
138
  background-color,
139
139
  --bpk-button-primary-on-dark-hover-background-color,
140
- $bpk-private-button-primary-on-dark-pressed-background-day
140
+ tokens.$bpk-private-button-primary-on-dark-pressed-background-day
141
141
  );
142
142
  }
143
143
 
144
144
  &:active {
145
- @include bpk-themeable-property(
145
+ @include utils.bpk-themeable-property(
146
146
  color,
147
147
  --bpk-button-primary-on-dark-active-text-color,
148
- $bpk-text-on-light-day
148
+ tokens.$bpk-text-on-light-day
149
149
  );
150
- @include bpk-themeable-property(
150
+ @include utils.bpk-themeable-property(
151
151
  background-color,
152
152
  --bpk-button-primary-on-dark-active-background-color,
153
- $bpk-private-button-primary-on-dark-pressed-background-day
153
+ tokens.$bpk-private-button-primary-on-dark-pressed-background-day
154
154
  );
155
155
  }
156
156
 
157
157
  &:disabled {
158
- background-color: $bpk-private-button-primary-on-dark-disabled-background-day;
159
- color: $bpk-private-button-primary-on-dark-disabled-foreground-day;
158
+ background-color: tokens.$bpk-private-button-primary-on-dark-disabled-background-day;
159
+ color: tokens.$bpk-private-button-primary-on-dark-disabled-foreground-day;
160
160
  }
161
161
  }
162
162
 
@@ -171,46 +171,46 @@
171
171
  /// }
172
172
 
173
173
  @mixin bpk-button--primary-on-light {
174
- @include bpk-themeable-property(
174
+ @include utils.bpk-themeable-property(
175
175
  color,
176
176
  --bpk-button-primary-on-light-text-color,
177
- $bpk-text-on-dark-night
177
+ tokens.$bpk-text-on-dark-night
178
178
  );
179
- @include bpk-themeable-property(
179
+ @include utils.bpk-themeable-property(
180
180
  background-color,
181
181
  --bpk-button-primary-on-light-background-color,
182
- $bpk-private-button-primary-on-light-normal-background-day
182
+ tokens.$bpk-private-button-primary-on-light-normal-background-day
183
183
  );
184
184
 
185
- @include bpk-hover {
186
- @include bpk-themeable-property(
185
+ @include utils.bpk-hover {
186
+ @include utils.bpk-themeable-property(
187
187
  color,
188
188
  --bpk-button-primary-on-light-hover-text-color,
189
- $bpk-text-on-dark-night
189
+ tokens.$bpk-text-on-dark-night
190
190
  );
191
- @include bpk-themeable-property(
191
+ @include utils.bpk-themeable-property(
192
192
  background-color,
193
193
  --bpk-button-primary-on-light-hover-background-color,
194
- $bpk-private-button-primary-on-light-pressed-background-day
194
+ tokens.$bpk-private-button-primary-on-light-pressed-background-day
195
195
  );
196
196
  }
197
197
 
198
198
  &:active {
199
- @include bpk-themeable-property(
199
+ @include utils.bpk-themeable-property(
200
200
  color,
201
201
  --bpk-button-primary-on-light-active-text-color,
202
- $bpk-text-on-dark-night
202
+ tokens.$bpk-text-on-dark-night
203
203
  );
204
- @include bpk-themeable-property(
204
+ @include utils.bpk-themeable-property(
205
205
  background-color,
206
206
  --bpk-button-primary-on-light-active-background-color,
207
- $bpk-private-button-primary-on-light-pressed-background-day
207
+ tokens.$bpk-private-button-primary-on-light-pressed-background-day
208
208
  );
209
209
  }
210
210
 
211
211
  &:disabled {
212
- background-color: $bpk-private-button-primary-on-light-disabled-background-day;
213
- color: $bpk-private-button-primary-on-light-disabled-foreground-day;
212
+ background-color: tokens.$bpk-private-button-primary-on-light-disabled-background-day;
213
+ color: tokens.$bpk-private-button-primary-on-light-disabled-foreground-day;
214
214
  }
215
215
  }
216
216
 
@@ -225,46 +225,46 @@
225
225
  /// }
226
226
 
227
227
  @mixin bpk-button--secondary {
228
- @include bpk-themeable-property(
228
+ @include utils.bpk-themeable-property(
229
229
  color,
230
230
  --bpk-button-secondary-text-color,
231
- $bpk-text-primary-day
231
+ tokens.$bpk-text-primary-day
232
232
  );
233
- @include bpk-themeable-property(
233
+ @include utils.bpk-themeable-property(
234
234
  background-color,
235
235
  --bpk-button-secondary-background-color,
236
- $bpk-private-button-secondary-normal-background-day
236
+ tokens.$bpk-private-button-secondary-normal-background-day
237
237
  );
238
238
 
239
- @include bpk-hover {
240
- @include bpk-themeable-property(
239
+ @include utils.bpk-hover {
240
+ @include utils.bpk-themeable-property(
241
241
  color,
242
242
  --bpk-button-secondary-hover-text-color,
243
- $bpk-text-primary-day
243
+ tokens.$bpk-text-primary-day
244
244
  );
245
- @include bpk-themeable-property(
245
+ @include utils.bpk-themeable-property(
246
246
  background-color,
247
247
  --bpk-button-secondary-hover-background-color,
248
- $bpk-private-button-secondary-pressed-background-day
248
+ tokens.$bpk-private-button-secondary-pressed-background-day
249
249
  );
250
250
  }
251
251
 
252
252
  &:active {
253
- @include bpk-themeable-property(
253
+ @include utils.bpk-themeable-property(
254
254
  color,
255
255
  --bpk-button-secondary-active-text-color,
256
- $bpk-text-primary-day
256
+ tokens.$bpk-text-primary-day
257
257
  );
258
- @include bpk-themeable-property(
258
+ @include utils.bpk-themeable-property(
259
259
  background-color,
260
260
  --bpk-button-secondary-active-background-color,
261
- $bpk-private-button-secondary-pressed-background-day
261
+ tokens.$bpk-private-button-secondary-pressed-background-day
262
262
  );
263
263
  }
264
264
 
265
265
  &:disabled {
266
- background-color: $bpk-private-button-disabled-background-day;
267
- color: $bpk-text-disabled-day;
266
+ background-color: tokens.$bpk-private-button-disabled-background-day;
267
+ color: tokens.$bpk-text-disabled-day;
268
268
  }
269
269
  }
270
270
 
@@ -279,46 +279,46 @@
279
279
  /// }
280
280
 
281
281
  @mixin bpk-button--secondary-on-dark {
282
- @include bpk-themeable-property(
282
+ @include utils.bpk-themeable-property(
283
283
  color,
284
284
  --bpk-button-secondary-on-dark-text-color,
285
- $bpk-text-on-dark-day
285
+ tokens.$bpk-text-on-dark-day
286
286
  );
287
- @include bpk-themeable-property(
287
+ @include utils.bpk-themeable-property(
288
288
  background-color,
289
289
  --bpk-button-secondary-on-dark-background-color,
290
- $bpk-private-button-secondary-on-dark-normal-background-day
290
+ tokens.$bpk-private-button-secondary-on-dark-normal-background-day
291
291
  );
292
292
 
293
- @include bpk-hover {
294
- @include bpk-themeable-property(
293
+ @include utils.bpk-hover {
294
+ @include utils.bpk-themeable-property(
295
295
  color,
296
296
  --bpk-button-secondary-on-dark-hover-text-color,
297
- $bpk-text-on-dark-day
297
+ tokens.$bpk-text-on-dark-day
298
298
  );
299
- @include bpk-themeable-property(
299
+ @include utils.bpk-themeable-property(
300
300
  background-color,
301
301
  --bpk-button-secondary-on-dark-hover-background-color,
302
- $bpk-private-button-secondary-on-dark-pressed-background-day
302
+ tokens.$bpk-private-button-secondary-on-dark-pressed-background-day
303
303
  );
304
304
  }
305
305
 
306
306
  &:active {
307
- @include bpk-themeable-property(
307
+ @include utils.bpk-themeable-property(
308
308
  color,
309
309
  --bpk-button-secondary-on-dark-active-text-color,
310
- $bpk-text-on-dark-day
310
+ tokens.$bpk-text-on-dark-day
311
311
  );
312
- @include bpk-themeable-property(
312
+ @include utils.bpk-themeable-property(
313
313
  background-color,
314
314
  --bpk-button-secondary-on-dark-active-background-color,
315
- $bpk-private-button-secondary-on-dark-pressed-background-day
315
+ tokens.$bpk-private-button-secondary-on-dark-pressed-background-day
316
316
  );
317
317
  }
318
318
 
319
319
  &:disabled {
320
- background-color: $bpk-private-button-secondary-on-dark-disabled-background-day;
321
- color: $bpk-private-button-secondary-on-dark-disabled-foreground-day;
320
+ background-color: tokens.$bpk-private-button-secondary-on-dark-disabled-background-day;
321
+ color: tokens.$bpk-private-button-secondary-on-dark-disabled-foreground-day;
322
322
  }
323
323
  }
324
324
 
@@ -335,46 +335,46 @@
335
335
  /// }
336
336
 
337
337
  @mixin bpk-button--destructive {
338
- @include bpk-themeable-property(
338
+ @include utils.bpk-themeable-property(
339
339
  color,
340
340
  --bpk-button-destructive-text-color,
341
- $bpk-private-button-destructive-normal-foreground-day
341
+ tokens.$bpk-private-button-destructive-normal-foreground-day
342
342
  );
343
- @include bpk-themeable-property(
343
+ @include utils.bpk-themeable-property(
344
344
  background-color,
345
345
  --bpk-button-destructive-background-color,
346
- $bpk-private-button-destructive-normal-background-day
346
+ tokens.$bpk-private-button-destructive-normal-background-day
347
347
  );
348
348
 
349
- @include bpk-hover {
350
- @include bpk-themeable-property(
349
+ @include utils.bpk-hover {
350
+ @include utils.bpk-themeable-property(
351
351
  color,
352
352
  --bpk-button-destructive-hover-text-color,
353
- $bpk-text-primary-inverse-day
353
+ tokens.$bpk-text-primary-inverse-day
354
354
  );
355
- @include bpk-themeable-property(
355
+ @include utils.bpk-themeable-property(
356
356
  background-color,
357
357
  --bpk-button-destructive-hover-background-color,
358
- $bpk-private-button-destructive-pressed-background-day
358
+ tokens.$bpk-private-button-destructive-pressed-background-day
359
359
  );
360
360
  }
361
361
 
362
362
  &:active {
363
- @include bpk-themeable-property(
363
+ @include utils.bpk-themeable-property(
364
364
  color,
365
365
  --bpk-button-destructive-active-text-color,
366
- $bpk-text-primary-inverse-day
366
+ tokens.$bpk-text-primary-inverse-day
367
367
  );
368
- @include bpk-themeable-property(
368
+ @include utils.bpk-themeable-property(
369
369
  background-color,
370
370
  --bpk-button-destructive-active-background-color,
371
- $bpk-private-button-destructive-pressed-background-day
371
+ tokens.$bpk-private-button-destructive-pressed-background-day
372
372
  );
373
373
  }
374
374
 
375
375
  &:disabled {
376
- background-color: $bpk-private-button-disabled-background-day;
377
- color: $bpk-text-disabled-day;
376
+ background-color: tokens.$bpk-private-button-disabled-background-day;
377
+ color: tokens.$bpk-text-disabled-day;
378
378
  }
379
379
  }
380
380
 
@@ -389,36 +389,36 @@
389
389
  /// }
390
390
 
391
391
  @mixin bpk-button--link {
392
- $vertical-padding: $bpk-one-pixel-rem * 6;
393
- $vertical-padding-large: $bpk-one-pixel-rem * 12;
392
+ $vertical-padding: tokens.$bpk-one-pixel-rem * 6;
393
+ $vertical-padding-large: tokens.$bpk-one-pixel-rem * 12;
394
394
 
395
395
  background: none; /* stylelint-disable-line order/order, order/properties-order */
396
396
  box-shadow: none;
397
397
 
398
- @include bpk-link--implicit;
398
+ @include typography.bpk-link--implicit;
399
399
 
400
400
  &::after {
401
401
  bottom: auto;
402
402
  }
403
403
 
404
404
  padding: $vertical-padding 0; /* stylelint-disable-line order/order, order/properties-order */
405
- color: $bpk-private-button-link-normal-foreground-day;
405
+ color: tokens.$bpk-private-button-link-normal-foreground-day;
406
406
 
407
- @include bpk-hover {
407
+ @include utils.bpk-hover {
408
408
  background: none;
409
- color: $bpk-private-button-link-pressed-foreground-day;
409
+ color: tokens.$bpk-private-button-link-pressed-foreground-day;
410
410
  text-decoration: none;
411
411
  }
412
412
 
413
413
  &:active {
414
414
  background: none;
415
- color: $bpk-private-button-link-pressed-foreground-day;
415
+ color: tokens.$bpk-private-button-link-pressed-foreground-day;
416
416
  text-decoration: none;
417
417
  }
418
418
 
419
419
  &:disabled {
420
420
  background: none;
421
- color: $bpk-text-disabled-day;
421
+ color: tokens.$bpk-text-disabled-day;
422
422
  text-decoration: none;
423
423
  }
424
424
 
@@ -439,41 +439,41 @@
439
439
 
440
440
  @mixin bpk-button--link-on-dark {
441
441
  @include bpk-button--link;
442
- @include bpk-themeable-property(
442
+ @include utils.bpk-themeable-property(
443
443
  color,
444
444
  --bpk-button-link-on-dark-text-color,
445
- $bpk-private-button-link-on-dark-normal-foreground-day
445
+ tokens.$bpk-private-button-link-on-dark-normal-foreground-day
446
446
  );
447
447
 
448
- @include bpk-hover {
449
- @include bpk-themeable-property(
448
+ @include utils.bpk-hover {
449
+ @include utils.bpk-themeable-property(
450
450
  color,
451
451
  --bpk-button-link-on-dark-hover-text-color,
452
- $bpk-private-button-link-on-dark-pressed-foreground-day
452
+ tokens.$bpk-private-button-link-on-dark-pressed-foreground-day
453
453
  );
454
454
  }
455
455
 
456
456
  &:active {
457
- @include bpk-themeable-property(
457
+ @include utils.bpk-themeable-property(
458
458
  color,
459
459
  --bpk-button-link-on-dark-active-text-color,
460
- $bpk-private-button-link-on-dark-pressed-foreground-day
460
+ tokens.$bpk-private-button-link-on-dark-pressed-foreground-day
461
461
  );
462
462
  }
463
463
 
464
464
  &:visited {
465
- @include bpk-themeable-property(
465
+ @include utils.bpk-themeable-property(
466
466
  color,
467
467
  --bpk-button-link-on-dark-text-color,
468
- $bpk-private-button-link-on-dark-normal-foreground-day
468
+ tokens.$bpk-private-button-link-on-dark-normal-foreground-day
469
469
  );
470
470
  }
471
471
 
472
472
  &:disabled {
473
- @include bpk-themeable-property(
473
+ @include utils.bpk-themeable-property(
474
474
  color,
475
475
  --bpk-button-link-on-dark-disabled-color,
476
- $bpk-private-button-link-on-dark-disabled-foreground-day
476
+ tokens.$bpk-private-button-link-on-dark-disabled-foreground-day
477
477
  );
478
478
  }
479
479
  }
@@ -489,11 +489,12 @@
489
489
  /// }
490
490
 
491
491
  @mixin bpk-button--icon-only {
492
- $horizontal-padding: ($bpk-button-height - $bpk-icon-size-sm) / 2; // extra padding so that the width will be the same size as the size using sm icons
492
+ $horizontal-padding: (tokens.$bpk-button-height - tokens.$bpk-icon-size-sm) *
493
+ 0.5; // extra padding so that the width will be the same size as the size using sm icons
493
494
 
494
495
  padding-right: $horizontal-padding;
495
496
  padding-left: $horizontal-padding;
496
- border-radius: $bpk-button-border-radius;
497
+ border-radius: tokens.$bpk-button-border-radius;
497
498
  }
498
499
 
499
500
  /// Large icon-only button. Modifies the bpk-button & bpk-button--large lib.
@@ -509,11 +510,14 @@
509
510
  /// }
510
511
 
511
512
  @mixin bpk-button--large-icon-only {
512
- $horizontal-padding: ($bpk-button-large-height - $bpk-icon-size-lg) / 2; // extra padding so that the width will be the same size as the size using lg icons
513
+ $horizontal-padding: (
514
+ tokens.$bpk-button-large-height - tokens.$bpk-icon-size-lg
515
+ ) *
516
+ 0.5; // extra padding so that the width will be the same size as the size using lg icons
513
517
 
514
518
  padding-right: $horizontal-padding;
515
519
  padding-left: $horizontal-padding;
516
- border-radius: $bpk-button-border-radius;
520
+ border-radius: tokens.$bpk-button-border-radius;
517
521
  }
518
522
 
519
523
  /// Featured button. Modifies the bpk-button
@@ -528,46 +532,46 @@
528
532
  /// }
529
533
 
530
534
  @mixin bpk-button--featured {
531
- @include bpk-themeable-property(
535
+ @include utils.bpk-themeable-property(
532
536
  color,
533
537
  --bpk-button-featured-text-color,
534
- $bpk-text-primary-inverse-day
538
+ tokens.$bpk-text-primary-inverse-day
535
539
  );
536
- @include bpk-themeable-property(
540
+ @include utils.bpk-themeable-property(
537
541
  background-color,
538
542
  --bpk-button-featured-background-color,
539
- $bpk-private-button-featured-normal-background-day
543
+ tokens.$bpk-private-button-featured-normal-background-day
540
544
  );
541
545
 
542
- @include bpk-hover {
543
- @include bpk-themeable-property(
546
+ @include utils.bpk-hover {
547
+ @include utils.bpk-themeable-property(
544
548
  color,
545
549
  --bpk-button-featured-hover-text-color,
546
- $bpk-text-primary-inverse-day
550
+ tokens.$bpk-text-primary-inverse-day
547
551
  );
548
- @include bpk-themeable-property(
552
+ @include utils.bpk-themeable-property(
549
553
  background-color,
550
554
  --bpk-button-featured-hover-background-color,
551
- $bpk-private-button-featured-pressed-background-day
555
+ tokens.$bpk-private-button-featured-pressed-background-day
552
556
  );
553
557
  }
554
558
 
555
559
  &:active {
556
- @include bpk-themeable-property(
560
+ @include utils.bpk-themeable-property(
557
561
  color,
558
562
  --bpk-button-featured-active-text-color,
559
- $bpk-text-primary-inverse-day
563
+ tokens.$bpk-text-primary-inverse-day
560
564
  );
561
- @include bpk-themeable-property(
565
+ @include utils.bpk-themeable-property(
562
566
  background-color,
563
567
  --bpk-button-featured-active-background-color,
564
- $bpk-private-button-featured-pressed-background-day
568
+ tokens.$bpk-private-button-featured-pressed-background-day
565
569
  );
566
570
  }
567
571
 
568
572
  &:disabled {
569
- background-color: $bpk-private-button-disabled-background-day;
570
- color: $bpk-text-disabled-day;
573
+ background-color: tokens.$bpk-private-button-disabled-background-day;
574
+ color: tokens.$bpk-text-disabled-day;
571
575
  }
572
576
  }
573
577
 
@@ -18,10 +18,10 @@
18
18
 
19
19
  /* stylelint-disable at-rule-disallowed-list */
20
20
 
21
- @import 'tokens.scss';
22
- @import 'radii.scss';
23
- @import 'shadows.scss';
24
- @import 'utils.scss';
21
+ @use 'tokens';
22
+ @use 'radii';
23
+ @use 'shadows';
24
+ @use 'utils';
25
25
 
26
26
  ////
27
27
  /// @group cards
@@ -37,15 +37,15 @@
37
37
  @mixin bpk-card {
38
38
  position: relative;
39
39
  display: block;
40
- background-color: $bpk-card-background-color;
41
- color: $bpk-text-primary-day;
40
+ background-color: tokens.$bpk-card-background-color;
41
+ color: tokens.$bpk-text-primary-day;
42
42
  text-decoration: none;
43
43
  cursor: pointer;
44
44
 
45
- @include bpk-box-shadow-sm;
46
- @include bpk-border-radius-md;
45
+ @include shadows.bpk-box-shadow-sm;
46
+ @include radii.bpk-border-radius-md;
47
47
 
48
- @include bpk-hover {
48
+ @include utils.bpk-hover {
49
49
  &::after {
50
50
  opacity: 1;
51
51
  }
@@ -61,12 +61,12 @@
61
61
  bottom: 0;
62
62
  left: 0;
63
63
  content: '';
64
- transition: opacity $bpk-duration-sm ease-in-out;
64
+ transition: opacity tokens.$bpk-duration-sm ease-in-out;
65
65
  opacity: 0;
66
66
  pointer-events: none; // To prevent the pseudo element absorbing click events
67
67
 
68
- @include bpk-box-shadow-lg;
69
- @include bpk-border-radius-md;
68
+ @include shadows.bpk-box-shadow-lg;
69
+ @include radii.bpk-border-radius-md;
70
70
 
71
71
  // pointer-events doesn't work on ie
72
72
  @media screen\0 {
@@ -90,5 +90,5 @@
90
90
  /// }
91
91
 
92
92
  @mixin bpk-card--padded {
93
- padding: $bpk-card-padding;
93
+ padding: tokens.$bpk-card-padding;
94
94
  }