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
@@ -7,9 +7,16 @@
7
7
  }
8
8
 
9
9
  @function input-bg($value) {
10
- @return rgba($value,0.08);
10
+ @return rgba($value, 0.08);
11
11
  }
12
12
 
13
13
  @function toRem($value) {
14
14
  @return ($value * 0.0625)+rem;
15
+ }
16
+
17
+ @function font-family($name: "SupremeLLWeb") {
18
+ @return #{$name},
19
+ "Helvetica",
20
+ "Arial",
21
+ sans-serif;
15
22
  }
@@ -1,7 +1,7 @@
1
1
  @mixin br-alert-wrap--setup {
2
2
  border-radius: $border-radius-lg;
3
3
  border-width: $border-width;
4
- padding: 0.75rem 0.875rem;
4
+ padding: 0.75rem toRem(14);
5
5
  border-style: solid;
6
6
  }
7
7
 
@@ -38,6 +38,7 @@
38
38
  path.cross {
39
39
  fill: $main;
40
40
  }
41
+
41
42
  path.tint {
42
43
  fill: $fade;
43
44
  }
@@ -48,6 +49,7 @@
48
49
  path.cross {
49
50
  fill: $fade;
50
51
  }
52
+
51
53
  path.tint {
52
54
  fill: $main;
53
55
  }
@@ -98,4 +100,4 @@
98
100
  @include br-alert-exit($neutral_focus...);
99
101
  }
100
102
  }
