barbican-reset 2.7.0 → 2.9.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.
@@ -5,13 +5,13 @@
5
5
  border-style: solid;
6
6
  }
7
7
 
8
- @mixin br-alert-wrap--colors($main, $fade, $light) {
8
+ @mixin br-alert-wrap--colors($fade, $light, $base) {
9
9
  background-color: $fade;
10
10
  border-color: $light;
11
- color: $main;
11
+ color: $base;
12
12
 
13
13
  svg {
14
- fill: $main;
14
+ fill: $base;
15
15
  }
16
16
  }
17
17
 
@@ -26,30 +26,30 @@
26
26
  }
27
27
  }
28
28
 
29
- @mixin br-alert-link($main, $fade) {
29
+ @mixin br-alert-link($base, $fade) {
30
30
  @include focus {
31
- @include single-box($main);
32
- background-color: $main;
31
+ @include single-box($base);
32
+ background-color: $base;
33
33
  color: $fade;
34
34
  }
35
35
  }
36
36
 
37
- @mixin br-alert-exit($main, $fade) {
37
+ @mixin br-alert-exit($base, $fade) {
38
38
  path.cross {
39
- fill: $main;
39
+ fill: $base;
40
40
  }
41
41
  path.tint {
42
42
  fill: $fade;
43
43
  }
44
44
 
45
45
  @include focus {
46
- outline-color: $main;
46
+ @include single-box($base, 0.1875rem);
47
47
 
48
48
  path.cross {
49
49
  fill: $fade;
50
50
  }
51
51
  path.tint {
52
- fill: $main;
52
+ fill: $base;
53
53
  }
54
54
  }
55
55
  }
@@ -84,18 +84,4 @@
84
84
  .flex {
85
85
  @include br-alert--flex;
86
86
  }
87
-
88
- .btn.btn-exit {
89
- &.error {
90
- @include br-alert-exit($error_focus...);
91
- }
92
-
93
- &.success {
94
- @include br-alert-exit($success_focus...);
95
- }
96
-
97
- &.neutral {
98
- @include br-alert-exit($neutral_focus...);
99
- }
100
- }
101
87
  }
package/package.json CHANGED
@@ -1,53 +1,4 @@
1
1
  {
2
- "_args": [
3
- [
4
- "barbican-reset@2.3.6",
5
- "/Users/pheading/Sites/eticketing-vue"
6
- ]
7
- ],
8
- "_from": "barbican-reset@2.3.6",
9
- "_id": "barbican-reset@2.3.6",
10
- "_inBundle": false,
11
- "_integrity": "sha512-9QMrzuoZ/NZfFlFagC6go3ofn5hBhU9rtSPEeGH0krwY5dBKOlfs8oGIvqUaEGFKI+jQ3spuDOQoeyYK5NRiQw==",
12
- "_location": "/barbican-reset",
13
- "_phantomChildren": {
14
- "array-flatten": "1.1.1",
15
- "content-type": "1.0.4",
16
- "cookie-signature": "1.0.6",
17
- "ee-first": "1.1.1",
18
- "encodeurl": "1.0.2",
19
- "escape-html": "1.0.3",
20
- "etag": "1.8.1",
21
- "fresh": "0.5.2",
22
- "iconv-lite": "0.4.24",
23
- "inherits": "2.0.4",
24
- "merge-descriptors": "1.0.1",
25
- "methods": "1.1.2",
26
- "parseurl": "1.3.3",
27
- "path-to-regexp": "0.1.7",
28
- "range-parser": "1.2.1",
29
- "side-channel": "1.0.4",
30
- "type-is": "1.6.18",
31
- "unpipe": "1.0.0",
32
- "utils-merge": "1.0.1",
33
- "vary": "1.1.2"
34
- },
35
- "_requested": {
36
- "type": "version",
37
- "registry": true,
38
- "raw": "barbican-reset@2.3.6",
39
- "name": "barbican-reset",
40
- "escapedName": "barbican-reset",
41
- "rawSpec": "2.3.6",
42
- "saveSpec": null,
43
- "fetchSpec": "2.3.6"
44
- },
45
- "_requiredBy": [
46
- "/"
47
- ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.3.6.tgz",
49
- "_spec": "2.3.6",
50
- "_where": "/Users/pheading/Sites/eticketing-vue",
51
2
  "author": {
52
3
  "name": "Paul Heading"
53
4
  },
@@ -103,5 +54,5 @@
103
54
  "watch:patterns": "cd patterns && gulp watch"
104
55
  },
105
56
  "style": "dist/css/barbican-reset.css",
106
- "version": "2.7.0"
57
+ "version": "2.9.0"
107
58
  }
@@ -1,3 +1,23 @@
1
+ .br-alert {
2
+ @each $status, $color in $statuses {
3
+ $fade: map-get($color, fade);
4
+ $light: map-get($color, light);
5
+ $base: map-get($color, base);
6
+
7
+ .btn.btn-exit.#{$status} {
8
+ @include br-alert-exit($base, $fade);
9
+ }
10
+
11
+ .wrap.#{$status} {
12
+ @include br-alert-wrap--colors($fade, $light, $base);
13
+
14
+ .btn.btn-link,
15
+ a {
16
+ @include br-alert-link($base, $fade);
17
+ }
18
+ }
19
+ }
20
+ }
1
21
 
2
22
  .br-alert {
3
23
  @include br-alert--setup;
@@ -7,29 +27,8 @@
7
27
  }
8
28
 
9
29
  .wrap {
10
- @include br-alert-wrap--colors($neutral_wrap...);
11
30
  @include br-alert-wrap--setup;
12
31
 
13
- .btn.btn-link, a {
14
- @include br-alert-link($neutral_focus...);
15
- }
16
-
17
- &.error {
18
- @include br-alert-wrap--colors($error_wrap...);
19
-
20
- .btn.btn-link, a {
21
- @include br-alert-link($error_focus...);
22
- }
23
- }
24
-
25
- &.success {
26
- @include br-alert-wrap--colors($success_wrap...);
27
-
28
- .btn.btn-link, a {
29
- @include br-alert-link($success_focus...);
30
- }
31
- }
32
-
33
32
  &.inline {
34
33
  @include inline-block;
35
34
  }
@@ -46,4 +45,4 @@
46
45
  }
47
46
  }
48
47
  }
49
- }
48
+ }
@@ -33,7 +33,7 @@
33
33
  }
34
34
  }
35
35
 
36
- @each $status, $color in $statees {
36
+ @each $status, $color in $statuses {
37
37
  @if $status != 'neutral' {
38
38
  [role='group'][#{$status}] input[type='checkbox'],
39
39
  input[type='checkbox'][#{$status}] {
@@ -1,4 +1,4 @@
1
- [role="radiogroup"] {
1
+ [role='radiogroup'] {
2
2
  margin: -0.25rem;
3
3
  }
4
4
 
@@ -6,10 +6,10 @@
6
6
  @include radio-input;
7
7
  }
8
8
 
9
- @each $status, $color in $statees {
10
- @if $status != "neutral" {
11
- [role="radiogroup"][#{$status}] input[type="radio"],
12
- input[type="radio"][#{$status}] {
9
+ @each $status, $color in $statuses {
10
+ @if $status != 'neutral' {
11
+ [role='radiogroup'][#{$status}] input[type='radio'],
12
+ input[type='radio'][#{$status}] {
13
13
  @include status-input($color);
14
14
  }
15
15
  }
package/scss/_header.scss CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- header {
2
+ .header {
3
3
  background-color: $c-brand-generic;
4
4
  color: white;
5
5