barbican-reset 1.9.6 → 1.9.9
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.
- package/helpers/mixins/_br-footer.scss +1 -1
- package/helpers/mixins/_buttons.scss +4 -0
- package/helpers/mixins/_card.scss +1 -1
- package/helpers/mixins/_focus.scss +18 -4
- package/helpers/mixins/input/_generic.scss +17 -2
- package/helpers/mixins/table/_basket.scss +4 -0
- package/package.json +9 -9
- package/scss/_atomic.scss +4 -0
- package/scss/_btn.scss +5 -0
- package/scss/_custom-checkbox.scss +8 -6
- package/scss/card/_slim.scss +1 -1
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin focus-visible {
|
|
3
|
+
&[data-focus-visible-added],
|
|
4
|
+
&:focus-visible {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
@mixin focus {
|
|
2
10
|
&:not([disabled=disabled]) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
@include focus-visible {
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&:focus, &:hover {
|
|
7
16
|
@content;
|
|
8
17
|
}
|
|
9
18
|
}
|
|
@@ -49,4 +58,9 @@
|
|
|
49
58
|
background-color: $c-status-neutral-fade;
|
|
50
59
|
border: 1px solid $c-status-neutral;
|
|
51
60
|
color: $c-status-neutral;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin hover-label-table {
|
|
64
|
+
box-shadow: none;
|
|
65
|
+
border: none;
|
|
52
66
|
}
|
|
@@ -14,7 +14,18 @@
|
|
|
14
14
|
top: 1rem;
|
|
15
15
|
|
|
16
16
|
@if $state == disabled {
|
|
17
|
-
|
|
17
|
+
display: none;
|
|
18
|
+
|
|
19
|
+
~ label {
|
|
20
|
+
padding: 0.75rem 0.75rem 0.625rem;
|
|
21
|
+
border-color: $c-grey-l44;
|
|
22
|
+
cursor: not-allowed;
|
|
23
|
+
color: $c-grey-l44;
|
|
24
|
+
|
|
25
|
+
strong {
|
|
26
|
+
text-decoration: line-through;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
18
29
|
}
|
|
19
30
|
|
|
20
31
|
@if $state != disabled {
|
|
@@ -41,8 +52,8 @@
|
|
|
41
52
|
|
|
42
53
|
@mixin generic-input-label($state: neutral) {
|
|
43
54
|
padding: 0.75rem 0.75rem 0.625rem 2.75rem;
|
|
44
|
-
border: 1px solid $c-grey-l65;
|
|
45
55
|
border-radius: $border-radius-lg;
|
|
56
|
+
border: 1px solid $c-grey-l65;
|
|
46
57
|
background-color: $white;
|
|
47
58
|
font-weight: 400;
|
|
48
59
|
display: block;
|
|
@@ -68,6 +79,10 @@
|
|
|
68
79
|
|
|
69
80
|
input[type="#{$type}"] {
|
|
70
81
|
@include generic-input-target($state);
|
|
82
|
+
|
|
83
|
+
&[disabled=disabled] {
|
|
84
|
+
@include generic-input-target(disabled);
|
|
85
|
+
}
|
|
71
86
|
}
|
|
72
87
|
|
|
73
88
|
label {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_args": [
|
|
3
3
|
[
|
|
4
|
-
"barbican-reset@1.9.
|
|
4
|
+
"barbican-reset@1.9.9",
|
|
5
5
|
"/Users/pheading/Sites/eticketing-vue"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
|
-
"_from": "barbican-reset@1.9.
|
|
9
|
-
"_id": "barbican-reset@1.9.
|
|
8
|
+
"_from": "barbican-reset@1.9.9",
|
|
9
|
+
"_id": "barbican-reset@1.9.9",
|
|
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.
|
|
38
|
+
"raw": "barbican-reset@1.9.9",
|
|
39
39
|
"name": "barbican-reset",
|
|
40
40
|
"escapedName": "barbican-reset",
|
|
41
|
-
"rawSpec": "1.9.
|
|
41
|
+
"rawSpec": "1.9.9",
|
|
42
42
|
"saveSpec": null,
|
|
43
|
-
"fetchSpec": "1.9.
|
|
43
|
+
"fetchSpec": "1.9.9"
|
|
44
44
|
},
|
|
45
45
|
"_requiredBy": [
|
|
46
46
|
"/"
|
|
47
47
|
],
|
|
48
|
-
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.
|
|
49
|
-
"_spec": "1.9.
|
|
48
|
+
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.9.tgz",
|
|
49
|
+
"_spec": "1.9.9",
|
|
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.
|
|
99
|
+
"version": "1.9.9"
|
|
100
100
|
}
|
package/scss/_atomic.scss
CHANGED
package/scss/_btn.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
.custom-checkbox {
|
|
2
3
|
@include checkbox-input;
|
|
3
4
|
|
|
@@ -12,18 +13,19 @@
|
|
|
12
13
|
margin-top: 0.625rem;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
~ label {
|
|
16
17
|
@include sr-only;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
@include focus {
|
|
21
|
+
~ label {
|
|
22
|
+
@include hover-label-table;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include focus-visible {
|
|
20
27
|
outline: 1px solid $c-grey-l65;
|
|
21
28
|
outline-offset: 0.125rem;
|
|
22
|
-
|
|
23
|
-
~ label {
|
|
24
|
-
box-shadow: none;
|
|
25
|
-
border: none;
|
|
26
|
-
}
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
|