barbican-reset 2.20.0 → 2.22.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.
Files changed (37) hide show
  1. package/helpers/functions/index.scss +8 -1
  2. package/helpers/mixins/_br-alert.scss +4 -2
  3. package/helpers/mixins/{_card.scss → _br-card.scss} +12 -12
  4. package/helpers/mixins/_buttons.scss +56 -173
  5. package/helpers/mixins/_focus.scss +19 -0
  6. package/helpers/mixins/_font.scss +31 -4
  7. package/helpers/mixins/_headings.scss +19 -0
  8. package/helpers/mixins/_input.scss +2 -3
  9. package/helpers/mixins/buttons/_outline.scss +58 -0
  10. package/helpers/mixins/buttons/_setup.scss +69 -0
  11. package/helpers/mixins/buttons/_solid.scss +57 -0
  12. package/helpers/mixins/buttons/_spektrix.scss +46 -0
  13. package/helpers/mixins/index.scss +3 -2
  14. package/helpers/mixins/input/_checkbox.scss +10 -4
  15. package/helpers/mixins/input/_generic.scss +18 -14
  16. package/helpers/mixins/input/_radio.scss +18 -2
  17. package/helpers/mixins/input/{_dropdown.scss → _select.scss} +12 -2
  18. package/helpers/mixins/input/_text.scss +8 -2
  19. package/helpers/variables/_layout.scss +2 -2
  20. package/helpers/variables/_typography.scss +8 -4
  21. package/package.json +1 -1
  22. package/patterns/scss/colors/_brand.scss +11 -10
  23. package/scss/{_custom-checkbox.scss → _br-checkbox.scss} +9 -5
  24. package/scss/_br-loader.scss +12 -3
  25. package/scss/{_custom-radio.scss → _br-radio.scss} +4 -3
  26. package/scss/_br-select.scss +3 -0
  27. package/scss/_btn.scss +20 -0
  28. package/scss/_input.scss +1 -4
  29. package/scss/_klaro.scss +9 -9
  30. package/scss/_list.scss +6 -2
  31. package/scss/card/_confirm.scss +2 -3
  32. package/scss/card/_login.scss +2 -3
  33. package/scss/card/_password.scss +1 -2
  34. package/scss/card/index.scss +6 -7
  35. package/scss/index.scss +34 -26
  36. package/scss/_custom-select.scss +0 -3
  37. package/scss/_fonts.scss +0 -27
@@ -17,6 +17,7 @@
17
17
  }
18
18
 
19
19
  @import "br-alert";
20
+ @import "br-card";
20
21
  @import "br-form-row";
21
22
  @import "br-form-update";
22
23
  @import "br-form-password";
@@ -24,7 +25,6 @@
24
25
  @import "account/orders";
25
26
  @import "basket";
26
27
  @import "buttons";
27
- @import "card";
28
28
  @import "content";
29
29
  @import "city-of-london";
30
30
  @import "core";
@@ -32,6 +32,7 @@
32
32
  @import "festival";
33
33
  @import "focus";
34
34
  @import "font";
35
+ @import "headings";
35
36
  @import "loading";
36
37
  @import "input";
