barbican-reset 1.9.3 → 1.9.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.
@@ -80,6 +80,7 @@
80
80
  $background: $white,
81
81
  $border: 1px,
82
82
  $padding: false,
83
+ $margin: false,
83
84
  $line-height: false,
84
85
  $display: false,
85
86
  $font-size: false) {
@@ -95,6 +96,7 @@
95
96
  @if $line-height { line-height: $line-height; }
96
97
  @if $font-size { font-size: $font-size; }
97
98
  @if $padding { padding: $padding; }
99
+ @if $margin { margin: $margin; }
98
100
 
99
101
  path {
100
102
  fill: $color;
@@ -323,6 +325,31 @@
323
325
  }
324
326
  }
325
327
 
328
+ @mixin btn-menu-focus {
329
+ background-color: $white;
330
+ color: $c-brand-generic;
331
+ outline: none;
332
+
333
+ path {
334
+ fill: $c-brand-generic;
335
+ }
336
+ }
337
+
338
+ @mixin btn-menu {
339
+ @include button-display(flex, 0.75);
340
+ @include button-outline(
341
+ $color: $white,
342
+ $background: $c-brand-generic,
343
+ $padding: 0 0.75rem,
344
+ $margin: 0.25rem,
345
+ $line-height: 2.375rem);
346
+ vertical-align: middle;
347
+
348
+ @include focus {
349
+ @include btn-menu-focus;
350
+ }
351
+ }
352
+
326
353
  @mixin btn-invisible {
327
354
  color: inherit;
328
355
  padding: 0;
@@ -1,5 +1,5 @@
1
- @mixin inline-block {
2
- vertical-align: middle;
1
+ @mixin inline-block($align:middle) {
2
+ vertical-align: $align;
3
3
  display: inline-block;
4
4
  }
5
5
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "_args": [
3
3
  [
4
- "barbican-reset@1.9.3",
4
+ "barbican-reset@1.9.6",
5
5
  "/Users/pheading/Sites/eticketing-vue"
6
6
  ]
7
7
  ],
8
- "_from": "barbican-reset@1.9.3",
9
- "_id": "barbican-reset@1.9.3",
8
+ "_from": "barbican-reset@1.9.6",
9
+ "_id": "barbican-reset@1.9.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@1.9.3",
38
+ "raw": "barbican-reset@1.9.6",
39
39
  "name": "barbican-reset",
40
40
  "escapedName": "barbican-reset",
41
- "rawSpec": "1.9.3",
41
+ "rawSpec": "1.9.6",
42
42
  "saveSpec": null,
43
- "fetchSpec": "1.9.3"
43
+ "fetchSpec": "1.9.6"
44
44
  },
45
45
  "_requiredBy": [
46
46
  "/"
47
47
  ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.3.tgz",
49
- "_spec": "1.9.3",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.6.tgz",
49
+ "_spec": "1.9.6",
50
50
  "_where": "/Users/pheading/Sites/eticketing-vue",
51
51
  "author": {
52
52
  "name": "Paul Heading"
@@ -96,5 +96,5 @@
96
96
  "test": "echo \"Error: no test specified\" && exit 1"
97
97
  },
98
98
  "style": "dist/css/barbican-reset.css",
99
- "version": "1.9.3"
99
+ "version": "1.9.6"
100
100
  }
package/scss/_btn.scss CHANGED
@@ -105,6 +105,10 @@
105
105
  }
106
106
  }
107
107
 
108
+ &.btn-menu {
109
+ @include btn-menu;
110
+ }
111
+
108
112
  // modifyers
109
113
  &.expand {
110
114
  @include btn-expand;