barbican-reset 2.14.0 → 2.16.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.
@@ -16,6 +16,7 @@
16
16
  border-radius: $border-radius-lg;
17
17
  padding: $padding-button-lg;
18
18
  text-decoration: none;
19
+ display: inline-block;
19
20
  text-align: center;
20
21
  font-weight: 700;
21
22
  transition: none;
@@ -57,16 +58,7 @@
57
58
  }
58
59
  }
59
60
 
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
+ @mixin solid-button($background: $c-brand-generic, $color: white, $border: 1px, $padding: false, $margin: false, $line-height: false, $display: false, $font-size: false) {
70
62
  border: $border solid $background;
71
63
  background-color: $background;
72
64
  color: $color;
@@ -96,11 +88,13 @@
96
88
  fill: currentColor;
97
89
  }
98
90
 
99
- @include focus {
100
- @include double-box($color, $background);
101
- border: $border solid $background;
102
- background-color: $background;
103
- color: $color;
91
+ &:not(:disabled) {
92
+ @include focus {
93
+ @include double-box($color, $background);
94
+ border: $border solid $background;
95
+ background-color: $background;
96
+ color: $color;
97
+ }
104
98
  }
105
99
 
106
100
  &.hide {
@@ -108,16 +102,7 @@
108
102
  }
109
103
  }
110
104
 
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
- ) {
105
+ @mixin outline-button($color: $c-brand-generic, $background: white, $border: 1px, $padding: false, $margin: false, $line-height: false, $display: false, $font-size: false) {
121
106
  background-color: $background;
122
107
  border: $border solid $color;
123
108
  color: $color;
@@ -144,28 +129,25 @@
144
129
  }
145
130
 
146
131
  path {
147
- fill: $color;
132
+ fill: currentColor;
148
133
  }
149
134
 
150
- @include focus {
151
- border: $border solid $color;
152
- background-color: $color;
153
- color: $background;
154
- box-shadow: none;
155
- outline: none;
156
-
157
- path {
158
- fill: $background;
135
+ &:not(:disabled) {
136
+ @include focus {
137
+ border: $border solid $color;
138
+ background-color: $color;
139
+ color: $background;
140
+ box-shadow: none;
141
+ outline: none;
142
+
143
+ path {
144
+ fill: $background;
145
+ }
159
146
  }
160
147
  }
161
148
  }
162
149
 
163
- @mixin link-button(
164
- $color: inherit,
165
- $background: transparent,
166
- $padding: 0,
167
- $line-height: false
168
- ) {
150
+ @mixin link-button($color: inherit, $background: transparent, $padding: 0, $line-height: false) {
169
151
  background-color: $background;
170
152
  text-decoration: underline;
171
153
  vertical-align: baseline;
@@ -191,7 +173,7 @@
191
173
  @include solid-button;
192
174
  min-width: 8rem;
193
175
 
194
- &[disabled='disabled'] {
176
+ @include disabled {
195
177
  @include solid-button($c-grey-l21);
196
178
  cursor: not-allowed;
197
179
  }
@@ -227,12 +209,7 @@
227
209
  }
228
210
 
229
211
  @mixin btn-outline-header {
230
- @include outline-button(
231
- $color: white,
232
- $background: $c-brand-generic,
233
- $border: 0.125rem,
234
- $display: 'flex'
235
- );
212
+ @include outline-button($color: white, $background: $c-brand-generic, $border: 0.125rem, $display: 'flex');
236
213
  }
237
214
 
238
215
  @mixin btn-input-edit {
@@ -261,11 +238,7 @@
261
238
  }
262
239
 
263
240
  @mixin btn-remove {
264
- @include solid-button(
265
- $background: $c-grey-l21,
266
- $padding: 0.625em,
267
- $line-height: 1.375
268
- );
241
+ @include solid-button($background: $c-grey-l21, $padding: 0.625em, $line-height: 1.375);
269
242
  }
270
243
 
271
244
  @mixin btn-link {
@@ -294,10 +267,7 @@
294
267
  }
295
268
 
296
269
  @include focus {
297
- @include single-box(
298
- $c-grey-l21,
299
- 0.1875rem
300
- ); // @BUG: safari outline + border-radius
270
+ @include single-box($c-grey-l21, 0.1875rem); // @BUG: safari outline + border-radius
301
271
  border-radius: 50%;
302
272
 
303
273
  path.cross {
@@ -385,13 +355,7 @@
385
355
 
386
356
  @mixin btn-menu {
387
357
  @include display-button(flex, 0.75);
388
- @include outline-button(
389
- $color: white,
390
- $background: $c-brand-generic,
391
- $padding: 0 0.75rem,
392
- $margin: 0.25rem,
393
- $line-height: 2.375rem
394
- );
358
+ @include outline-button($color: white, $background: $c-brand-generic, $padding: 0 0.75rem, $margin: 0.25rem, $line-height: 2.375rem);
395
359
  vertical-align: middle;
396
360
  min-height: 2.5rem;
397
361
 
@@ -406,13 +370,7 @@
406
370
 
407
371
  @mixin btn-basket {
408
372
  @include display-button(flex, 0.5);
409
- @include solid-button(
410
- $background: white,
411
- $color: $c-brand-generic,
412
- $padding: 0 0.75rem,
413
- $margin: 0.25rem,
414
- $line-height: 2.375rem
415
- );
373
+ @include solid-button($background: white, $color: $c-brand-generic, $padding: 0 0.75rem, $margin: 0.25rem, $line-height: 2.375rem);
416
374
  vertical-align: middle;
417
375
  min-height: 2.5rem;
418
376
 
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.14.0"
57
+ "version": "2.16.0"
58
58
  }