37
- @import "table";
38
+ @import "table";
@@ -1,6 +1,12 @@
1
- @mixin checkbox-input(
2
- $state: neutral,
3
- $type: checkbox) {
4
- @include generic-input($state,$type);
1
+ @mixin br-checkbox($state: neutral) {
2
+ @include generic-input($state, checkbox);
5
3
  display: block;
4
+ }
5
+
6
+ @mixin br-spx-checkbox($state: neutral) {
7
+ @include br-checkbox($state);
8
+
9
+ input:focus {
10
+ @include generic-input-target-focus;
11
+ }
6
12
  }
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  @mixin generic-input-target($state: neutral) {
7
- $size: 0.875rem;
7
+ $size: toRem(14);
8
8
  position: absolute;
9
9
  height: $size;
10
10
  margin: auto;
@@ -13,10 +13,10 @@
13
13
  left: 1rem;
14
14
  top: 1rem;
15
15
 
16
- @if $state == disabled {
16
+ @if $state ==disabled {
17
17
  display: none;
18
18
 
19
- ~ label {
19
+ ~label {
20
20
  padding: 0.75rem 0.75rem 0.625rem;
21
21
  border-color: $c-grey-l44;
22
22
  cursor: not-allowed;
@@ -28,28 +28,32 @@
28
28
  }
29
29
  }
30
30
 
31
- @if $state != disabled {
31
+ @if $state !=disabled {
32
32
  cursor: pointer;
33
33
 
34
34
  @include focus {
35
- outline: none;
35
+ @include generic-input-target-focus;
36
36
 
37
- ~ label {
38
- @include default-label-focus;
39
- }
40
-
41
- &:checked ~ label {
37
+ &:checked~label {
42
38
  @include neutral-status-colors;
43
39
  @include single-box($c-status-neutral, 0.0625rem);
44
40
  }
45
41
  }
46
42
 
47
- &:checked ~ label {
43
+ &:checked~label {
48
44
  @include neutral-status-colors;
49
45
  }
50
46
  }
51
47
  }
52
48
 
49
+ @mixin generic-input-target-focus {
50
+ outline: none;
51
+
52
+ ~label {
53
+ @include default-label-focus;
54
+ }
55
+ }
56
+
53
57
  @mixin generic-input-label($state: neutral) {
54
58
  padding: 0.75rem 0.75rem 0.625rem 2.75rem;
55
59
  border-radius: $border-radius-lg;
@@ -58,12 +62,12 @@
58
62
  font-weight: 400;
59
63
  display: block;
60
64
 
61
- @if $state != disabled {
65
+ @if $state !=disabled {
62
66
  color: $c-grey-l21;
63
67
  cursor: pointer;
64
68
  }
65
69
 
66
- @if $state == disabled {
70
+ @if $state ==disabled {
67
71
  color: $c-grey-l44;
68
72
  cursor: not-allowed;
69
73
 
@@ -88,4 +92,4 @@
88
92
  label {
89
93
  @include generic-input-label($state);
90
94
  }
91
- }
95
+ }
@@ -1,5 +1,21 @@
1
- @mixin radio-input($state: neutral, $type: radio) {
2
- @include generic-input($state, $type);
1
+ // formerly radio-input
2
+
3
+ @mixin br-radio($state: neutral) {
4
+ @include generic-input($state, radio);
3
5
  display: inline-block;
4
6
  margin: 0.25rem;
5
7
  }
8
+
9
+ @mixin br-spx-radio($state: neutral) {
10
+ @include br-radio($state);
11
+ margin: 0;
12
+
13
+ input:focus {
14
+ @include generic-input-target-focus;
15
+ }
16
+
17
+ label {
18
+ @include fontfamily-light;
19
+ display: inline-block;
20
+ }
21
+ }
@@ -1,4 +1,6 @@
1
- @mixin custom-select {
1
+ // formerly custom-select
2
+
3
+ @mixin br-select {
2
4
  padding: 0.8125rem 2.5rem 0.8125rem 0.8125rem;
3
5
  background-position: right 0.75rem center;
4
6
  background-image: url($select-arrow);
@@ -9,10 +11,10 @@
9
11
  background-repeat: no-repeat;
10
12
  line-height: 1.375rem;
11
13
  color: $c-grey-l21;
12
- font-size: inherit;
13
14
  font-weight: 400;
14
15
  transition: none;
15
16
  appearance: none;
17
+ font-size: 85%;
16
18
  display: block;
17
19
  width: 100%;
18
20
 
@@ -20,3 +22,11 @@
20
22
  @include input-focus-defaults;
21
23
  }
22
24
  }
25
+
26
+ @mixin br-spx-select {
27
+ @include br-select;
28
+
29
+ &:focus {
30
+ @include input-focus-defaults;
31
+ }
32
+ }
@@ -1,4 +1,5 @@
1
1
  @mixin all-text-inputs {
2
+
2
3
  [type='color'],
3
4
  [type='date'],
4
5
  [type='datetime'],
@@ -21,15 +22,20 @@
21
22
 
22
23
  @mixin text-input-defaults {
23
24
  border: solid $border-width $c-grey-l65;
24
- padding: 0.875rem 0.875rem 0.75rem;
25
+ padding: toRem(14) toRem(14) 0.75rem;
25
26
  background-color: $c-grey-l96;
26
27
  border-radius: $border-radius-lg;
27
28
  line-height: 1.375rem;
28
29
  color: $c-grey-l21;
30
+ font-size: 85%;
31
+
32
+ @include input-focus {
33
+ @include input-focus-defaults;
34
+ }
29
35
 
30
36
  &:disabled,
31
37
  &[readonly] {
32
38
  background-color: $c-grey-l96;
33
39
  color: $c-grey-l44;
34
40
  }
35
- }
41
+ }
@@ -21,6 +21,6 @@ $select-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' vie
21
21
  $box-shadow-card: 0 0 0.5rem rgba($black, 0.1);
22
22
 
23
23
  $padding-button-xs: 0.625rem;
24
- $padding-button-sm: 0.75rem;
24
+ $padding-button-slim: 0.75rem;
25
25
  $padding-button-md: 0.9375rem;
26
- $padding-button-lg: 1rem;
26
+ $padding-button-lg: 1rem;
@@ -1,10 +1,10 @@
1
- $fontfamily-light: Supreme-Light, Arial, Helvetica, sans-serif;
1
+ $fontfamily-light: font-family(Supreme-Light);
2
2
 
3
- $fontfamily-light-italic: Supreme-LightItalic, Arial, Helvetica, sans-serif;
3
+ $fontfamily-light-italic: font-family(Supreme-LightItalic);
4
4
 
5
- $fontfamily-black: Supreme-Black, Arial, Helvetica, sans-serif;
5
+ $fontfamily-black: font-family(Supreme-Black);
6
6
 
7
- $fontfamily-black-italic: Supreme-BlackItalic, Arial, Helvetica, sans-serif;
7
+ $fontfamily-black-italic: font-family(Supreme-BlackItalic);
8
8
 
9
9
  // adjusting bootstrap variables for supreme
10
10
 
@@ -14,8 +14,12 @@ $h1-font-size: toRem(42);
14
14
 
15
15
  $h2-font-size: toRem(34);
16
16
 
17
+ $h3-font-size: toRem(28);
18
+
17
19
  $h4-font-size: toRem(24);
18
20
 
21
+ $h5-font-size: toRem(20);
22
+
19
23
  $line-height-xs: 1.1;
20
24
 
21
25
  $line-height-sm: 1.2;
package/package.json CHANGED
@@ -103,5 +103,5 @@
103
103
  "watch:patterns": "cd patterns && gulp watch"
104
104
  },
105
105
  "style": "dist/css/barbican-reset.css",
106
- "version": "2.20.0"
106
+ "version": "2.22.0"
107
107
  }
@@ -32,7 +32,8 @@ $setup: (
32
32
  shop: $c-brand-shop,
33
33
  );
34
34
 
35
- $brands: ();
35
+ $brands: (
36
+ );
36
37
 
37
38
  @function map-brands($color) {
38
39
  $map: (
@@ -46,24 +47,24 @@ $brands: ();
46
47
  tint-95: tint($color, 95%),
47
48
  tint-98: tint($color, 98%),
48
49
  );
49
- @return $map;
50
+ @return $map;
50
51
  }
51
52
 
52
53
  @each $key, $value in $setup {
53
- $map: ();
54
- $map: map-merge(
55
- $map,
56
- (
57
- $key: map-brands($value),
58
- )
54
+ $map: (
59
55
  );
60
- $brands: map-merge($brands, $map);
56
+ $map: map-merge($map,
57
+ ($key: map-brands($value),
58
+ ));
59
+ $brands: map-merge($brands, $map);
61
60
  }
62
61
 
63
62
  @function brandColor($name, $variant: base) {
64
63
  @return map-get(map-get($brands, $name), $variant);
65
64
  }
66
65
 
66
+ $c-background-alt: brandColor(generic, tint-95);
67
+
67
68
  $c-brand-cinema-dark: brandColor(cinema, shade-20); // deprecated
68
69
  $c-brand-shop-light: brandColor(shop, tint-85); // deprecated
69
70
  $c-brand-shop-dark: brandColor(shop, shade-20); // deprecated
@@ -75,4 +76,4 @@ $c-brand-generic-s100-l15: brandColor(generic, shade-65); // x-dark deprecated
75
76
 
76
77
  $c-brand-classical-light: brandColor(classical-music, tint-95); // deprecated
77
78
  $c-brand-classical-dark: brandColor(classical-music, shade-20); // deprecated
78
- $c-brand-membership-dark: hsl(223, 87%, 21%);
79
+ $c-brand-membership-dark: hsl(223, 87%, 21%);
@@ -1,5 +1,8 @@
1
+ // deprecate custom-checkbox class. br-checkbox is more descriptive
2
+
3
+ .br-checkbox,
1
4
  .custom-checkbox {
2
- @include checkbox-input;
5
+ @include br-checkbox; // formerly checkbox-input
3
6
 
4
7
  input[table][type='checkbox'] {
5
8
  @include inset;
@@ -12,12 +15,12 @@
12
15
  margin-top: 0.625rem;
13
16
  }
14
17
 
15
- ~ label {
18
+ ~label {
16
19
  @include sr-only;
17
20
  }
18
21
 
19
22
  @include focus {
20
- ~ label {
23
+ ~label {
21
24
  @include hover-label-table;
22
25
  }
23
26
  }
@@ -34,10 +37,11 @@
34
37
  }
35
38
 
36
39
  @each $status, $color in $statees {
37
- @if $status != 'neutral' {
40
+ @if $status !='neutral' {
41
+
38
42
  [role='group'][#{$status}] input[type='checkbox'],
39
43
  input[type='checkbox'][#{$status}] {
40
44
  @include status-input($color);
41
45
  }
42
46
  }
43
- }
47
+ }
@@ -1,4 +1,4 @@
1
- $offset: 0.875rem;
1
+ $offset: toRem(14);
2
2
  $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
3
3
 
4
4
  .card.br-loader {
@@ -25,7 +25,7 @@ $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
25
25
  position: relative;
26
26
 
27
27
  &:not(:last-child) {
28
- margin-right: $offset * 1.75;
28
+ margin-right: toRem(24);
29
29
  }
30
30
 
31
31
  &:before {
@@ -42,6 +42,7 @@ $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
42
42
 
43
43
  @for $i from 1 through 10 {
44
44
  &:nth-child(#{$i}) {
45
+
45
46
  &:before,
46
47
  &:after {
47
48
  animation-delay: #{$i * 0.2}s;
@@ -55,18 +56,22 @@ $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
55
56
  top: -$offset;
56
57
  z-index: 2;
57
58
  }
59
+
58
60
  25% {
59
61
  transform: scale(1.25);
60
62
  z-index: 2;
61
63
  }
64
+
62
65
  50% {
63
66
  top: $offset;
64
67
  z-index: 1;
65
68
  }
69
+
66
70
  75% {
67
71
  transform: scale(0.75);
68
72
  z-index: 1;
69
73
  }
74
+
70
75
  100% {
71
76
  top: -$offset;
72
77
  z-index: 2;
@@ -78,21 +83,25 @@ $animation-setup: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
78
83
  top: $offset;
79
84
  z-index: 1;
80
85
  }
86
+
81
87
  25% {
82
88
  background-color: $gray-300;
83
89
  transform: scale(0.75);
84
90
  z-index: 1;
85
91
  }
92
+
86
93
  50% {
87
94
  top: -$offset;
88
95
  z-index: 2;
89
96
  }
97
+
90
98
  75% {
91
99
  transform: scale(1.25);
92
100
  z-index: 2;
93
101
  }
102
+
94
103
  100% {
95
104
  top: $offset;
96
105
  z-index: 2;
97
106
  }
98
- }
107
+ }
@@ -3,14 +3,15 @@
3
3
  }
4
4
 
5
5
  .custom-radio {
6
- @include radio-input;
6
+ @include br-radio;
7
7
  }
8
8
 
9
9
  @each $status, $color in $statees {
10
- @if $status != "neutral" {
10
+ @if $status !="neutral" {
11
+
11
12
  [role="radiogroup"][#{$status}] input[type="radio"],
12
13
  input[type="radio"][#{$status}] {
13
14
  @include status-input($color);
14
15
  }
15
16
  }
16
- }
17
+ }
@@ -0,0 +1,3 @@
1
+ .custom-select {
2
+ @include br-select;
3
+ }
package/scss/_btn.scss CHANGED
@@ -123,6 +123,26 @@
123
123
  @include btn-discover;
124
124
  }
125
125
 
126
+ &.btn-membership-pill {
127
+ @include btn-membership-pill;
128
+ }
129
+
130
+ &.btn-priority-row {
131
+ @include btn-priority-row;
132
+ }
133
+
134
+ &.btn-login-to-book {
135
+ @include btn-login-to-book;
136
+ }
137
+
138
+ &.btn-sold-out {
139
+ @include btn-sold-out;
140
+ }
141
+
142
+ &.btn-add-membership-to-basket {
143
+ @include btn-add-membership-to-basket;
144
+ }
145
+
126
146
  // modifyers
127
147
 
128
148
  &.expand {
package/scss/_input.scss CHANGED
@@ -36,7 +36,4 @@ input[type='file'] {
36
36
 
37
37
  @include all-text-inputs {
38
38
  @include text-input-defaults;
39
- @include focus {
40
- @include input-focus-defaults;
41
- }
42
- }
39
+ }
package/scss/_klaro.scss CHANGED
@@ -36,11 +36,11 @@
36
36
  width: 100%;
37
37
  bottom: 0;
38
38
 
39
- @if $pos == right {
39
+ @if $pos ==right {
40
40
  right: 0;
41
41
  }
42
42
 
43
- @if $pos == left {
43
+ @if $pos ==left {
44
44
  left: 0;
45
45
  }
46
46
 
@@ -50,11 +50,11 @@
50
50
  max-width: 28rem;
51
51
  bottom: 1.25rem;
52
52
 
53
- @if $pos == right {
53
+ @if $pos ==right {
54
54
  right: 1.25rem;
55
55
  }
56
56
 
57
- @if $pos == left {
57
+ @if $pos ==left {
58
58
  left: 1.25rem;
59
59
  }
60
60
  }
@@ -103,11 +103,11 @@
103
103
  left: 0;
104
104
  top: 0;
105
105
 
106
- &:focus + .cm-list-label .slider {
106
+ &:focus+.cm-list-label .slider {
107
107
  @include double-box($c-grey-l21, $white);
108
108
  }
109
109
 
110
- &:checked + .cm-list-label .slider {
110
+ &:checked+.cm-list-label .slider {
111
111
  background-color: $c-status-neutral;
112
112
 
113
113
  &::before {
@@ -421,11 +421,11 @@
421
421
 
422
422
  .cn-learn-more {
423
423
  @include fontfamily-black;
424
- background: $c-grey-l44;
425
424
  border-radius: $border-radius;
425
+ font-size: $font-size-sm;
426
+ background: $c-grey-l44;
426
427
  text-decoration: none;
427
428
  display: inline-block;
428
- font-size: 0.875rem;
429
429
  padding: 0.5rem;
430
430
  color: $white;
431
431
 
@@ -470,4 +470,4 @@
470
470
  padding: 1rem;
471
471
  color: $white;
472
472
  opacity: 0;
473
- }
473
+ }
package/scss/_list.scss CHANGED
@@ -1,8 +1,12 @@
1
- menu, ol, ul {
1
+ dl,
2
+ menu,
3
+ ol,
4
+ ul {
2
5
  padding: 0 0 0 1.25rem;
6
+ margin: 0;
3
7
  }
4
8
 
5
- nav > ul {
9
+ nav>ul {
6
10
  list-style: none;
7
11
  padding: 0;
8
12
  }
@@ -1,10 +1,9 @@
1
-
2
1
  .card[confirm] {
3
- @include form-card;
2
+ @include br-form-card;
4
3
  margin-right: auto;
5
4
  text-align: center;
6
5
  margin-left: auto;
7
- max-width: 20rem;
6
+ max-width: 20rem;
8
7
 
9
8
  $gap: 0.625rem;
10
9
 
@@ -1,6 +1,5 @@
1
-
2
1
  .card[login] {
3
- @include form-card;
2
+ @include br-form-card;
4
3
 
5
4
  .card-header {
6
5
  justify-content: space-between;
@@ -9,6 +8,6 @@
9
8
  }
10
9
 
11
10
  .card-title {
12
- @include form-card-title;
11
+ @include br-form-card-title;
13
12
  }
14
13
  }
@@ -1,6 +1,5 @@
1
-
2
1
  .card[password] {
3
- @include form-card;
2
+ @include br-form-card;
4
3
 
5
4
  .card-title {
6
5
  font-size: $h2-font-size;
@@ -1,4 +1,3 @@
1
-
2
1
  @import "confirm";
3
2
  @import "login";
4
3
  @import "password";
@@ -10,25 +9,25 @@
10
9
  @import "slim";
11
10
 
12
11
  .card {
13
- @include card;
12
+ @include br-card;
14
13
  }
15
14
 
16
15
  .card-header {
17
- @include card-header;
16
+ @include br-card-header;
18
17
  }
19
18
 
20
19
  .card-subtitle {
21
- @include card-subtitle;
20
+ @include br-card-subtitle;
22
21
  }
23
22
 
24
23
  .card-body {
25
- @include card-body;
24
+ @include br-card-body;
26
25
  }
27
26
 
28
27
  .card-img {
29
- @include card-img;
28
+ @include br-card-img;
30
29
  }
31
30
 
32
31
  .card-footer {
33
- @include card-footer;
32
+ @include br-card-footer;
34
33
  }