barbican-reset 1.5.5 → 1.5.6
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/input/_status.scss +9 -11
- package/package.json +1 -1
- package/scss/_atomic.scss +4 -0
- package/scss/_checkbox-group.scss +10 -12
- package/scss/_radio-group.scss +4 -3
- package/scss/card/_slim.scss +11 -0
- package/scss/card/index.scss +1 -0
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
@mixin status-input($
|
|
2
|
-
|
|
3
|
-
@include focus {
|
|
4
|
-
&:checked ~ label {
|
|
5
|
-
@include single-box(map-get($color, base), 0.0625rem);
|
|
6
|
-
border: 1px solid map-get($color, base);
|
|
7
|
-
background-color: map-get($color, fade);
|
|
8
|
-
color: map-get($color, base);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
@mixin status-input($color) {
|
|
2
|
+
@include focus {
|
|
12
3
|
&:checked ~ label {
|
|
4
|
+
@include single-box(map-get($color, base), 0.0625rem);
|
|
13
5
|
border: 1px solid map-get($color, base);
|
|
14
6
|
background-color: map-get($color, fade);
|
|
15
7
|
color: map-get($color, base);
|
|
16
8
|
}
|
|
17
9
|
}
|
|
10
|
+
|
|
11
|
+
&:checked ~ label {
|
|
12
|
+
border: 1px solid map-get($color, base);
|
|
13
|
+
background-color: map-get($color, fade);
|
|
14
|
+
color: map-get($color, base);
|
|
15
|
+
}
|
|
18
16
|
}
|
package/package.json
CHANGED
package/scss/_atomic.scss
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
.checkbox
|
|
3
|
-
|
|
4
|
-
.custom-control {
|
|
5
|
-
@include checkbox-input;
|
|
2
|
+
.custom-checkbox {
|
|
3
|
+
@include checkbox-input;
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
5
|
+
&:not(:last-of-type) {
|
|
6
|
+
margin-bottom: 0.5rem;
|
|
7
|
+
}
|
|
11
8
|
}
|
|
12
9
|
|
|
13
10
|
@each $status, $color in $statees {
|
|
14
11
|
@if $status != 'neutral' {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
[#{$status}] input[type=radio],
|
|
13
|
+
input[type=radio][#{$status}] {
|
|
14
|
+
@include status-input($color);
|
|
15
|
+
}
|
|
18
16
|
}
|
|
19
|
-
}
|
|
17
|
+
}
|
package/scss/_radio-group.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
[role=radiogroup] {
|
|
3
3
|
@include radio-group;
|
|
4
4
|
}
|
|
5
5
|
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
@each $status, $color in $statees {
|
|
11
11
|
@if $status != 'neutral' {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
[#{$status}] input[type=radio],
|
|
13
|
+
input[type=radio][#{$status}] {
|
|
14
|
+
@include status-input($color);
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|