101
- }
103
+ }
@@ -1,32 +1,31 @@
1
-
2
- @mixin card {
1
+ @mixin br-card {
3
2
  border: 1px solid $c-grey-l87;
4
3
  border-radius: $border-radius-lg;
5
4
  background-color: white;
6
5
 
7
- + .card {
6
+ +.card {
8
7
  margin-top: 1rem;
9
8
  }
10
9
  }
11
10
 
12
- @mixin card-header {
11
+ @mixin br-card-header {
13
12
  border-bottom: 1px solid $c-grey-l87;
14
13
  padding: 1.5rem 1.75rem 1.25rem;
15
14
  background-color: transparent;
16
15
  }
17
16
 
18
- @mixin card-subtitle {
17
+ @mixin br-card-subtitle {
19
18
  color: $c-grey-l44 !important;
20
19
  font-size: $font-size-sm;
21
20
  font-weight: 400;
22
21
  margin: 0;
23
22
  }
24
23
 
25
- @mixin card-body {
24
+ @mixin br-card-body {
26
25
  padding: 1.75rem;
27
26
  }
28
27
 
29
- @mixin card-footer {
28
+ @mixin br-card-footer {
30
29
  padding: 1rem;
31
30
 
32
31
  @include media-breakpoint-up(md) {
@@ -34,22 +33,23 @@
34
33
  }
35
34
  }
36
35
 
37
- @mixin card-img {
36
+ @mixin br-card-img {
38
37
  border: 1px solid $c-grey-l65;
39
38
  margin-bottom: 1rem;
40
39
  max-width: 100%;
41
40
  }
42
41
 
43
- @mixin form-card {
42
+ @mixin br-form-card {
44
43
  .card-header {
45
- @include card-header;
44
+ @include br-card-header;
46
45
  }
46
+
47
47
  .card-body {
48
- @include card-body;
48
+ @include br-card-body;
49
49
  }
50
50
  }
51
51
 
52
- @mixin form-card-title {
52
+ @mixin br-form-card-title {
53
53
  font-size: $h1-font-size;
54
54
  margin: 0;
55
55
  }
@@ -1,173 +1,6 @@
1
- @mixin disabled {
2
-
3
- &:disabled,
4
- &.disabled {
5
- @content;
6
- }
7
- }
8
-
9
- @mixin small-button {
10
- padding: $padding-button-xs;
11
- font-size: $font-size-sm;
12
- }
13
-
14
- @mixin setup-button {
15
- @include fontfamily-black;
16
- border-radius: $border-radius-lg;
17
- padding: $padding-button-lg;
18
- text-decoration: none;
19
- font-size: 1.0625rem;
20
- text-align: center;
21
- transition: none;
22
- cursor: pointer;
23
- line-height: 1;
24
-
25
- &:focus {
26
- box-shadow: none;
27
- outline: none;
28
- }
29
-
30
- &[slim] {
31
- padding: $padding-button-sm;
32
- }
33
-
34
- &[large] {
35
- padding-bottom: $padding-button-md;
36
- padding-top: $padding-button-md;
37
- font-size: 1.125rem;
38
- }
39
-
40
- @include disabled {
41
- opacity: 1; // override bootstrap
42
- }
43
- }
44
-
45
- @mixin display-button($display: "ib", $gap: 1) {
46
- @if $display =="ib" {
47
- vertical-align: middle;
48
- display: inline-block;
49
-
50
- >* {
51
- vertical-align: middle;
52
- display: inline-block;
53
- }
54
- }
55
-
56
- @else if $display =="flex" {
57
- display: inline-flex;
58
- align-items: center;
59
- gap: #{$gap}rem;
60
- }
61
- }
62
-
63
- @mixin solid-button($background: $c-brand-generic,
64
- $color: white,
65
- $border: 1px,
66
- $padding: false,
67
- $margin: false,
68
- $line-height: false,
69
- $display: false,
70
- $font-size: false) {
71
- border: $border solid $background;
72
- background-color: $background;
73
- color: $color;
74
-
75
- @if $display {
76
- @if $padding {
77
- @include display-button($display, $padding * 0.625);
78
- }
79
-
80
- @else {
81
- @include display-button($display, 0.625);
82
- }
83
- }
84
-
85
- @if $line-height {
86
- line-height: $line-height;
87
- }
88
-
89
- @if $font-size {
90
- font-size: $font-size;
91
- }
92
-
93
- @if $padding {
94
- padding: $padding;
95
- }
96
-
97
- @if $margin {
98
- margin: $margin;
99
- }
100
-
101
- path {
102
- fill: currentColor;
103
- }
104
-
105
- @include focus {
106
- @include double-box($color, $background);
107
- border: $border solid $background;
108
- background-color: $background;
109
- color: $color;
110
- }
111
-
112
- &.hide {
113
- visibility: hidden;
114
- }
115
- }
116
-
117
- @mixin outline-button($color: $c-brand-generic,
118
- $background: white,
119
- $border: 1px,
120
- $padding: false,
121
- $margin: false,
122
- $line-height: false,
123
- $display: false,
124
- $font-size: false) {
125
- background-color: $background;
126
- border: $border solid $color;
127
- color: $color;
128
-
129
- @if $display {
130
- @if $padding {
131
- @include display-button($display, $padding * 0.625);
132
- }
133
-
134
- @else {
135
- @include display-button($display, 0.625);
136
- }
137
- }
138
-
139
- @if $line-height {
140
- line-height: $line-height;
141
- }
142
-
143
- @if $font-size {
144
- font-size: $font-size;
145
- }
146
-
147
- @if $padding {
148
- padding: $padding;
149
- }
150
-
151
- @if $margin {
152
- margin: $margin;
153
- }
154
-
155
- path {
156
- fill: $color;
157
- }
158
-
159
- @include focus {
160
- border: $border solid $color;
161
- background-color: $color;
162
- color: $background;
163
- box-shadow: none;
164
- outline: none;
165
-
166
- path {
167
- fill: $background;
168
- }
169
- }
170
- }
1
+ @import "buttons/setup";
2
+ @import "buttons/outline";
3
+ @import "buttons/solid";
171
4
 
172
5
  @mixin link-button($color: inherit,
173
6
  $background: transparent,
@@ -194,9 +27,12 @@
194
27
  padding: 0;
195
28
  }
196
29
 
197
- @mixin btn-primary {
30
+ @mixin btn-primary($min-width: true) {
198
31
  @include solid-button;
199
- min-width: 8rem;
32
+
33
+ @if $min-width {
34
+ min-width: 8rem;
35
+ }
200
36
 
201
37
  &[disabled="disabled"] {
202
38
  @include solid-button($c-grey-l21);
@@ -219,6 +55,10 @@
219
55
 
220
56
  @mixin btn-outline-primary {
221
57
  @include outline-button;
58
+
59
+ @include focus {
60
+ @include outline-button-focus;
61
+ }
222
62
  }
223
63
 
224
64
  @mixin btn-resale {
@@ -446,6 +286,49 @@
446
286
  }
447
287
  }
448
288
 
289
+ // Access Overlay Work -- Start
290
+
291
+ @mixin btn-membership-pill {
292
+ $colors: black, white;
293
+
294
+ @include outline-button($colors...);
295
+
296
+ @include focus {
297
+ @include outline-button-focus($colors...);
298
+ }
299
+
300
+ &[data-status="active"] {
301
+ @include outline-button-focus($colors...);
302
+ }
303
+ }
304
+
305
+ @mixin btn-priority-row {
306
+ @include btn-outline-primary;
307
+ @include display-button(flex, 0.5);
308
+ }
309
+
310
+ @mixin btn-login-to-book {
311
+ @include display-button(flex, 0.5);
312
+ @include btn-primary;
313
+ min-width: initial;
314
+ }
315
+
316
+ @mixin btn-sold-out {
317
+ @include display-button(flex, 0.5);
318
+ @include btn-secondary;
319
+ pointer-events: none;
320
+ min-width: initial;
321
+ }
322
+
323
+ @mixin btn-add-membership-to-basket {
324
+ @include solid-button($background:$c-brand-membership);
325
+ @include display-button(flex, 0.5);
326
+ }
327
+
328
+ // Access Overlay Work -- End
329
+
449
330
  @mixin btn-expand {
450
331
  display: block;
451
- }
332
+ }
333
+
334
+ @import "buttons/spektrix";
@@ -26,6 +26,16 @@
26
26
  }
27
27
  }
28
28
 
29
+ @mixin input-focus {
30
+ @include focus {
31
+ @content;
32
+ }
33
+
34
+ &:focus {
35
+ @content;
36
+ }
37
+ }
38
+
29
39
  @mixin focus-tabs {
30
40
  @include single-box($c-grey-l21);
31
41
  background-color: $c-grey-l21;
@@ -104,7 +114,16 @@
104
114
  position: absolute;
105
115
  @content;
106
116
  }
117
+
107
118
  @include not-focus-visible {
108
119
  @include sr-only;
109
120
  }
110
121
  }
122
+
123
+ @mixin spx-link-focus {
124
+
125
+ &:hover,
126
+ &:focus {
127
+ @content;
128
+ }
129
+ }
@@ -1,3 +1,29 @@
1
+ @mixin font-face($name: "SupremeLLWeb", $path: "/fonts/") {
2
+ @font-face {
3
+ font-family: "Supreme-Light";
4
+ src: url("#{$path}#{$name}-Light.woff") format("woff"),
5
+ url("#{$path}#{$name}-Light.woff2") format("woff2");
6
+ }
7
+
8
+ @font-face {
9
+ font-family: "Supreme-LightItalic";
10
+ src: url("#{$path}#{$name}-LightItalic.woff") format("woff"),
11
+ url("#{$path}#{$name}-LightItalic.woff2") format("woff2");
12
+ }
13
+
14
+ @font-face {
15
+ font-family: "Supreme-Black";
16
+ src: url("#{$path}#{$name}-Black.woff") format("woff"),
17
+ url("#{$path}#{$name}-Black.woff2") format("woff2");
18
+ }
19
+
20
+ @font-face {
21
+ font-family: "Supreme-BlackItalic";
22
+ src: url("#{$path}#{$name}-BlackItalic.woff") format("woff"),
23
+ url("#{$path}#{$name}-BlackItalic.woff2") format("woff2");
24
+ }
25
+ }
26
+
1
27
  @mixin fontfamily-light {
2
28
  font-family: $fontfamily-light;
3
29
  font-weight: 400;
@@ -11,12 +37,13 @@
11
37
  // https://caniuse.com/#search=font-smoothing
12
38
 
13
39
  @mixin font-smoothing($value: on) {
14
- @if $value == on {
40
+ @if $value ==on {
15
41
  -webkit-font-smoothing: antialiased;
16
42
  -moz-osx-font-smoothing: grayscale;
17
- } @else {
43
+ }
44
+
45
+ @else {
18
46
  -webkit-font-smoothing: subpixel-antialiased;
19
47
  -moz-osx-font-smoothing: auto;
20
48
  }
21
- }
22
-
49
+ }
@@ -0,0 +1,19 @@
1
+ @mixin br-heading($margin: 0) {
2
+ @include fontfamily-black;
3
+ margin: $margin;
4
+ }
5
+
6
+ @mixin br-h1 {
7
+ @include br-heading;
8
+ font-size: $h1-font-size;
9
+ }
10
+
11
+ @mixin br-h2 {
12
+ @include br-heading(toRem(32) 0 0);
13
+ font-size: $h2-font-size;
14
+ }
15
+
16
+ @mixin br-h3 {
17
+ @include br-heading(toRem(24) 0 0);
18
+ font-size: $h3-font-size;
19
+ }
@@ -1,7 +1,6 @@
1
-
2
1
  @import "input/generic";
3
2
  @import "input/status";
4
3
  @import "input/checkbox";
5
- @import "input/dropdown";
4
+ @import "input/select";
6
5
  @import "input/radio";
7
- @import "input/text";
6
+ @import "input/text";
@@ -0,0 +1,58 @@
1
+ @mixin outline-button($color: $c-brand-generic,
2
+ $background: white,
3
+ $border: 1px,
4
+ $padding: false,
5
+ $margin: false,
6
+ $line-height: false,
7
+ $display: false,
8
+ $font-size: false) {
9
+ background-color: $background;
10
+ border: $border solid $color;
11
+ color: $color;
12
+
13
+ @if $display {
14
+ @if $padding {
15
+ @include display-button($display, $padding * 0.625);
16
+ }
17
+
18
+ @else {
19
+ @include display-button($display, 0.625);
20
+ }
21
+ }
22
+
23
+ @if $line-height {
24
+ line-height: $line-height;
25
+ }
26
+
27
+ @if $font-size {
28
+ font-size: $font-size;
29
+ }
30
+
31
+ @if $padding {
32
+ padding: $padding;
33
+ }
34
+
35
+ @if $margin {
36
+ margin: $margin;
37
+ }
38
+
39
+ path {
40
+ fill: $color;
41
+ }
42
+
43
+ @include focus {
44
+ @include outline-button-focus($color, $background, $border)
45
+ }
46
+ }
47
+
48
+ @mixin outline-button-focus($color: $c-brand-generic, $background: white, $border: 1px) {
49
+ border: $border solid $color;
50
+ background-color: $color;
51
+ color: $background;
52
+ box-shadow: none;
53
+ outline: none;
54
+
55
+ path {
56
+ fill: $background;
57
+ }
58
+ }
@@ -0,0 +1,69 @@
1
+ @mixin disabled {
2
+
3
+ &:disabled,
4
+ &.disabled {
5
+ @content;
6
+ }
7
+ }
8
+
9
+ @mixin small-button {
10
+ padding: $padding-button-xs;
11
+ font-size: $font-size-sm;
12
+ }
13
+
14
+ @mixin setup-slim-button {
15
+ padding: $padding-button-slim; // formerly $padding-button-sm
16
+ }
17
+
18
+ @mixin setup-large-button {
19
+ padding-bottom: $padding-button-md;
20
+ padding-top: $padding-button-md;
21
+ font-size: 1.125rem;
22
+ }
23
+
24
+ @mixin setup-button {
25
+ @include fontfamily-black;
26
+ border-radius: $border-radius-lg;
27
+ padding: $padding-button-lg;
28
+ text-decoration: none;
29
+ font-size: 1.0625rem;
30
+ text-align: center;
31
+ transition: none;
32
+ cursor: pointer;
33
+ line-height: 1;
34
+
35
+ &:focus {
36
+ box-shadow: none;
37
+ outline: none;
38
+ }
39
+
40
+ &[slim] {
41
+ @include setup-slim-button;
42
+ }
43
+
44
+ &[large] {
45
+ @include setup-large-button;
46
+ }
47
+
48
+ @include disabled {
49
+ opacity: 1; // override bootstrap
50
+ }
51
+ }
52
+
53
+ @mixin display-button($display: "ib", $gap: 1) {
54
+ @if $display =="ib" {
55
+ vertical-align: middle;
56
+ display: inline-block;
57
+
58
+ >* {
59
+ vertical-align: middle;
60
+ display: inline-block;
61
+ }
62
+ }
63
+
64
+ @else if $display =="flex" {
65
+ display: inline-flex;
66
+ align-items: center;
67
+ gap: #{$gap}rem;
68
+ }
69
+ }
@@ -0,0 +1,57 @@
1
+ @mixin solid-button($background: $c-brand-generic,
2
+ $color: white,
3
+ $border: 1px,
4
+ $padding: false,
5
+ $margin: false,
6
+ $line-height: false,
7
+ $display: false,
8
+ $font-size: false) {
9
+ border: $border solid $background;
10
+ background-color: $background;
11
+ color: $color;
12
+
13
+ @if $display {
14
+ @if $padding {
15
+ @include display-button($display, $padding * 0.625);
16
+ }
17
+
18
+ @else {
19
+ @include display-button($display, 0.625);
20
+ }
21
+ }
22
+
23
+ @if $line-height {
24
+ line-height: $line-height;
25
+ }
26
+
27
+ @if $font-size {
28
+ font-size: $font-size;
29
+ }
30
+
31
+ @if $padding {
32
+ padding: $padding;
33
+ }
34
+
35
+ @if $margin {
36
+ margin: $margin;
37
+ }
38
+
39
+ path {
40
+ fill: currentColor;
41
+ }
42
+
43
+ @include focus {
44
+ @include solid-button-focus($color, $background, $border);
45
+ }
46
+
47
+ &.hide {
48
+ visibility: hidden;
49
+ }
50
+ }
51
+
52
+ @mixin solid-button-focus($color: white, $background: $c-brand-generic, $border: 1px) {
53
+ @include double-box($color, $background);
54
+ border: $border solid $background;
55
+ background-color: $background;
56
+ color: $color;
57
+ }
@@ -0,0 +1,46 @@
1
+ @mixin spx-btn-primary {
2
+ @include btn-primary;
3
+
4
+ &:focus {
5
+ @include solid-button-focus;
6
+ }
7
+ }
8
+
9
+ @mixin spx-btn-outline-primary {
10
+ @include btn-outline-primary;
11
+
12
+ &:focus {
13
+ @include outline-button-focus;
14
+ }
15
+ }
16
+
17
+ @mixin spx-btn-secondary {
18
+ @include btn-secondary;
19
+
20
+ &:focus {
21
+ @include solid-button-focus($c-grey-l21);
22
+ }
23
+ }
24
+
25
+ @mixin spx-btn-outline-secondary {
26
+ @include btn-outline-secondary;
27
+
28
+ &:focus {
29
+ @include outline-button-focus($c-grey-l21);
30
+ }
31
+ }
32
+
33
+ @mixin spx-btn-preffered-card {
34
+ @include setup-button;
35
+ @include spx-btn-outline-secondary;
36
+ padding: $padding-button-slim;
37
+ font-size: $font-size-sm;
38
+ display: inline-block;
39
+ user-select: none;
40
+ cursor: default;
41
+
42
+ &:hover {
43
+ background-color: white;
44
+ color: inherit;
45
+ }
46
+ }