barbican-reset 2.2.4 → 2.2.6
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 +67 -46
- package/helpers/variables/_layout.scss +6 -1
- package/package.json +9 -9
- package/scss/_btn.scss +6 -1
|
@@ -5,16 +5,21 @@
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
@mixin button
|
|
8
|
+
@mixin small-button {
|
|
9
|
+
padding: $padding-button-xs;
|
|
10
|
+
font-size: $font-size-sm;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin setup-button {
|
|
9
14
|
-webkit-font-smoothing: antialiased;
|
|
10
15
|
-moz-osx-font-smoothing: grayscale;
|
|
11
16
|
border-radius: $border-radius-lg;
|
|
17
|
+
padding: $padding-button-lg;
|
|
12
18
|
text-decoration: none;
|
|
13
19
|
text-align: center;
|
|
14
20
|
font-weight: 700;
|
|
15
21
|
transition: none;
|
|
16
22
|
line-height: 1;
|
|
17
|
-
padding: 1rem;
|
|
18
23
|
|
|
19
24
|
&:focus {
|
|
20
25
|
box-shadow: none;
|
|
@@ -22,12 +27,12 @@
|
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
&[slim] {
|
|
25
|
-
padding:
|
|
30
|
+
padding: $padding-button-sm;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
33
|
&[large] {
|
|
29
|
-
padding-bottom:
|
|
30
|
-
padding-top:
|
|
34
|
+
padding-bottom: $padding-button-md;
|
|
35
|
+
padding-top: $padding-button-md;
|
|
31
36
|
font-size: 1.125rem;
|
|
32
37
|
}
|
|
33
38
|
|
|
@@ -36,8 +41,8 @@
|
|
|
36
41
|
}
|
|
37
42
|
}
|
|
38
43
|
|
|
39
|
-
@mixin button
|
|
40
|
-
@if $display ==
|
|
44
|
+
@mixin display-button($display: "ib", $gap: 1) {
|
|
45
|
+
@if $display == "ib" {
|
|
41
46
|
vertical-align: middle;
|
|
42
47
|
display: inline-block;
|
|
43
48
|
|
|
@@ -45,14 +50,14 @@
|
|
|
45
50
|
vertical-align: middle;
|
|
46
51
|
display: inline-block;
|
|
47
52
|
}
|
|
48
|
-
} @else if $display ==
|
|
53
|
+
} @else if $display == "flex" {
|
|
49
54
|
display: inline-flex;
|
|
50
55
|
align-items: center;
|
|
51
56
|
gap: #{$gap}rem;
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
|
|
55
|
-
@mixin button
|
|
60
|
+
@mixin solid-button(
|
|
56
61
|
$background: $c-brand-generic,
|
|
57
62
|
$color: $white,
|
|
58
63
|
$border: 1px,
|
|
@@ -68,9 +73,9 @@
|
|
|
68
73
|
|
|
69
74
|
@if $display {
|
|
70
75
|
@if $padding {
|
|
71
|
-
@include button
|
|
76
|
+
@include display-button($display, $padding * 0.625);
|
|
72
77
|
} @else {
|
|
73
|
-
@include button
|
|
78
|
+
@include display-button($display, 0.625);
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
|
|
@@ -103,7 +108,7 @@
|
|
|
103
108
|
}
|
|
104
109
|
}
|
|
105
110
|
|
|
106
|
-
@mixin button
|
|
111
|
+
@mixin outline-button(
|
|
107
112
|
$color: $c-brand-generic,
|
|
108
113
|
$background: $white,
|
|
109
114
|
$border: 1px,
|
|
@@ -119,9 +124,9 @@
|
|
|
119
124
|
|
|
120
125
|
@if $display {
|
|
121
126
|
@if $padding {
|
|
122
|
-
@include button
|
|
127
|
+
@include display-button($display, $padding * 0.625);
|
|
123
128
|
} @else {
|
|
124
|
-
@include button
|
|
129
|
+
@include display-button($display, 0.625);
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
|
|
@@ -155,7 +160,7 @@
|
|
|
155
160
|
}
|
|
156
161
|
}
|
|
157
162
|
|
|
158
|
-
@mixin button
|
|
163
|
+
@mixin link-button(
|
|
159
164
|
$color: inherit,
|
|
160
165
|
$background: transparent,
|
|
161
166
|
$padding: 0,
|
|
@@ -176,18 +181,24 @@
|
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
|
|
184
|
+
@mixin invisible-button {
|
|
185
|
+
background-color: transparent;
|
|
186
|
+
border: none;
|
|
187
|
+
padding: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
179
190
|
@mixin btn-primary {
|
|
180
|
-
@include button
|
|
191
|
+
@include solid-button;
|
|
181
192
|
min-width: 8rem;
|
|
182
193
|
|
|
183
|
-
&[disabled=
|
|
184
|
-
@include button
|
|
194
|
+
&[disabled="disabled"] {
|
|
195
|
+
@include solid-button($c-grey-l21);
|
|
185
196
|
cursor: not-allowed;
|
|
186
197
|
}
|
|
187
198
|
}
|
|
188
199
|
|
|
189
200
|
@mixin btn-returns {
|
|
190
|
-
@include button
|
|
201
|
+
@include solid-button($padding: 0.75em, $font-size: $font-size-sm);
|
|
191
202
|
|
|
192
203
|
@include disabled {
|
|
193
204
|
@include btn-outline-secondary;
|
|
@@ -195,32 +206,32 @@
|
|
|
195
206
|
}
|
|
196
207
|
|
|
197
208
|
@mixin btn-outline-primary {
|
|
198
|
-
@include button
|
|
209
|
+
@include outline-button;
|
|
199
210
|
}
|
|
200
211
|
|
|
201
212
|
@mixin btn-resale {
|
|
202
|
-
@include button
|
|
213
|
+
@include outline-button($padding: 0.625em, $font-size: $font-size-sm);
|
|
203
214
|
}
|
|
204
215
|
|
|
205
216
|
@mixin btn-secondary {
|
|
206
|
-
@include button
|
|
217
|
+
@include solid-button($c-grey-l21);
|
|
207
218
|
}
|
|
208
219
|
|
|
209
220
|
@mixin btn-outline-secondary {
|
|
210
|
-
@include button
|
|
221
|
+
@include outline-button($c-grey-l21);
|
|
211
222
|
}
|
|
212
223
|
|
|
213
224
|
@mixin btn-outline-header {
|
|
214
|
-
@include button
|
|
225
|
+
@include outline-button(
|
|
215
226
|
$color: $white,
|
|
216
227
|
$background: $c-brand-generic,
|
|
217
228
|
$border: 0.125rem,
|
|
218
|
-
$display:
|
|
229
|
+
$display: "flex"
|
|
219
230
|
);
|
|
220
231
|
}
|
|
221
232
|
|
|
222
233
|
@mixin btn-input-edit {
|
|
223
|
-
@include button
|
|
234
|
+
@include outline-button($c-grey-l44);
|
|
224
235
|
background-color: $c-grey-l87;
|
|
225
236
|
border-bottom-left-radius: 0;
|
|
226
237
|
border-top-left-radius: 0;
|
|
@@ -229,31 +240,31 @@
|
|
|
229
240
|
}
|
|
230
241
|
|
|
231
242
|
@mixin btn-cinema {
|
|
232
|
-
@include button
|
|
243
|
+
@include solid-button($c-brand-cinema);
|
|
233
244
|
}
|
|
234
245
|
|
|
235
246
|
@mixin btn-power {
|
|
236
|
-
@include button
|
|
247
|
+
@include solid-button($c-power-blue);
|
|
237
248
|
}
|
|
238
249
|
|
|
239
250
|
@mixin btn-power-login {
|
|
240
|
-
@include button
|
|
251
|
+
@include solid-button($background: $white, $color: $c-power-blue);
|
|
241
252
|
}
|
|
242
253
|
|
|
243
254
|
@mixin btn-info {
|
|
244
|
-
@include button
|
|
255
|
+
@include solid-button($c-status-neutral);
|
|
245
256
|
}
|
|
246
257
|
|
|
247
258
|
@mixin btn-outline-info {
|
|
248
|
-
@include button
|
|
259
|
+
@include outline-button($c-status-neutral);
|
|
249
260
|
}
|
|
250
261
|
|
|
251
262
|
@mixin btn-outline-cinema {
|
|
252
|
-
@include button
|
|
263
|
+
@include outline-button($c-brand-cinema);
|
|
253
264
|
}
|
|
254
265
|
|
|
255
266
|
@mixin btn-remove {
|
|
256
|
-
@include button
|
|
267
|
+
@include solid-button(
|
|
257
268
|
$background: $c-grey-l21,
|
|
258
269
|
$padding: 0.625em,
|
|
259
270
|
$line-height: 1.375
|
|
@@ -261,14 +272,14 @@
|
|
|
261
272
|
}
|
|
262
273
|
|
|
263
274
|
@mixin btn-link {
|
|
264
|
-
@include button
|
|
275
|
+
@include link-button($line-height: 1.3);
|
|
265
276
|
@include focus {
|
|
266
277
|
@include focus-tabs;
|
|
267
278
|
}
|
|
268
279
|
}
|
|
269
280
|
|
|
270
281
|
@mixin btn-video-help {
|
|
271
|
-
@include button
|
|
282
|
+
@include link-button($padding: 1.25em, $background: $c-grey-l96);
|
|
272
283
|
font-weight: 700;
|
|
273
284
|
width: 100%;
|
|
274
285
|
|
|
@@ -279,7 +290,7 @@
|
|
|
279
290
|
}
|
|
280
291
|
|
|
281
292
|
@mixin btn-exit {
|
|
282
|
-
@include button
|
|
293
|
+
@include link-button;
|
|
283
294
|
|
|
284
295
|
svg {
|
|
285
296
|
display: block;
|
|
@@ -323,7 +334,7 @@
|
|
|
323
334
|
}
|
|
324
335
|
|
|
325
336
|
@mixin btn-membership-card {
|
|
326
|
-
@include button
|
|
337
|
+
@include outline-button($color: $white, $background: transparent);
|
|
327
338
|
|
|
328
339
|
@include focus {
|
|
329
340
|
&.member {
|
|
@@ -336,16 +347,16 @@
|
|
|
336
347
|
}
|
|
337
348
|
|
|
338
349
|
@mixin btn-video-login {
|
|
339
|
-
// @include button
|
|
350
|
+
// @include solid-button($background: $white, $color: $c-splash-videos);
|
|
340
351
|
}
|
|
341
352
|
|
|
342
353
|
@mixin btn-cta {
|
|
343
|
-
@include button
|
|
354
|
+
@include solid-button($background: $c-grey-l21, $display: "flex");
|
|
344
355
|
fill: $white;
|
|
345
356
|
}
|
|
346
357
|
|
|
347
358
|
@mixin btn-carousel {
|
|
348
|
-
@include button
|
|
359
|
+
@include solid-button($c-grey-l21);
|
|
349
360
|
@include single-box($white);
|
|
350
361
|
border-radius: 50%;
|
|
351
362
|
font-size: 0;
|
|
@@ -376,8 +387,8 @@
|
|
|
376
387
|
}
|
|
377
388
|
|
|
378
389
|
@mixin btn-menu {
|
|
379
|
-
@include button
|
|
380
|
-
@include button
|
|
390
|
+
@include display-button(flex, 0.75);
|
|
391
|
+
@include outline-button(
|
|
381
392
|
$color: $white,
|
|
382
393
|
$background: $c-brand-generic,
|
|
383
394
|
$padding: 0 0.75rem,
|
|
@@ -391,14 +402,14 @@
|
|
|
391
402
|
@include btn-menu-focus;
|
|
392
403
|
}
|
|
393
404
|
|
|
394
|
-
@include data(
|
|
405
|
+
@include data("clicked") {
|
|
395
406
|
@include btn-menu-focus;
|
|
396
407
|
}
|
|
397
408
|
}
|
|
398
409
|
|
|
399
410
|
@mixin btn-basket {
|
|
400
|
-
@include button
|
|
401
|
-
@include button
|
|
411
|
+
@include display-button(flex, 0.5);
|
|
412
|
+
@include solid-button(
|
|
402
413
|
$background: $white,
|
|
403
414
|
$color: $c-brand-generic,
|
|
404
415
|
$padding: 0 0.75rem,
|
|
@@ -412,11 +423,21 @@
|
|
|
412
423
|
@include btn-menu-focus;
|
|
413
424
|
}
|
|
414
425
|
|
|
415
|
-
@include data(
|
|
426
|
+
@include data("clicked") {
|
|
416
427
|
@include btn-menu-focus;
|
|
417
428
|
}
|
|
418
429
|
}
|
|
419
430
|
|
|
431
|
+
@mixin btn-discover {
|
|
432
|
+
@include display-button(flex, 0.75);
|
|
433
|
+
@include outline-button(white, $c-grey-l21);
|
|
434
|
+
|
|
435
|
+
span {
|
|
436
|
+
position: relative;
|
|
437
|
+
top: 0.125rem;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
420
441
|
@mixin btn-invisible {
|
|
421
442
|
color: inherit;
|
|
422
443
|
padding: 0;
|
|
@@ -24,4 +24,9 @@ $gap-accordion: 2rem;
|
|
|
24
24
|
|
|
25
25
|
$select-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e";
|
|
26
26
|
|
|
27
|
-
$box-shadow-card: 0 0 0.5rem rgba($black, 0.1);
|
|
27
|
+
$box-shadow-card: 0 0 0.5rem rgba($black, 0.1);
|
|
28
|
+
|
|
29
|
+
$padding-button-xs: 0.625rem;
|
|
30
|
+
$padding-button-sm: 0.75rem;
|
|
31
|
+
$padding-button-md: 0.9375rem;
|
|
32
|
+
$padding-button-lg: 1rem;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_args": [
|
|
3
3
|
[
|
|
4
|
-
"barbican-reset@2.2.
|
|
4
|
+
"barbican-reset@2.2.6",
|
|
5
5
|
"/Users/pheading/Sites/eticketing-vue"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
|
-
"_from": "barbican-reset@2.2.
|
|
9
|
-
"_id": "barbican-reset@2.2.
|
|
8
|
+
"_from": "barbican-reset@2.2.6",
|
|
9
|
+
"_id": "barbican-reset@2.2.6",
|
|
10
10
|
"_inBundle": false,
|
|
11
11
|
"_integrity": "sha512-9QMrzuoZ/NZfFlFagC6go3ofn5hBhU9rtSPEeGH0krwY5dBKOlfs8oGIvqUaEGFKI+jQ3spuDOQoeyYK5NRiQw==",
|
|
12
12
|
"_location": "/barbican-reset",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"_requested": {
|
|
36
36
|
"type": "version",
|
|
37
37
|
"registry": true,
|
|
38
|
-
"raw": "barbican-reset@2.2.
|
|
38
|
+
"raw": "barbican-reset@2.2.6",
|
|
39
39
|
"name": "barbican-reset",
|
|
40
40
|
"escapedName": "barbican-reset",
|
|
41
|
-
"rawSpec": "2.2.
|
|
41
|
+
"rawSpec": "2.2.6",
|
|
42
42
|
"saveSpec": null,
|
|
43
|
-
"fetchSpec": "2.2.
|
|
43
|
+
"fetchSpec": "2.2.6"
|
|
44
44
|
},
|
|
45
45
|
"_requiredBy": [
|
|
46
46
|
"/"
|
|
47
47
|
],
|
|
48
|
-
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.
|
|
49
|
-
"_spec": "2.2.
|
|
48
|
+
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.6.tgz",
|
|
49
|
+
"_spec": "2.2.6",
|
|
50
50
|
"_where": "/Users/pheading/Sites/eticketing-vue",
|
|
51
51
|
"author": {
|
|
52
52
|
"name": "Paul Heading"
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"watch:patterns": "cd patterns && gulp watch"
|
|
101
101
|
},
|
|
102
102
|
"style": "dist/css/barbican-reset.css",
|
|
103
|
-
"version": "2.2.
|
|
103
|
+
"version": "2.2.6"
|
|
104
104
|
}
|
package/scss/_btn.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.btn {
|
|
2
|
-
@include button
|
|
2
|
+
@include setup-button;
|
|
3
3
|
|
|
4
4
|
&.btn-primary {
|
|
5
5
|
// solid orange
|
|
@@ -118,7 +118,12 @@
|
|
|
118
118
|
@include btn-basket;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
&.btn-discover {
|
|
122
|
+
@include btn-discover;
|
|
123
|
+
}
|
|
124
|
+
|
|
121
125
|
// modifyers
|
|
126
|
+
|
|
122
127
|
&.expand {
|
|
123
128
|
@include btn-expand;
|
|
124
129
|
}
|