barbican-reset 1.7.8 → 1.8.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.
@@ -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
 
@@ -33,7 +39,7 @@
33
39
  }
34
40
 
35
41
  @mixin button-solid(
36
- $background: $c-brand-orange,
42
+ $background: $c-brand-generic,
37
43
  $color: $white,
38
44
  $border: 1px,
39
45
  $padding: false,
@@ -70,7 +76,7 @@
70
76
  }
71
77
 
72
78
  @mixin button-outline(
73
- $color: $c-brand-orange,
79
+ $color: $c-brand-generic,
74
80
  $background: $white,
75
81
  $border: 1px,
76
82
  $padding: false,
@@ -161,7 +167,7 @@
161
167
  @mixin btn-outline-header {
162
168
  @include button-outline(
163
169
  $color: $white,
164
- $background: $c-brand-orange,
170
+ $background: $c-brand-generic,
165
171
  $border: 0.125rem,
166
172
  $display: 'flex');
167
173
  }
@@ -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;
@@ -0,0 +1,5 @@
1
+
2
+ $c-brand-art-x-lite: hsl(329, 100%, 99%); // 2% opacity
3
+ $c-brand-art-lite: hsl(329, 81%, 83%); // 30% opacity
4
+ $c-brand-art-medium: hsl(329, 82%, 67%); // 60% opacity
5
+ $c-brand-art: hsl(329, 100%, 45%);
@@ -0,0 +1,6 @@
1
+
2
+ $c-brand-cinema-x-lite: hsl(126, 31%, 99%); // 2% opacity
3
+ $c-brand-cinema-lite: hsl(126, 31%, 80%); // 30% opacity
4
+ $c-brand-cinema-medium: hsl(126, 31%, 60%); // 60% opacity
5
+ $c-brand-cinema: hsl(126, 62%, 33%);
6
+ $c-brand-cinema-dark: darken($c-brand-cinema, 7%);
@@ -0,0 +1,7 @@
1
+
2
+ $c-brand-classical-x-lite: hsl(38, 33%, 99%); // 2% opacity
3
+ $c-brand-classical-lite: hsl(38, 33%, 81%); // 30% opacity
4
+ $c-brand-classical-medium: hsl(38, 33%, 63%); // 60% opacity
5
+ $c-brand-classical-light: hsl(38, 53%, 95%);
6
+ $c-brand-classical: hsl(38, 53%, 38%);
7
+ $c-brand-classical-dark: hsl(38, 53%, 30%);
@@ -0,0 +1,5 @@
1
+
2
+ $c-brand-contemporary-x-lite: hsl(254, 14%, 99%); // 2% opacity
3
+ $c-brand-contemporary-lite: hsl(254, 22%, 80%); // 30% opacity
4
+ $c-brand-contemporary-medium: hsl(254, 22%, 60%); // 60% opacity
5
+ $c-brand-contemporary: hsl(254, 44%, 33%);
@@ -0,0 +1,10 @@
1
+
2
+ $c-brand-generic-x-lite: hsl(21, 67%, 99%); // 2% opacity
3
+ $c-brand-generic-faint: hsl(21, 60%, 99%);
4
+ $c-brand-generic-light: hsl(21, 100%, 95%);
5
+ $c-brand-generic-shade: hsl(21, 50%, 90%);
6
+ $c-brand-generic-lite: hsl(21, 69%, 82%); // 30% opacity
7
+ $c-brand-generic-medium: hsl(21, 69%, 65%); // 60% opacity
8
+ $c-brand-generic: hsl(21, 100%, 41%);
9
+ $c-brand-generic-dark: hsl(21, 100%, 38%);
10
+ $c-brand-generic-x-dark: hsl(21, 100%, 15%);
@@ -0,0 +1,14 @@
1
+
2
+ $c-brand-membership-x-lite: hsl(217, 60%, 99%); // 2% opacity
3
+ $c-brand-membership-lite: hsl(217, 72%, 86%); // 30% opacity
4
+ $c-brand-membership-medium: hsl(217, 72%, 72%); // 60% opacity
5
+ $c-brand-membership: hsl(217, 72%, 53%);
6
+ $c-brand-membership-dark: hsl(223, 87%, 21%);
7
+
8
+ // ------------------------------
9
+
10
+ $c-patron: $c-grey-steel;
11
+ $c-patron-light: hsl(0, 0%, 60%);
12
+
13
+ $c-principle: $c-brand-classical;
14
+ $c-principle-light: hsl(38, 53%, 53%);
@@ -0,0 +1,4 @@
1
+
2
+ $c-brand-shop-light: hsl(168, 30%, 90%);
3
+ $c-brand-shop: hsl(168, 75%, 30%);
4
+ $c-brand-shop-dark: hsl(168, 75%, 26%);
@@ -0,0 +1,5 @@
1
+
2
+ $c-brand-talks: hsl(214, 30%, 49%);
3
+ $c-brand-talks-medium: hsl(214, 30%, 69%); // 60% opacity
4
+ $c-brand-talks-lite: hsl(214, 30%, 85%); // 30% opacity
5
+ $c-brand-talks-x-lite: hsl(214, 30%, 99%); // 2% opacity
@@ -0,0 +1,5 @@
1
+
2
+ $c-brand-theatre: hsl(192, 99%, 31%);
3
+ $c-brand-theatre-medium: hsl(192, 44%, 59%); // 60% opacity
4
+ $c-brand-theatre-lite: hsl(192, 44%, 79%); // 30% opacity
5
+ $c-brand-theatre-x-lite: hsl(192, 44%, 99%); // 2% opacity
@@ -0,0 +1,12 @@
1
+
2
+ @import "generic";
3
+ @import "art";
4
+ @import "cinema";
5
+ @import "classical";
6
+ @import "contemporary";
7
+ @import "membership";
8
+ @import "shop";
9
+ @import "talks";
10
+ @import "theatre";
11
+
12
+ $c-splash-videos: hsl(0, 0%, 4%);
@@ -1,5 +1,5 @@
1
1
  @import "grey";
2
- @import "brand";
2
+ @import "brand/index";
3
3
  @import "docs";
4
4
  @import "status";
5
5
  @import "wgp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.7.8",
3
+ "version": "1.8.1",
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
@@ -42,7 +42,7 @@ $paddings05: "padding-top", "padding-bottom", "padding-right", "padding-left";
42
42
  }
