barbican-reset 1.7.7 → 1.8.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.
@@ -1,23 +1,24 @@
1
1
 
2
- @mixin br-form-row {
2
+ @mixin br-form-row($mq:sm) {
3
3
  &:not(:last-of-type) {
4
4
  margin-bottom: 1rem;
5
5
  }
6
6
 
7
- @include media-breakpoint-up(sm) {
7
+ @include media-breakpoint-up($mq) {
8
8
  grid-template-columns: 33fr 67fr;
9
+ align-items: flex-start;
9
10
  gap: $gap-account;
10
11
  display: grid;
11
12
  }
12
13
 
13
14
  > label {
14
- @include media-breakpoint-up(sm) {
15
+ @include media-breakpoint-up($mq) {
15
16
  margin-top: 1rem;
16
17
  }
17
18
  }
18
19
 
19
20
  label {
20
- @include media-breakpoint-down(sm) {
21
+ @include media-breakpoint-down($mq) {
21
22
  margin-bottom: 0.5rem;
22
23
  }
23
24
  }
@@ -8,10 +8,16 @@
8
8
  font-weight: 700;
9
9
  transition: none;
10
10
  line-height: 1;
11
- padding: 1em;
11
+ padding: 1rem;
12
12
 
13
13
  &[slim] {
14
- padding: 0.75em;
14
+ padding: 0.75rem;
15
+ }
16
+
17
+ &[large] {
18
+ padding-bottom: 0.9375rem;
19
+ padding-top: 0.9375rem;
20
+ font-size: 1.125rem;
15
21
  }
16
22
  }
17
23
 
@@ -313,7 +319,7 @@
313
319
  }
314
320
 
315
321
  label {
316
- visibility: hidden;
322
+ @include sr-only;
317
323
  }
318
324
  }
319
325
 
@@ -11,6 +11,14 @@
11
11
  color: $white;
12
12
  }
13
13
 
14
+ @mixin table-label($mq:md) {
15
+ font-size: $font-size-lg;
16
+
17
+ @include media-breakpoint-up($mq) {
18
+ @include sr-only;
19
+ }
20
+ }
21
+
14
22
  @mixin default-table-style {
15
23
  th, td {
16
24
  @include media-breakpoint-up(md) {
@@ -6,6 +6,17 @@
6
6
  top: $val;
7
7
  }
8
8
 
9
+ @mixin sr-only {
10
+ clip: rect(0,0,0,0);
11
+ position: absolute;
12
+ overflow: hidden;
13
+ margin: -1px;
14
+ height: 1px;
15
+ padding: 0;
16
+ width: 1px;
17
+ border: 0;
18
+ }
19
+
9
20
  @import "br-alert";
10
21
  @import "br-form-row";
11
22
  @import "br-form-update";
@@ -20,7 +31,6 @@
20
31
  @import "festival";
21
32
  @import "focus";
22
33
  @import "font";
23
- @import "hide";
24
34
  @import "loading";
25
35
  @import "input";
26
36
  @import "table";
@@ -52,10 +52,6 @@
52
52
  }
53
53
 
54
54
  label {
55
- font-size: $font-size-lg;
56
-
57
- @include media-breakpoint-up($mq) {
58
- display: none;
59
- }
55
+ @include table-label($mq);
60
56
  }
61
57
  }
@@ -45,11 +45,7 @@
45
45
  }
46
46
 
47
47
  label {
48
- font-size: $font-size-lg;
49
-
50
- @include media-breakpoint-up($mq) {
51
- display: none;
52
- }
48
+ @include table-label($mq);
53
49
  }
54
50
 
55
51
  a {
@@ -20,7 +20,7 @@
20
20
  gap: 0.75rem;
21
21
 
22
22
  label {
23
- display: none;
23
+ @include sr-only;
24
24
  }
25
25
  }
26
26
 
@@ -41,11 +41,7 @@
41
41
  }
42
42
 
43
43
  label {
44
- font-size: $font-size-lg;
45
-
46
- @include media-breakpoint-up($mq) {
47
- display: none;
48
- }
44
+ @include table-label($mq);
49
45
  }
50
46
 
51
47
  a {
@@ -53,11 +53,7 @@
53
53
  }
54
54
 
55
55
  label {
56
- font-size: $font-size-lg;
57
-
58
- @include media-breakpoint-up($mq) {
59
- display: none;
60
- }
56
+ @include table-label($mq);
61
57
  }
62
58
 
63
59
  .custom-radio {
@@ -22,10 +22,6 @@
22
22
  }
23
23
 
24
24
  label {
25
- font-size: $font-size-lg;
26
-
27
- @include media-breakpoint-up($mq) {
28
- display: none;
29
- }
25
+ @include table-label($mq);
30
26
  }
31
27
  }
@@ -14,7 +14,7 @@
14
14
  gap: 0.75rem;
15
15
 
16
16
  label {
17
- display: none;
17
+ @include sr-only;
18
18
  }
19
19
  }
20
20
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  $c-grey-midnight: #1d1d1d;
3
3
  $c-grey-night: #353535;
4
- $c-grey-steel: #757575;
4
+ $c-grey-steel: #707070;
5
5
  $c-grey-concrete:#a5a5a5;
6
6
  $c-grey-pearl: #ddd;
7
7
  $c-grey-alpine: #f6f6f6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.7.7",
3
+ "version": "1.8.0",
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": {
@@ -9,7 +9,7 @@
9
9
  z-index: 1;
10
10
 
11
11
  + label {
12
- display: none;
12
+ @include sr-only;
13
13
  }
14
14
  }
15
15
 
@@ -1,27 +0,0 @@
1
-
2
- @mixin hide-visually($state:"hide") {
3
- @if $state == "hide" {
4
- clip: rect(1px, 1px, 1px, 1px);
5
- clip-path: inset(100%);
6
- position: absolute;
7
- overflow: hidden;
8
- height: 1px;
9
- padding: 0;
10
- width: 1px;
11
- border: 0;
12
- }
13
- @if $state == "unhide" {
14
- overflow: visible;
15
- position: static;
16
- clip-path: none;
17
- height: auto;
18
- width: auto;
19
- clip: auto;
20
- }
21
- }
22
-
23
- @mixin hide-text {
24
- white-space: nowrap;
25
- text-indent: 101%;
26
- overflow: hidden;
27
- }