barbican-reset 2.2.5 → 2.2.7

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.
@@ -41,8 +41,8 @@
41
41
  }
42
42
  }
43
43
 
44
- @mixin display-button($display: 'ib', $gap: 1) {
45
- @if $display == 'ib' {
44
+ @mixin display-button($display: "ib", $gap: 1) {
45
+ @if $display == "ib" {
46
46
  vertical-align: middle;
47
47
  display: inline-block;
48
48
 
@@ -50,14 +50,23 @@
50
50
  vertical-align: middle;
51
51
  display: inline-block;
52
52
  }
53
- } @else if $display == 'flex' {
53
+ } @else if $display == "flex" {
54
54
  display: inline-flex;
55
55
  align-items: center;
56
56
  gap: #{$gap}rem;
57
57
  }
58
58
  }
59
59
 
60
- @mixin solid-button($background: $c-brand-generic, $color: $white, $border: 1px, $padding: false, $margin: false, $line-height: false, $display: false, $font-size: false) {
60
+ @mixin solid-button(
61
+ $background: $c-brand-generic,
62
+ $color: white,
63
+ $border: 1px,
64
+ $padding: false,
65
+ $margin: false,
66
+ $line-height: false,
67
+ $display: false,
68
+ $font-size: false
69
+ ) {
61
70
  border: $border solid $background;
62
71
  background-color: $background;
63
72
  color: $color;
@@ -99,7 +108,16 @@
99
108
  }
100
109
  }
101
110
 
102
- @mixin outline-button($color: $c-brand-generic, $background: $white, $border: 1px, $padding: false, $margin: false, $line-height: false, $display: false, $font-size: false) {
111
+ @mixin outline-button(
112
+ $color: $c-brand-generic,
113
+ $background: white,
114
+ $border: 1px,
115
+ $padding: false,
116
+ $margin: false,
117
+ $line-height: false,
118
+ $display: false,
119
+ $font-size: false
120
+ ) {
103
121
  background-color: $background;
104
122
  border: $border solid $color;
105
123
  color: $color;
@@ -142,7 +160,12 @@
142
160
  }
143
161
  }
144
162
 
145
- @mixin link-button($color: inherit, $background: transparent, $padding: 0, $line-height: false) {
163
+ @mixin link-button(
164
+ $color: inherit,
165
+ $background: transparent,
166
+ $padding: 0,
167
+ $line-height: false
168
+ ) {
146
169
  background-color: $background;
147
170
  text-decoration: underline;
148
171
  vertical-align: baseline;
@@ -168,7 +191,7 @@
168
191
  @include solid-button;
169
192
  min-width: 8rem;
170
193
 
171
- &[disabled='disabled'] {
194
+ &[disabled="disabled"] {
172
195
  @include solid-button($c-grey-l21);
173
196
  cursor: not-allowed;
174
197
  }
@@ -199,7 +222,12 @@
199
222
  }
200
223
 
201
224
  @mixin btn-outline-header {
202
- @include outline-button($color: $white, $background: $c-brand-generic, $border: 0.125rem, $display: 'flex');
225
+ @include outline-button(
226
+ $color: white,
227
+ $background: $c-brand-generic,
228
+ $border: 0.125rem,
229
+ $display: "flex"
230
+ );
203
231
  }
204
232
 
205
233
  @mixin btn-input-edit {
@@ -220,7 +248,7 @@
220
248
  }
221
249
 
222
250
  @mixin btn-power-login {
223
- @include solid-button($background: $white, $color: $c-power-blue);
251
+ @include solid-button($background: white, $color: $c-power-blue);
224
252
  }
225
253
 
226
254
  @mixin btn-info {
@@ -236,7 +264,11 @@
236
264
  }
237
265
 
238
266
  @mixin btn-remove {
239
- @include solid-button($background: $c-grey-l21, $padding: 0.625em, $line-height: 1.375);
267
+ @include solid-button(
268
+ $background: $c-grey-l21,
269
+ $padding: 0.625em,
270
+ $line-height: 1.375
271
+ );
240
272
  }
241
273
 
242
274
  @mixin btn-link {
@@ -253,7 +285,7 @@
253
285
 
254
286
  @include focus {
255
287
  background-color: $c-grey-l44;
256
- color: $white;
288
+ color: white;
257
289
  }
258
290
  }
259
291
 
@@ -265,11 +297,14 @@
265
297
  }
266
298
 
267
299
  @include focus {
268
- @include single-box($c-grey-l21, 0.1875rem); // @BUG: safari outline + border-radius
300
+ @include single-box(
301
+ $c-grey-l21,
302
+ 0.1875rem
303
+ ); // @BUG: safari outline + border-radius
269
304
  border-radius: 50%;
270
305
 
271
306
  path.cross {
272
- fill: $white;
307
+ fill: white;
273
308
  }
274
309
 
275
310
  path.tint {
@@ -299,7 +334,7 @@
299
334
  }
300
335
 
301
336
  @mixin btn-membership-card {
302
- @include outline-button($color: $white, $background: transparent);
337
+ @include outline-button($color: white, $background: transparent);
303
338
 
304
339
  @include focus {
305
340
  &.member {
@@ -312,20 +347,20 @@
312
347
  }
313
348
 
314
349
  @mixin btn-video-login {
315
- // @include solid-button($background: $white, $color: $c-splash-videos);
350
+ @include solid-button($background: white, $color: #0a0a0a);
316
351
  }
317
352
 
318
353
  @mixin btn-cta {
319
- @include solid-button($background: $c-grey-l21, $display: 'flex');
320
- fill: $white;
354
+ @include solid-button($background: $c-grey-l21, $display: "flex");
355
+ fill: white;
321
356
  }
322
357
 
323
358
  @mixin btn-carousel {
324
359
  @include solid-button($c-grey-l21);
325
- @include single-box($white);
360
+ @include single-box(white);
326
361
  border-radius: 50%;
327
362
  font-size: 0;
328
- fill: $white;
363
+ fill: white;
329
364
 
330
365
  @include media-breakpoint-down(lg) {
331
366
  padding: 0.75rem;
@@ -343,7 +378,7 @@
343
378
  }
344
379
 
345
380
  @mixin btn-menu-focus($brand: $c-brand-generic) {
346
- background-color: $white;
381
+ background-color: white;
347
382
  color: $brand;
348
383
 
349
384
  path {
@@ -353,7 +388,13 @@
353
388
 
354
389
  @mixin btn-menu {
355
390
  @include display-button(flex, 0.75);
356
- @include outline-button($color: $white, $background: $c-brand-generic, $padding: 0 0.75rem, $margin: 0.25rem, $line-height: 2.375rem);
391
+ @include outline-button(
392
+ $color: white,
393
+ $background: $c-brand-generic,
394
+ $padding: 0 0.75rem,
395
+ $margin: 0.25rem,
396
+ $line-height: 2.375rem
397
+ );
357
398
  vertical-align: middle;
358
399
  min-height: 2.5rem;
359
400
 
@@ -361,14 +402,20 @@
361
402
  @include btn-menu-focus;
362
403
  }
363
404
 
364
- @include data('clicked') {
405
+ @include data("clicked") {
365
406
  @include btn-menu-focus;
366
407
  }
367
408
  }
368
409
 
369
410
  @mixin btn-basket {
370
411
  @include display-button(flex, 0.5);
371
- @include solid-button($background: $white, $color: $c-brand-generic, $padding: 0 0.75rem, $margin: 0.25rem, $line-height: 2.375rem);
412
+ @include solid-button(
413
+ $background: white,
414
+ $color: $c-brand-generic,
415
+ $padding: 0 0.75rem,
416
+ $margin: 0.25rem,
417
+ $line-height: 2.375rem
418
+ );
372
419
  vertical-align: middle;
373
420
  min-height: 2.5rem;
374
421
 
@@ -376,11 +423,21 @@
376
423
  @include btn-menu-focus;
377
424
  }
378
425
 
379
- @include data('clicked') {
426
+ @include data("clicked") {
380
427
  @include btn-menu-focus;
381
428
  }
382
429
  }
383
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
+
384
441
  @mixin btn-invisible {
385
442
  color: inherit;
386
443
  padding: 0;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "_args": [
3
3
  [
4
- "barbican-reset@2.2.5",
4
+ "barbican-reset@2.2.7",
5
5
  "/Users/pheading/Sites/eticketing-vue"
6
6
  ]
7
7
  ],
8
- "_from": "barbican-reset@2.2.5",
9
- "_id": "barbican-reset@2.2.5",
8
+ "_from": "barbican-reset@2.2.7",
9
+ "_id": "barbican-reset@2.2.7",
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.5",
38
+ "raw": "barbican-reset@2.2.7",
39
39
  "name": "barbican-reset",
40
40
  "escapedName": "barbican-reset",
41
- "rawSpec": "2.2.5",
41
+ "rawSpec": "2.2.7",
42
42
  "saveSpec": null,
43
- "fetchSpec": "2.2.5"
43
+ "fetchSpec": "2.2.7"
44
44
  },
45
45
  "_requiredBy": [
46
46
  "/"
47
47
  ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.5.tgz",
49
- "_spec": "2.2.5",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.2.7.tgz",
49
+ "_spec": "2.2.7",
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.5"
103
+ "version": "2.2.7"
104
104
  }
package/scss/_btn.scss CHANGED
@@ -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
  }