43
43
 
44
44
  .color-orange {
45
- color: $c-brand-orange;
45
+ color: $c-brand-generic;
46
46
  }
47
47
 
48
48
  .font-size-lg {
@@ -76,5 +76,5 @@ $paddings05: "padding-top", "padding-bottom", "padding-right", "padding-left";
76
76
  }
77
77
 
78
78
  .background-color-alt {
79
- background-color: $c-brand-orange-faint;
79
+ background-color: $c-brand-generic-faint;
80
80
  }
@@ -8,7 +8,7 @@
8
8
  }
9
9
 
10
10
  .fill {
11
- fill: $c-brand-orange-faint;
11
+ fill: $c-brand-generic-faint;
12
12
  }
13
13
  }
14
14
 
@@ -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
 
package/scss/_header.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  header {
2
- background-color: $c-brand-orange;
2
+ background-color: $c-brand-generic;
3
3
 
4
4
  &.videoSplash, &.powerSplash, &.cinemaSplash, &.concertSplash, &.theatreSplash {
5
5
  display: none;
@@ -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
- }
@@ -1,30 +0,0 @@
1
-
2
- $c-brand-orange-faint: hsl(21, 60%, 99%);
3
- $c-brand-orange-light: hsl(21, 100%, 95%);
4
- $c-brand-orange-shade: hsl(21, 50%, 90%);
5
- $c-brand-orange: hsl(21, 100%, 41%);
6
- $c-brand-orange-dark: hsl(21, 100%, 38%);
7
-
8
- $c-brand-cinema: hsl(126, 62%, 33%);
9
- $c-brand-cinema-dark: darken($c-brand-cinema, 7%);
10
-
11
- $c-brand-shop-light: hsl(168, 30%, 90%);
12
- $c-brand-shop: hsl(168, 75%, 30%);
13
- $c-brand-shop-dark: hsl(168, 75%, 26%);
14
-
15
- $c-brand-classical-light: hsl(38, 53%, 95%);
16
- $c-brand-classical: hsl(38, 53%, 38%);
17
- $c-brand-classical-dark: rgb(117, 89, 36);
18
-
19
- $c-splash-videos: #0a0a0a;
20
-
21
- // membership cards
22
-
23
- $c-member: #3173DD;
24
- $c-member-dark: #072162;
25
-
26
- $c-patron: $c-grey-steel;
27
- $c-patron-light: #999999;
28
-
29
- $c-principle: #906C2C;
30
- $c-principle-light: #C59540;