barbican-reset 2.12.0 → 2.14.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 (2) hide show
  1. package/package.json +1 -1
  2. package/scss/_btn.scss +25 -0
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "watch:patterns": "cd patterns && gulp watch"
55
55
  },
56
56
  "style": "dist/css/barbican-reset.css",
57
- "version": "2.12.0"
57
+ "version": "2.14.0"
58
58
  }
package/scss/_btn.scss CHANGED
@@ -1,3 +1,10 @@
1
+ @mixin flex-button {
2
+ // @TODO: move this to core button functionality. once I have time.
3
+ display: inline-flex;
4
+ align-items: center;
5
+ gap: 0.5rem;
6
+ }
7
+
1
8
  .btn {
2
9
  @include setup-button;
3
10
 
@@ -11,6 +18,24 @@
11
18
  @include btn-outline-primary;
12
19
  }
13
20
 
21
+ // branded buttons
22
+
23
+ @each $key, $value in $brands {
24
+ &.btn-#{$key} {
25
+ @include solid-button(color($key));
26
+ @include flex-button;
27
+ }
28
+ }
29
+
30
+ // branded outline buttons
31
+
32
+ @each $key, $value in $brands {
33
+ &.btn-outline-#{$key} {
34
+ @include outline-button(color($key));
35
+ @include flex-button;
36
+ }
37
+ }
38
+
14
39
  &.btn-outline-header {
15
40
  // orange outline, fill on focus
16
41
  @include btn-outline-header;