barbican-reset 1.9.8 → 2.0.1
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/_buttons.scss +18 -0
- package/helpers/mixins/_focus.scss +42 -4
- package/package.json +10 -10
- package/scss/_atomic.scss +4 -0
- package/scss/_custom-checkbox.scss +8 -6
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
@mixin disabled {
|
|
3
|
+
&:disabled, &.disabled {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
@mixin button-setup {
|
|
3
9
|
-webkit-font-smoothing: antialiased;
|
|
4
10
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -19,6 +25,10 @@
|
|
|
19
25
|
padding-top: 0.9375rem;
|
|
20
26
|
font-size: 1.125rem;
|
|
21
27
|
}
|
|
28
|
+
|
|
29
|
+
@include disabled {
|
|
30
|
+
opacity: 1; // override bootstrap
|
|
31
|
+
}
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
@mixin button-display($display:'ib',$gap:1) {
|
|
@@ -146,6 +156,10 @@
|
|
|
146
156
|
$padding: 0.75em,
|
|
147
157
|
$font-size: $font-size-sm
|
|
148
158
|
);
|
|
159
|
+
|
|
160
|
+
@include disabled {
|
|
161
|
+
@include btn-outline-secondary;
|
|
162
|
+
}
|
|
149
163
|
}
|
|
150
164
|
|
|
151
165
|
@mixin btn-outline-primary {
|
|
@@ -352,6 +366,10 @@
|
|
|
352
366
|
@include focus {
|
|
353
367
|
@include btn-menu-focus;
|
|
354
368
|
}
|
|
369
|
+
|
|
370
|
+
&[data-clicked=true] {
|
|
371
|
+
@include btn-menu-focus;
|
|
372
|
+
}
|
|
355
373
|
}
|
|
356
374
|
|
|
357
375
|
@mixin btn-invisible {
|
|
@@ -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,33 @@
|
|
|
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;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@mixin not-clicked {
|
|
69
|
+
&:not([data-clicked=true]) {
|
|
70
|
+
@content;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@mixin clicked {
|
|
75
|
+
&[data-clicked=true] {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin not-hovered {
|
|
81
|
+
&:not([data-hovered=true]) {
|
|
82
|
+
@content;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@mixin hovered {
|
|
87
|
+
&[data-hovered=true] {
|
|
88
|
+
@content;
|
|
89
|
+
}
|
|
52
90
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_args": [
|
|
3
3
|
[
|
|
4
|
-
"barbican-reset@
|
|
4
|
+
"barbican-reset@2.0.1",
|
|
5
5
|
"/Users/pheading/Sites/eticketing-vue"
|
|
6
6
|
]
|
|
7
7
|
],
|
|
8
|
-
"_from": "barbican-reset@
|
|
9
|
-
"_id": "barbican-reset@
|
|
8
|
+
"_from": "barbican-reset@2.0.1",
|
|
9
|
+
"_id": "barbican-reset@2.0.1",
|
|
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@
|
|
38
|
+
"raw": "barbican-reset@2.0.1",
|
|
39
39
|
"name": "barbican-reset",
|
|
40
40
|
"escapedName": "barbican-reset",
|
|
41
|
-
"rawSpec": "
|
|
41
|
+
"rawSpec": "2.0.1",
|
|
42
42
|
"saveSpec": null,
|
|
43
|
-
"fetchSpec": "
|
|
43
|
+
"fetchSpec": "2.0.1"
|
|
44
44
|
},
|
|
45
45
|
"_requiredBy": [
|
|
46
46
|
"/"
|
|
47
47
|
],
|
|
48
|
-
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-
|
|
49
|
-
"_spec": "
|
|
48
|
+
"_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-2.0.1.tgz",
|
|
49
|
+
"_spec": "2.0.1",
|
|
50
50
|
"_where": "/Users/pheading/Sites/eticketing-vue",
|
|
51
51
|
"author": {
|
|
52
52
|
"name": "Paul Heading"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"gulp": "^4.0.2",
|
|
61
61
|
"gulp-babel": "^8.0.0",
|
|
62
62
|
"gulp-concat": "^2.6.1",
|
|
63
|
-
"gulp-rename": "^2.0.
|
|
63
|
+
"gulp-rename": "^2.0.1",
|
|
64
64
|
"gulp-sass": "^5.0.0",
|
|
65
65
|
"gulp-uglify": "^3.0.2",
|
|
66
66
|
"node-sass-tilde-importer": "^1.0.2",
|
|
@@ -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": "
|
|
99
|
+
"version": "2.0.1"
|
|
100
100
|
}
|
package/scss/_atomic.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
|
|