barbican-reset 3.4.0 → 3.6.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 (99) hide show
  1. package/animations/confirm.js +9 -12
  2. package/components/AccountTitle.vue +4 -1
  3. package/components/BrAlert.vue +2 -0
  4. package/components/BrContainer.vue +1 -1
  5. package/components/EventSummary.vue +9 -3
  6. package/css/index.css +116 -124
  7. package/package.json +7 -2
  8. package/patterns/scss/styles.scss +4 -4
  9. package/scss/_app.scss +2 -22
  10. package/scss/_atomic.scss +12 -5
  11. package/scss/_br-alert.scss +5 -0
  12. package/scss/_br-button.scss +3 -0
  13. package/scss/_br-checkbox.scss +6 -0
  14. package/scss/_br-container.scss +3 -0
  15. package/scss/_br-footer.scss +1 -0
  16. package/scss/_br-form-password.scss +3 -1
  17. package/scss/_br-form-row.scss +3 -0
  18. package/scss/_br-form-update.scss +3 -1
  19. package/scss/_br-loader.scss +5 -0
  20. package/scss/_br-promo.scss +3 -1
  21. package/scss/_br-radio.scss +3 -0
  22. package/scss/_br-select.scss +2 -0
  23. package/scss/_br-skiplink.scss +2 -0
  24. package/scss/_br-wrap.scss +2 -0
  25. package/scss/_card-deck.scss +4 -0
  26. package/scss/_city-of-london.scss +1 -0
  27. package/scss/_close-icon.scss +4 -0
  28. package/scss/_font.scss +8 -9
  29. package/scss/_footer.scss +3 -1
  30. package/scss/_header.scss +4 -2
  31. package/scss/_helpers.scss +3 -4
  32. package/scss/_input.scss +5 -0
  33. package/scss/_main.scss +2 -0
  34. package/scss/_table.scss +28 -13
  35. package/scss/card/_account.scss +2 -0
  36. package/scss/card/_block.scss +1 -0
  37. package/scss/card/_confirm.scss +2 -0
  38. package/scss/card/_login.scss +2 -0
  39. package/scss/card/_membership.scss +2 -0
  40. package/scss/card/_password.scss +2 -0
  41. package/scss/card/_related.scss +3 -2
  42. package/scss/card/_video-help.scss +2 -1
  43. package/scss/card/index.scss +11 -9
  44. package/scss/helpers/functions/index.scss +4 -2
  45. package/scss/helpers/mixins/_basket.scss +2 -0
  46. package/scss/helpers/mixins/_br-alert.scss +7 -0
  47. package/scss/helpers/mixins/_br-card.scss +5 -0
  48. package/scss/helpers/mixins/_br-footer.scss +3 -0
  49. package/scss/helpers/mixins/_br-form-row.scss +3 -0
  50. package/scss/helpers/mixins/_br-form-update.scss +3 -0
  51. package/scss/helpers/mixins/_br-skiplink.scss +3 -0
  52. package/scss/helpers/mixins/_buttons.scss +5 -356
  53. package/scss/helpers/mixins/_city-of-london.scss +3 -1
  54. package/scss/helpers/mixins/_content.scss +3 -0
  55. package/scss/helpers/mixins/_core.scss +19 -1
  56. package/scss/helpers/mixins/_festival.scss +4 -0
  57. package/scss/helpers/mixins/_focus.scss +5 -2
  58. package/scss/helpers/mixins/_headings.scss +3 -0
  59. package/scss/helpers/mixins/_input.scss +6 -6
  60. package/scss/helpers/mixins/_loading.scss +37 -20
  61. package/scss/helpers/mixins/_table.scss +13 -48
  62. package/scss/helpers/mixins/account/_orders.scss +2 -0
  63. package/scss/helpers/mixins/buttons/_custom.scss +360 -0
  64. package/scss/helpers/mixins/buttons/_outline.scss +3 -0
  65. package/scss/helpers/mixins/buttons/_setup.scss +4 -0
  66. package/scss/helpers/mixins/buttons/_solid.scss +3 -0
  67. package/scss/helpers/mixins/buttons/_spektrix.scss +6 -0
  68. package/scss/helpers/mixins/drupal/_br-search-form.scss +6 -0
  69. package/scss/helpers/mixins/drupal/_br-site-logo.scss +3 -1
  70. package/scss/helpers/mixins/drupal/index.scss +6 -7
  71. package/scss/helpers/mixins/index.scss +21 -39
  72. package/scss/helpers/mixins/input/_checkbox.scss +2 -0
  73. package/scss/helpers/mixins/input/_generic.scss +5 -0
  74. package/scss/helpers/mixins/input/_radio.scss +2 -0
  75. package/scss/helpers/mixins/input/_select.scss +4 -0
  76. package/scss/helpers/mixins/input/_status.scss +13 -10
  77. package/scss/helpers/mixins/input/_text.scss +6 -0
  78. package/scss/helpers/mixins/table/_basket.scss +7 -2
  79. package/scss/helpers/mixins/table/_details.scss +8 -2
  80. package/scss/helpers/mixins/table/_etickets.scss +10 -2
  81. package/scss/helpers/mixins/table/_generic.scss +40 -0
  82. package/scss/helpers/mixins/table/_gifts.scss +10 -3
  83. package/scss/helpers/mixins/table/_membership.scss +5 -2
  84. package/scss/helpers/mixins/table/_orders.scss +7 -1
  85. package/scss/helpers/mixins/table/_preferences.scss +11 -2
  86. package/scss/helpers/mixins/table/_resale.scss +5 -1
  87. package/scss/helpers/mixins/table/_section.scss +2 -1
  88. package/scss/helpers/mixins/table/_simple.scss +5 -2
  89. package/scss/helpers/mixins/table/_tickets.scss +10 -3
  90. package/scss/helpers/mixins/table/row/_disabled.scss +3 -2
  91. package/scss/helpers/variables/_alerts.scss +2 -0
  92. package/scss/helpers/variables/_columns.scss +9 -9
  93. package/scss/helpers/variables/_layout.scss +1 -1
  94. package/scss/helpers/variables/_typography.scss +2 -0
  95. package/scss/helpers/variables/colors/_brand.scss +8 -4
  96. package/scss/helpers/variables/colors/index.scss +11 -6
  97. package/scss/helpers/variables/index.scss +5 -10
  98. package/scss/index.scss +31 -31
  99. package/scss/_btn.scss +0 -163
