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.
@@ -1,18 +1,16 @@
1
- @mixin status-input($type,$color) {
2
- input[type=#{$type}] {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/_atomic.scss CHANGED
@@ -64,4 +64,8 @@ $aligns: "left", "center", "right";
64
64
 
65
65
  .width-100 {
66
66
  width: 100%;
67
+ }
68
+
69
+ .background-color-alt {
70
+ background-color: $c-page-global-content-bg-alt;
67
71
  }
@@ -1,19 +1,17 @@
1
1
 
2
- .checkbox-group {
3
-
4
- .custom-control {
5
- @include checkbox-input;
2
+ .custom-checkbox {
3
+ @include checkbox-input;
6
4
 
7
- &:not(:last-of-type) {
8
- margin-bottom: 0.5rem;
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
- .checkbox-group.#{$status} {
16
- @include status-input(checkbox,$color);
17
- }
12
+ [#{$status}] input[type=radio],
13
+ input[type=radio][#{$status}] {
14
+ @include status-input($color);
15
+ }
18
16
  }
19
- }
17
+ }
@@ -1,5 +1,5 @@
1
1
 
2
- .radio-group {
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
- .radio-group.#{$status} {
13
- @include status-input(radio,$color);
12
+ [#{$status}] input[type=radio],
13
+ input[type=radio][#{$status}] {
14
+ @include status-input($color);
14
15
  }
15
16
  }
16
17
  }
@@ -0,0 +1,11 @@
1
+
2
+ .card[slim] {
3
+
4
+ .card-header {
5
+ padding: 1.5rem 1.25rem 1rem;
6
+ }
7
+
8
+ .card-body {
9
+ padding: 1.5rem 1.25rem;
10
+ }
11
+ }
@@ -7,6 +7,7 @@
7
7
  @import "related";
8
8
  @import "block";
9
9
  @import "membership";
10
+ @import "slim";
10
11
 
11
12
  .card {
12
13
  border: 1px solid $c-grey-pearl;