barbican-reset 2.27.0 → 2.29.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.
- package/helpers/mixins/_buttons.scss +25 -18
- package/helpers/mixins/buttons/_outline.scss +3 -14
- package/helpers/mixins/buttons/_setup.scss +13 -13
- package/helpers/mixins/buttons/_solid.scss +0 -11
- package/helpers/mixins/buttons/_spektrix.scss +1 -1
- package/package.json +1 -1
- package/scss/_btn.scss +4 -0
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
@include outline-button($color: white,
|
|
78
78
|
$background: $c-brand-generic,
|
|
79
79
|
$border: 0.125rem,
|
|
80
|
-
$display: "flex"
|
|
81
80
|
);
|
|
81
|
+
@include flex-button;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
@mixin btn-input-edit {
|
|
@@ -194,7 +194,8 @@
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
@mixin btn-cta {
|
|
197
|
-
@include solid-button($background: $c-grey-l21
|
|
197
|
+
@include solid-button($background: $c-grey-l21);
|
|
198
|
+
@include flex-button;
|
|
198
199
|
fill: white;
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -230,12 +231,12 @@
|
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
@mixin btn-menu {
|
|
233
|
-
@include display-button(flex, 0.75);
|
|
234
234
|
@include outline-button($color: white,
|
|
235
235
|
$background: $c-brand-generic,
|
|
236
236
|
$padding: 0 0.75rem,
|
|
237
237
|
$margin: 0.25rem,
|
|
238
238
|
$line-height: 2.375rem);
|
|
239
|
+
@include flex-button($gap: 0.75rem);
|
|
239
240
|
vertical-align: middle;
|
|
240
241
|
min-height: 2.5rem;
|
|
241
242
|
|
|
@@ -249,12 +250,12 @@
|
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
@mixin btn-basket {
|
|
252
|
-
@include display-button(flex, 0.5);
|
|
253
253
|
@include solid-button($background: white,
|
|
254
254
|
$color: $c-brand-generic,
|
|
255
255
|
$padding: 0 0.75rem,
|
|
256
256
|
$margin: 0.25rem,
|
|
257
257
|
$line-height: 2.375rem);
|
|
258
|
+
@include flex-button($gap: 0.5rem);
|
|
258
259
|
vertical-align: middle;
|
|
259
260
|
min-height: 2.5rem;
|
|
260
261
|
|
|
@@ -268,8 +269,8 @@
|
|
|
268
269
|
}
|
|
269
270
|
|
|
270
271
|
@mixin btn-discover {
|
|
271
|
-
@include display-button(flex, 0.75);
|
|
272
272
|
@include outline-button(white, $c-grey-l21);
|
|
273
|
+
@include flex-button($gap: 0.75rem);
|
|
273
274
|
|
|
274
275
|
span {
|
|
275
276
|
position: relative;
|
|
@@ -286,30 +287,33 @@
|
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
// Access Overlay Work -- Start
|
|
290
|
-
|
|
291
290
|
@mixin btn-membership-pill {
|
|
292
|
-
$
|
|
291
|
+
@include outline-button($c-grey-l11, white);
|
|
293
292
|
|
|
294
|
-
|
|
293
|
+
$border: 1px solid $c-grey-l11;
|
|
295
294
|
|
|
296
|
-
|
|
297
|
-
@include outline-button-focus($
|
|
295
|
+
&:hover {
|
|
296
|
+
@include outline-button-focus($c-grey-l87, $c-grey-l11, $border);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@include focus-visible {
|
|
300
|
+
@include outline-button-focus($c-grey-l87, $c-grey-l11, $border);
|
|
301
|
+
outline: $border;
|
|
298
302
|
}
|
|
299
303
|
|
|
300
304
|
&[data-status="active"] {
|
|
301
|
-
@include outline-button-focus($
|
|
305
|
+
@include outline-button-focus($c-grey-l11, white, $border);
|
|
302
306
|
}
|
|
303
307
|
}
|
|
304
308
|
|
|
305
309
|
@mixin btn-priority-row {
|
|
306
310
|
@include btn-outline-primary;
|
|
307
|
-
@include
|
|
311
|
+
@include flex-button($gap: 0.5rem);
|
|
308
312
|
}
|
|
309
313
|
|
|
310
314
|
@mixin btn-login-to-book {
|
|
311
|
-
@include display-button(flex, 0.5);
|
|
312
315
|
@include btn-primary;
|
|
316
|
+
@include flex-button($gap: 0.5rem);
|
|
313
317
|
justify-content: center;
|
|
314
318
|
min-width: initial;
|
|
315
319
|
|
|
@@ -320,23 +324,26 @@
|
|
|
320
324
|
}
|
|
321
325
|
|
|
322
326
|
@mixin btn-sold-out {
|
|
323
|
-
@include display-button(flex, 0.5);
|
|
324
327
|
@include btn-secondary;
|
|
328
|
+
@include flex-button($gap: 0.5rem);
|
|
325
329
|
pointer-events: none;
|
|
326
330
|
min-width: initial;
|
|
327
331
|
}
|
|
328
332
|
|
|
329
333
|
@mixin btn-add-membership-to-basket {
|
|
330
334
|
@include solid-button($background: $c-brand-membership);
|
|
331
|
-
@include
|
|
335
|
+
@include flex-button($gap: 0.5rem);
|
|
332
336
|
}
|
|
333
337
|
|
|
334
338
|
@mixin btn-remove-membership-from-basket {
|
|
335
339
|
@include solid-button($background: $c-status-error);
|
|
336
|
-
@include
|
|
340
|
+
@include flex-button($gap: 0.5rem);
|
|
337
341
|
}
|
|
338
342
|
|
|
339
|
-
|
|
343
|
+
@mixin btn-additional-information {
|
|
344
|
+
@include btn-outline-primary;
|
|
345
|
+
@include flex-button($gap: 0.5rem);
|
|
346
|
+
}
|
|
340
347
|
|
|
341
348
|
@mixin btn-expand {
|
|
342
349
|
display: block;
|
|
@@ -4,22 +4,11 @@
|
|
|
4
4
|
$padding: false,
|
|
5
5
|
$margin: false,
|
|
6
6
|
$line-height: false,
|
|
7
|
-
$display: false,
|
|
8
7
|
$font-size: false) {
|
|
9
8
|
background-color: $background;
|
|
10
9
|
border: $border solid $color;
|
|
11
10
|
color: $color;
|
|
12
11
|
|
|
13
|
-
@if $display {
|
|
14
|
-
@if $padding {
|
|
15
|
-
@include display-button($display, $padding * 0.625);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@else {
|
|
19
|
-
@include display-button($display, 0.625);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
@if $line-height {
|
|
24
13
|
line-height: $line-height;
|
|
25
14
|
}
|
|
@@ -41,15 +30,15 @@
|
|
|
41
30
|
}
|
|
42
31
|
|
|
43
32
|
@include focus {
|
|
44
|
-
@include outline-button-focus($color, $background, $border)
|
|
33
|
+
@include outline-button-focus($color, $background, 1px solid $border)
|
|
45
34
|
}
|
|
46
35
|
}
|
|
47
36
|
|
|
48
|
-
@mixin outline-button-focus($color: $c-brand-generic, $background: white, $border: 1px) {
|
|
49
|
-
border: $border solid $color;
|
|
37
|
+
@mixin outline-button-focus($color: $c-brand-generic, $background: white, $border: 1px solid $c-brand-generic) {
|
|
50
38
|
background-color: $color;
|
|
51
39
|
color: $background;
|
|
52
40
|
box-shadow: none;
|
|
41
|
+
border: $border;
|
|
53
42
|
outline: none;
|
|
54
43
|
|
|
55
44
|
path {
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
@mixin display-button
|
|
54
|
-
@if $display =="ib" {
|
|
55
|
-
vertical-align: middle;
|
|
56
|
-
display: inline-block;
|
|
53
|
+
// deprecated: @mixin display-button
|
|
57
54
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
@mixin flex-button($gap: 1rem) {
|
|
56
|
+
display: inline-flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: $gap;
|
|
59
|
+
}
|
|
63
60
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
@mixin inline-block-button() {
|
|
62
|
+
vertical-align: middle;
|
|
63
|
+
display: inline-block;
|
|
64
|
+
|
|
65
|
+
>* {
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
display: inline-block;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -4,22 +4,11 @@
|
|
|
4
4
|
$padding: false,
|
|
5
5
|
$margin: false,
|
|
6
6
|
$line-height: false,
|
|
7
|
-
$display: false,
|
|
8
7
|
$font-size: false) {
|
|
9
8
|
border: $border solid $background;
|
|
10
9
|
background-color: $background;
|
|
11
10
|
color: $color;
|
|
12
11
|
|
|
13
|
-
@if $display {
|
|
14
|
-
@if $padding {
|
|
15
|
-
@include display-button($display, $padding * 0.625);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@else {
|
|
19
|
-
@include display-button($display, 0.625);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
12
|
@if $line-height {
|
|
24
13
|
line-height: $line-height;
|
|
25
14
|
}
|
package/package.json
CHANGED