barbican-reset 2.19.0 → 2.21.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 (52) hide show
  1. package/components/account_title.vue +6 -3
  2. package/components/br_form_block.vue +1 -1
  3. package/components/event_summary.vue +2 -2
  4. package/components/related_title.vue +1 -1
  5. package/helpers/functions/index.scss +12 -1
  6. package/helpers/mixins/_br-alert.scss +5 -3
  7. package/helpers/mixins/{_card.scss → _br-card.scss} +12 -12
  8. package/helpers/mixins/_buttons.scss +17 -175
  9. package/helpers/mixins/_focus.scss +19 -0
  10. package/helpers/mixins/_font.scss +31 -4
  11. package/helpers/mixins/_headings.scss +19 -0
  12. package/helpers/mixins/_input.scss +2 -3
  13. package/helpers/mixins/buttons/_outline.scss +58 -0
  14. package/helpers/mixins/buttons/_setup.scss +69 -0
  15. package/helpers/mixins/buttons/_solid.scss +57 -0
  16. package/helpers/mixins/buttons/_spektrix.scss +46 -0
  17. package/helpers/mixins/index.scss +3 -2
  18. package/helpers/mixins/input/_checkbox.scss +10 -4
  19. package/helpers/mixins/input/_generic.scss +18 -14
  20. package/helpers/mixins/input/_radio.scss +18 -2
  21. package/helpers/mixins/input/{_dropdown.scss → _select.scss} +12 -2
  22. package/helpers/mixins/input/_text.scss +8 -2
  23. package/helpers/mixins/table/_basket.scss +1 -1
  24. package/helpers/mixins/table/_details.scss +1 -1
  25. package/helpers/mixins/table/_etickets.scss +1 -1
  26. package/helpers/mixins/table/_gifts.scss +1 -1
  27. package/helpers/mixins/table/_orders.scss +1 -1
  28. package/helpers/mixins/table/_preferences.scss +1 -1
  29. package/helpers/mixins/table/_tickets.scss +1 -1
  30. package/helpers/variables/_layout.scss +2 -2
  31. package/helpers/variables/_typography.scss +28 -3
  32. package/helpers/variables/index.scss +1 -2
  33. package/package.json +1 -1
  34. package/patterns/scss/colors/_brand.scss +11 -10
  35. package/scss/{_custom-checkbox.scss → _br-checkbox.scss} +9 -5
  36. package/scss/_br-form-row.scss +1 -1
  37. package/scss/_br-loader.scss +12 -3
  38. package/scss/{_custom-radio.scss → _br-radio.scss} +4 -3
  39. package/scss/_br-select.scss +3 -0
  40. package/scss/_btn.scss +1 -1
  41. package/scss/_form.scss +1 -1
  42. package/scss/_input.scss +1 -4
  43. package/scss/_klaro.scss +12 -12
  44. package/scss/_list.scss +6 -2
  45. package/scss/card/_confirm.scss +2 -3
  46. package/scss/card/_login.scss +2 -3
  47. package/scss/card/_password.scss +1 -2
  48. package/scss/card/index.scss +6 -7
  49. package/scss/index.scss +48 -21
  50. package/helpers/variables/_fonts.scss +0 -4
  51. package/scss/_custom-select.scss +0 -3
  52. package/scss/_fonts.scss +0 -27
@@ -23,8 +23,7 @@ export default {
23
23
 
24
24
  <style lang="scss" module>
25
25
 
26
- .title {
27
- font-size: $h2-font-size;
26
+ @mixin title {
28
27
  margin-bottom: 1.25rem;
29
28
 
30
29
  @include media-breakpoint-up(md) {
@@ -32,8 +31,12 @@ export default {
32
31
  }
33
32
  }
34
33
 
34
+ .title {
35
+ @include title;
36
+ }
37
+
35
38
  .placeholder {
36
- composes: title;
39
+ @include title;
37
40
  @include placeholder;
38
41
  width: 30%;
39
42
  }
@@ -13,11 +13,11 @@
13
13
  <style lang="scss" module>
14
14
 
15
15
  .container {
16
+ @include fontfamily-black;
16
17
  padding: 0.875rem 0.75rem 0.625rem 0.75rem;
17
18
  border-left: 0.25rem solid;
18
19
  background: $c-grey-l96;
19
20
  margin-bottom: 1rem;
20
- font-weight: 700;
21
21
  }
22
22
 
23
23
  </style>
@@ -41,6 +41,7 @@ export default {
41
41
 
42
42
  <style lang="scss" module>
43
43
  @mixin title {
44
+ @include fontfamily-black;
44
45
  letter-spacing: $headings-letter-spacing;
45
46
  line-height: $line-height-sm;
46
47
  }
@@ -49,7 +50,7 @@ export default {
49
50
  @include title;
50
51
  font-size: $h5-font-size;
51
52
  color: $c-grey-l44;
52
- font-weight: normal;
53
+ font-weight: 400;
53
54
 
54
55
  @include media-breakpoint-up(md) {
55
56
  font-size: $h4-font-size;
@@ -97,7 +98,6 @@ export default {
97
98
 
98
99
  .title {
99
100
  @include title;
100
- font-weight: $headings-font-weight;
101
101
  font-size: $h2-font-size;
102
102
  margin-bottom: 0.75rem;
103
103
  }
@@ -33,9 +33,9 @@ export default {
33
33
  }
34
34
 
35
35
  .title {
36
+ @include fontfamily-black;
36
37
  font-size: $h5-font-size;
37
38
  margin-bottom: 3rem;
38
- font-weight: bold;
39
39
 
40
40
  @include media-breakpoint-up(md) {
41
41
  grid-template-columns: 1fr auto 1fr;
@@ -7,5 +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
+ }
12
+
13
+ @function toRem($value) {
14
+ @return ($value * 0.0625)+rem;
15
+ }
16
+
17
+ @function font-family($name: "SupremeLLWeb") {
18
+ @return #{$name},
19
+ "Helvetica",
20
+ "Arial",
21
+ sans-serif;
11
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
  }
@@ -63,8 +65,8 @@
63
65
  }
64
66
 
65
67
  @mixin br-alert--title {
68
+ @include fontfamily-black;
66
69
  margin-bottom: 0.25rem;
67
- font-weight: 700;
68
70
  }
69
71
 
70
72
  @mixin br-alert--flex {
@@ -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,
@@ -176,9 +9,9 @@
176
9
  background-color: $background;
177
10
  text-decoration: underline;
178
11
  vertical-align: baseline;
179
- font-weight: inherit;
180
12
  padding: $padding;
181
13
  border-radius: 0;
14
+ font-weight: 400;
182
15
  text-align: left;
183
16
  color: $color;
184
17
  border: none;
@@ -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 {
@@ -282,7 +122,7 @@
282
122
 
283
123
  @mixin btn-video-help {
284
124
  @include link-button($padding: 1.25em, $background: $c-grey-l96);
285
- font-weight: 700;
125
+ @include fontfamily-black;
286
126
  width: 100%;
287
127
 
288
128
  @include focus {
@@ -448,4 +288,6 @@
448
288
 
449
289
  @mixin btn-expand {
450
290
  display: block;
451
- }
291
+ }
292
+
293
+ @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
+ }