@@ -1,356 +1,5 @@
1
- @import "buttons/setup";
2
- @import "buttons/outline";
3
- @import "buttons/solid";
4
-
5
- @mixin link-button($color: inherit,
6
- $background: transparent,
7
- $padding: 0,
8
- $line-height: false) {
9
- background-color: $background;
10
- text-decoration: underline;
11
- vertical-align: baseline;
12
- padding: $padding;
13
- border-radius: 0;
14
- font-weight: normal;
15
- text-align: left;
16
- color: $color;
17
- border: none;
18
-
19
- @if $line-height {
20
- line-height: $line-height;
21
- }
22
- }
23
-
24
- @mixin invisible-button {
25
- background-color: transparent;
26
- border: none;
27
- padding: 0;
28
- }
29
-
30
- @mixin btn-primary($min-width: true) {
31
- @include solid-button;
32
-
33
- @if $min-width {
34
- min-width: 8rem;
35
- }
36
-
37
- &[disabled="disabled"] {
38
- @include solid-button($c-grey-l21);
39
- cursor: not-allowed;
40
- }
41
- }
42
-
43
- @mixin btn-returns {
44
- @include solid-button($padding: 0.75em);
45
- white-space: nowrap;
46
-
47
- @include disabled {
48
- @include btn-outline-secondary;
49
- }
50
- }
51
-
52
- @mixin btn-cancel-returns {
53
- @include solid-button($background: $c-grey-l21, $padding: 0.75em);
54
- }
55
-
56
- @mixin btn-outline-primary {
57
- @include outline-button;
58
-
59
- @include focus {
60
- @include outline-button-focus;
61
- }
62
- }
63
-
64
- @mixin btn-resale {
65
- @include outline-button($padding: 0.625em, $font-size: $font-size-sm);
66
- }
67
-
68
- @mixin btn-secondary {
69
- @include solid-button($c-grey-l21);
70
- }
71
-
72
- @mixin btn-outline-secondary {
73
- @include outline-button($c-grey-l21);
74
- }
75
-
76
- @mixin btn-outline-header {
77
- @include outline-button($color: white,
78
- $background: $c-brand-generic,
79
- $border: 0.125rem);
80
- @include flex-button;
81
- }
82
-
83
- @mixin btn-input-edit {
84
- @include outline-button($c-grey-l44);
85
- background-color: $c-grey-l87;
86
- border-bottom-left-radius: 0;
87
- border-top-left-radius: 0;
88
- border-color: $c-grey-l65;
89
- padding: 0.625rem 0.75rem;
90
- }
91
-
92
- @mixin btn-cinema {
93
- @include solid-button($c-brand-cinema);
94
- }
95
-
96
- @mixin btn-info {
97
- @include solid-button($c-status-neutral);
98
- }
99
-
100
- @mixin btn-outline-info {
101
- @include outline-button($c-status-neutral);
102
- }
103
-
104
- @mixin btn-outline-cinema {
105
- @include outline-button($c-brand-cinema);
106
- }
107
-
108
- @mixin btn-remove {
109
- @include solid-button($background: $c-grey-l21,
110
- $padding: 0.625em,
111
- $line-height: 1.375);
112
- }
113
-
114
- @mixin btn-link {
115
- @include link-button($line-height: 1.3);
116
-
117
- @include focus {
118
- @include focus-tabs;
119
- }
120
- }
121
-
122
- @mixin btn-video-help {
123
- @include link-button($padding: 1.25em, $background: $c-grey-l96);
124
- font-weight: bold;
125
- width: 100%;
126
-
127
- @include focus {
128
- background-color: $c-grey-l44;
129
- color: white;
130
- }
131
- }
132
-
133
- @mixin btn-exit {
134
- @include link-button;
135
-
136
- svg {
137
- display: block;
138
- }
139
-
140
- @include focus {
141
- @include single-box(currentColor,
142
- 0.1875rem); // @BUG: safari outline + border-radius
143
- border-radius: 50%;
144
-
145
- path.cross {
146
- fill: white;
147
- }
148
-
149
- path.tint {
150
- fill: currentColor;
151
- }
152
- }
153
- }
154
-
155
- @mixin btn-remove-ticket {
156
- @include small-down {
157
- @include btn-remove;
158
- width: 100%;
159
- }
160
-
161
- @include small-up {
162
- @include btn-link;
163
- }
164
- }
165
-
166
- @mixin btn-remove-gift {
167
- @include x-large-down {
168
- @include btn-remove;
169
- width: 100%;
170
- }
171
-
172
- @include x-large-up {
173
- @include btn-link;
174
- }
175
- }
176
-
177
- @mixin btn-membership-card {
178
- @include outline-button($color: white, $background: transparent);
179
-
180
- @include focus {
181
- &.member {
182
- color: $c-brand-membership;
183
- }
184
-
185
- &.member-plus {
186
- color: $c-brand-membership-dark;
187
- }
188
- }
189
- }
190
-
191
- @mixin btn-video-login {
192
- @include solid-button($background: white, $color: #0a0a0a);
193
- }
194
-
195
- @mixin btn-cta {
196
- @include solid-button($background: $c-grey-l21);
197
- @include flex-button;
198
- fill: white;
199
- }
200
-
201
- @mixin btn-carousel {
202
- @include solid-button($c-grey-l21);
203
- @include single-box(white);
204
- border-radius: 50%;
205
- font-size: 0;
206
- fill: white;
207
-
208
- @include large-down {
209
- padding: 0.75rem;
210
- }
211
-
212
- &:disabled {
213
- background-color: $c-grey-l87;
214
- border-color: $c-grey-l87;
215
- opacity: 1;
216
- }
217
-
218
- label {
219
- @include sr-only;
220
- }
221
- }
222
-
223
- @mixin btn-menu-focus($brand: $c-brand-generic) {
224
- background-color: white;
225
- color: $brand;
226
-
227
- path {
228
- fill: currentColor;
229
- }
230
- }
231
-
232
- @mixin btn-menu {
233
- @include outline-button($color: white,
234
- $background: $c-brand-generic,
235
- $padding: 0 0.75rem,
236
- $margin: 0.25rem,
237
- $line-height: 2.375rem);
238
- @include flex-button($gap: 0.75rem);
239
- vertical-align: middle;
240
- min-height: 2.5rem;
241
-
242
- @include focus {
243
- @include btn-menu-focus;
244
- }
245
-
246
- @include data("clicked") {
247
- @include btn-menu-focus;
248
- }
249
- }
250
-
251
- @mixin btn-basket {
252
- @include solid-button($background: white,
253
- $color: $c-brand-generic,
254
- $padding: 0 0.75rem,
255
- $margin: 0.25rem,
256
- $line-height: 2.375rem);
257
- @include flex-button($gap: 0.5rem);
258
- vertical-align: middle;
259
- min-height: 2.5rem;
260
-
261
- @include focus {
262
- @include btn-menu-focus;
263
- }
264
-
265
- @include data("clicked") {
266
- @include btn-menu-focus;
267
- }
268
- }
269
-
270
- @mixin btn-discover {
271
- @include outline-button(white, $c-grey-l21);
272
- @include flex-button($gap: 0.75rem);
273
-
274
- span {
275
- position: relative;
276
- top: 0.125rem;
277
- }
278
- }
279
-
280
- @mixin btn-invisible {
281
- color: inherit;
282
- border: none;
283
- padding: 0;
284
-
285
- @include focus {
286
- box-shadow: none;
287
- }
288
- }
289
-
290
- @mixin btn-membership-pill {
291
- @include outline-button($c-grey-l11, white);
292
-
293
- $border: 1px solid $c-grey-l11;
294
-
295
- &:hover {
296
- @include outline-button-focus($c-grey-l87, $c-grey-l11, $border);
297
- }
298
-
299
- @include focus-visible {
300
- @include outline-button-focus($c-grey-l87, $c-grey-l11, $border);
301
- outline: $border;
302
- }
303
-
304
- &[data-status="active"] {
305
- @include outline-button-focus($c-grey-l11, white, $border);
306
-
307
- @include focus {
308
- outline: 2px solid $c-grey-l11;
309
- outline-offset: toRem(2);
310
- }
311
- }
312
- }
313
-
314
- @mixin btn-priority-row {
315
- @include btn-outline-primary;
316
- @include flex-button($gap: 0.5rem);
317
- }
318
-
319
- @mixin btn-login-to-book {
320
- @include btn-primary;
321
- @include flex-button($gap: 0.5rem);
322
- }
323
-
324
- @mixin btn-sold-out {
325
- @include btn-secondary;
326
- @include flex-button($gap: 0.5rem);
327
- pointer-events: none;
328
- min-width: initial;
329
- }
330
-
331
- @mixin btn-add-membership-to-basket {
332
- @include solid-button($background: $c-brand-membership);
333
- @include flex-button($gap: 0.5rem);
334
- }
335
-
336
- @mixin btn-remove-membership-from-basket {
337
- @include solid-button($background: $c-status-error);
338
- @include flex-button($gap: 0.5rem);
339
- }
340
-
341
- @mixin btn-additional-information {
342
- @include btn-outline-primary;
343
- @include flex-button($gap: 0.5rem);
344
- }
345
-
346
- @mixin btn-toggle-password {
347
- @include btn-secondary;
348
- place-items: center;
349
- padding: 0;
350
- }
351
-
352
- @mixin btn-expand {
353
- display: block;
354
- }
355
-
356
- @import "buttons/spektrix";
1
+ @forward "buttons/setup";
2
+ @forward "buttons/outline";
3
+ @forward "buttons/solid";
4
+ @forward "buttons/custom";
5
+ @forward "buttons/spektrix";
@@ -1,3 +1,5 @@
1
+ @use "../mixins/focus" as *;
2
+
1
3
  @mixin city-of-london-lockup {
2
4
  text-decoration: none;
3
5
  display: inline-flex;
@@ -8,4 +10,4 @@
8
10
  text-decoration: underline;
9
11
  outline: none;
10
12
  }
11
- }
13
+ }
@@ -1,3 +1,6 @@
1
+ @use "../mixins/breakpoints" as *;
2
+ @use "../variables/layout" as *;
3
+
1
4
  @mixin content_masthead {
2
5
  background-color: white;
3
6
  box-shadow: 0 5px 5px rgba(black, 0.1);
@@ -1,4 +1,4 @@
1
- @mixin inline-block($align:middle) {
1
+ @mixin inline-block($align: middle) {
2
2
  vertical-align: $align;
3
3
  display: inline-block;
4
4
  }
@@ -15,4 +15,22 @@
15
15
  @mixin set-appearance($value: none) {
16
16
  -webkit-appearance: $value;
17
17
  -moz-appearance: $value;
18
+ }
19
+
20
+ @mixin inset($val: 0) {
21
+ bottom: $val;
22
+ right: $val;
23
+ left: $val;
24
+ top: $val;
25
+ }
26
+
27
+ @mixin sr-only {
28
+ clip: rect(0, 0, 0, 0);
29
+ position: absolute;
30
+ overflow: hidden;
31
+ margin: -1px;
32
+ height: 1px;
33
+ padding: 0;
34
+ width: 1px;
35
+ border: 0;
18
36
  }
@@ -1,3 +1,7 @@
1
+ @use "../variables/colors" as *;
2
+ @use "../mixins/breakpoints" as *;
3
+ @use "../variables/layout" as *;
4
+
1
5
  @mixin narrow-width {
2
6
  max-width: 20rem;
3
7
 
@@ -1,3 +1,6 @@
1
+ @use "../variables/colors" as *;
2
+ @use "../mixins/core" as *;
3
+
1
4
  @mixin focus-visible {
2
5
  &[data-focus-visible-added] {
3
6
  @content;
@@ -45,7 +48,7 @@
45
48
  // @mixin focus-tabs-dark {
46
49
  // @include single-box(white);
47
50
  // background-color: white;
48
- // color: $black;
51
+ // color: black;
49
52
  // } // deprecated
50
53
 
51
54
  @mixin box-setup {
@@ -54,7 +57,7 @@
54
57
  z-index: 2;
55
58
  }
56
59
 
57
- @mixin double-box($bg: white, $col: $black, $bg_size: 0.25rem, $col_size: 0.15rem) {
60
+ @mixin double-box($bg: white, $col: black, $bg_size: 0.25rem, $col_size: 0.15rem) {
58
61
  @include box-setup;
59
62
  box-shadow: 0 0 0 $bg_size $bg, 0 0 0 ($bg_size + $col_size) $col;
60
63
  }
@@ -1,3 +1,6 @@
1
+ @use "../variables/typography" as *;
2
+ @use "../functions" as *;
3
+
1
4
  /// Generic margin/font weight reset for title headings
2
5
  /// @param {String} $margin [0] - pixel value
3
6
  @mixin br-heading($margin: 0) {
@@ -1,6 +1,6 @@
1
- @import "input/generic";
2
- @import "input/status";
3
- @import "input/checkbox";
4
- @import "input/select";
5
- @import "input/radio";
6
- @import "input/text";
1
+ @forward "input/generic";
2
+ @forward "input/status";
3
+ @forward "input/checkbox";
4
+ @forward "input/select";
5
+ @forward "input/radio";
6
+ @forward "input/text";
@@ -1,31 +1,43 @@
1
+ @use "../mixins/core" as *;
2
+ @use "../variables/colors" as *;
3
+
1
4
  @mixin loading-icon($size: 0.75rem) {
2
5
  @include inline-block;
3
- border-radius: 50%;
4
- position: absolute;
5
- height: $size;
6
- width: $size;
7
- content: "";
6
+
7
+ & {
8
+ border-radius: 50%;
9
+ position: absolute;
10
+ height: $size;
11
+ width: $size;
12
+ content: "";
13
+ }
8
14
  }
9
15
 
10
16
  @mixin placeholder($color: $br-gray-300) {
11
- background-color: $color;
12
- color: $color;
13
- cursor: wait;
17
+ & {
18
+ background-color: $color;
19
+ color: $color;
20
+ cursor: wait;
21
+ }
22
+
14
23
  }
15
24
 
16
25
  @mixin placeholder-animation($color: $br-gray-400, $width: false) {
17
26
  @include inline-block;
18
- background-color: $color;
19
- position: relative;
20
- overflow: hidden;
21
- color: $color;
22
- cursor: wait;
23
-
24
- @if $width {
25
- width: $width;
26
- }
27
27
 
28
- $background: lighten($color, 40%);
28
+ & {
29
+ background-color: $color;
30
+ position: relative;
31
+ overflow: hidden;
32
+ color: $color;
33
+ cursor: wait;
34
+
35
+ @if $width {
36
+ width: $width;
37
+ }
38
+
39
+ $background: lighten($color, 40%);
40
+ }
29
41
 
30
42
  &::before {
31
43
  background: linear-gradient(to right, rgba($background, 0) 45%, rgba($background, 0.35) 50%, rgba($background, 0) 55%) 50% 50%;
@@ -42,7 +54,12 @@
42
54
  }
43
55
 
44
56
  @keyframes placeholder {
45
- 0% { transform: translate3d(-30%, 0, 0); }
46
- 100% { transform: translate3d(30%, 0, 0); }
57
+ 0% {
58
+ transform: translate3d(-30%, 0, 0);
59
+ }
60
+
61
+ 100% {
62
+ transform: translate3d(30%, 0, 0);
63
+ }
47
64
  }
48
65
  }
@@ -1,48 +1,13 @@
1
- @mixin table-row($gap: 0.75rem) {
2
- border-bottom: 1px solid $c-grey-l87;
3
- padding-bottom: $gap;
4
- padding-top: $gap;
5
- }
6
-
7
- @mixin table-link--focus {
8
- @include focus-tabs;
9
- }
10
-
11
- @mixin table-label($mq: $medium) {
12
- font-size: $br-font-size-lg;
13
- margin-bottom: 0.25rem;
14
-
15
- @include min-width($mq) {
16
- @include sr-only;
17
- }
18
- }
19
-
20
- @mixin default-table-style {
21
-
22
- th,
23
- td {
24
- @include medium-up {
25
- &:not(:last-of-type) {
26
- border-right: 1px solid $c-grey-l87;
27
- }
28
-
29
- &:last-of-type {
30
- text-align: right;
31
- }
32
- }
33
- }
34
- }
35
-
36
- @import "table/simple";
37
- @import "table/basket";
38
- @import "table/details";
39
- @import "table/etickets";
40
- @import "table/gifts";
41
- @import "table/membership";
42
- @import "table/orders";
43
- @import "table/preferences";
44
- @import "table/resale";
45
- @import "table/section";
46
- @import "table/tickets";
47
-
48
- @import "table/row/disabled";
1
+ @use "table/basket";
2
+ @use "table/details";
3
+ @use "table/etickets";
4
+ @use "table/generic";
5
+ @use "table/gifts";
6
+ @use "table/membership";
7
+ @use "table/orders";
8
+ @use "table/preferences";
9
+ @use "table/resale";
10
+ @use "table/row/disabled";
11
+ @use "table/section";
12
+ @use "table/simple";
13
+ @use "table/tickets";
@@ -1,3 +1,5 @@
1
+ @use "../../mixins/breakpoints" as *;
2
+
1
3
  @mixin row {
2
4
  grid-template-columns: 10rem 8rem auto 7rem;
3
5
  margin-bottom: 0.625rem;