barbican-reset 2.53.0 → 2.55.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.
- package/components/BrCard.vue +48 -4
- package/components/BrCardBody.vue +20 -0
- package/components/BrCardTitle.vue +1 -1
- package/components/BrFormBlock.vue +1 -1
- package/components/BrFormCheckbox/Component.vue +22 -5
- package/components/BrFormCheckboxGroup/Component.vue +13 -9
- package/components/BrFormInput/Component.vue +7 -4
- package/components/BrFormPassword.vue +8 -12
- package/components/BrFormRadio/Component.vue +30 -11
- package/components/BrFormRadioGroup/Component.vue +25 -8
- package/components/BrFormTextarea/Component.vue +5 -5
- package/components/EventSummary.vue +7 -4
- package/css/index.css +333 -175
- package/index.js +16 -7
- package/package.json +1 -1
- package/patterns/scss/styles.scss +1 -2
- package/scss/_atomic.scss +9 -83
- package/scss/_br-button.scss +1 -1
- package/scss/_br-form-row.scss +1 -1
- package/scss/_btn.scss +1 -1
- package/scss/_font.scss +51 -0
- package/scss/_form.scss +3 -3
- package/scss/_klaro.scss +6 -6
- package/scss/_list.scss +0 -1
- package/scss/_table.scss +42 -13
- package/scss/atomic/font-weights.scss +11 -0
- package/scss/atomic/margins.scss +17 -0
- package/scss/atomic/min-heights.scss +9 -0
- package/scss/atomic/paddings.scss +16 -0
- package/scss/atomic/text-aligns.scss +11 -0
- package/scss/card/_account.scss +1 -0
- package/scss/card/_login.scss +1 -2
- package/scss/card/index.scss +5 -95
- package/scss/helpers/mixins/_br-alert.scss +1 -1
- package/scss/helpers/mixins/_br-card.scss +14 -7
- package/scss/helpers/mixins/_buttons.scss +3 -2
- package/scss/helpers/mixins/_headings.scss +1 -1
- package/scss/helpers/mixins/buttons/_setup.scss +3 -14
- package/scss/helpers/mixins/index.scss +0 -1
- package/scss/helpers/mixins/input/_generic.scss +1 -1
- package/scss/helpers/mixins/input/_radio.scss +1 -1
- package/scss/helpers/mixins/input/_select.scss +1 -1
- package/scss/helpers/mixins/table/_basket.scss +8 -9
- package/scss/helpers/mixins/table/_details.scss +1 -1
- package/scss/helpers/mixins/table/_etickets.scss +1 -1
- package/scss/helpers/mixins/table/_gifts.scss +1 -1
- package/scss/helpers/mixins/table/_orders.scss +1 -1
- package/scss/helpers/mixins/table/_preferences.scss +1 -1
- package/scss/helpers/mixins/table/_tickets.scss +1 -1
- package/scss/helpers/variables/_typography.scss +0 -10
- package/scss/index.scss +2 -9
- package/components/BrFormCheckbox/Demo.vue +0 -27
- package/components/BrFormCheckboxGroup/Demo.vue +0 -42
- package/components/BrFormInput/Demo.vue +0 -64
- package/components/BrFormRadio/Demo.vue +0 -33
- package/components/BrFormRadioGroup/Demo.vue +0 -22
- package/components/BrFormTextarea/Demo.vue +0 -22
- package/scss/helpers/mixins/_font.scss +0 -49
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
vertical-align: baseline;
|
|
12
12
|
padding: $padding;
|
|
13
13
|
border-radius: 0;
|
|
14
|
-
font-weight:
|
|
14
|
+
font-weight: normal;
|
|
15
15
|
text-align: left;
|
|
16
16
|
color: $color;
|
|
17
17
|
border: none;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
@mixin btn-video-help {
|
|
124
124
|
@include link-button($padding: 1.25em, $background: $c-grey-l96);
|
|
125
|
-
|
|
125
|
+
font-weight: bold;
|
|
126
126
|
width: 100%;
|
|
127
127
|
|
|
128
128
|
@include focus {
|
|
@@ -280,6 +280,7 @@
|
|
|
280
280
|
|
|
281
281
|
@mixin btn-invisible {
|
|
282
282
|
color: inherit;
|
|
283
|
+
border: none;
|
|
283
284
|
padding: 0;
|
|
284
285
|
|
|
285
286
|
@include focus {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@mixin disabled {
|
|
2
|
-
|
|
3
2
|
&:disabled,
|
|
4
3
|
&.disabled {
|
|
5
4
|
@content;
|
|
@@ -22,12 +21,14 @@
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
@mixin setup-button {
|
|
25
|
-
@include fontfamily-black;
|
|
26
24
|
border-radius: $br-border-radius-lg;
|
|
27
25
|
padding: $padding-button-lg;
|
|
28
26
|
text-decoration: none;
|
|
27
|
+
font-family: inherit;
|
|
29
28
|
font-size: 1.0625rem;
|
|
29
|
+
display: inline-grid;
|
|
30
30
|
text-align: center;
|
|
31
|
+
font-weight: bold;
|
|
31
32
|
transition: none;
|
|
32
33
|
cursor: pointer;
|
|
33
34
|
line-height: 1;
|
|
@@ -50,20 +51,8 @@
|
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
// deprecated: @mixin display-button
|
|
54
|
-
|
|
55
54
|
@mixin flex-button($gap: 1rem) {
|
|
56
55
|
display: inline-flex;
|
|
57
56
|
align-items: center;
|
|
58
57
|
gap: $gap;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@mixin inline-block-button() {
|
|
62
|
-
vertical-align: middle;
|
|
63
|
-
display: inline-block;
|
|
64
|
-
|
|
65
|
-
>* {
|
|
66
|
-
vertical-align: middle;
|
|
67
|
-
display: inline-block;
|
|
68
|
-
}
|
|
69
58
|
}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
|
|
2
1
|
@mixin basket-table {
|
|
3
2
|
tr {
|
|
4
3
|
@include table-row;
|
|
5
4
|
justify-content: space-between;
|
|
6
|
-
display: flex;
|
|
5
|
+
display: flex;
|
|
7
6
|
gap: 0.75rem;
|
|
8
7
|
|
|
9
8
|
&:last-child {
|
|
10
9
|
padding-bottom: 0;
|
|
11
10
|
}
|
|
12
|
-
|
|
11
|
+
|
|
13
12
|
&.promo {
|
|
14
13
|
padding-bottom: 1rem;
|
|
15
14
|
}
|
|
16
|
-
|
|
15
|
+
|
|
17
16
|
&.donation {
|
|
18
17
|
@include basket-row-grid;
|
|
19
18
|
padding-bottom: 1rem;
|
|
20
19
|
padding-top: 1rem;
|
|
21
20
|
}
|
|
22
|
-
|
|
21
|
+
|
|
23
22
|
&.total {
|
|
24
|
-
@include fontfamily-black;
|
|
25
23
|
font-size: $h4-font-size;
|
|
26
24
|
border-bottom: none;
|
|
25
|
+
font-weight: bold;
|
|
27
26
|
}
|
|
28
|
-
|
|
27
|
+
|
|
29
28
|
&.continue {
|
|
30
29
|
border-bottom: none;
|
|
31
|
-
|
|
30
|
+
|
|
32
31
|
td {
|
|
33
32
|
width: 100%;
|
|
34
|
-
}
|
|
33
|
+
}
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
$fontfamily-light: font-family(Supreme-Light);
|
|
2
|
-
|
|
3
|
-
$fontfamily-light-italic: font-family(Supreme-LightItalic);
|
|
4
|
-
|
|
5
|
-
$fontfamily-black: font-family(Supreme-Black);
|
|
6
|
-
|
|
7
|
-
$fontfamily-black-italic: font-family(Supreme-BlackItalic);
|
|
8
|
-
|
|
9
|
-
// adjusting bootstrap variables for supreme
|
|
10
|
-
|
|
11
1
|
$body-font-size: toRem(17);
|
|
12
2
|
|
|
13
3
|
$h1-font-size: toRem(42);
|
package/scss/index.scss
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
@import "helpers/index";
|
|
2
2
|
|
|
3
|
-
@include font-face;
|
|
4
|
-
|
|
5
3
|
@import "app";
|
|
6
4
|
@import "city-of-london";
|
|
7
5
|
@import "close-icon";
|
|
6
|
+
@import "font";
|
|
8
7
|
@import "footer";
|
|
9
8
|
@import "header";
|
|
10
9
|
@import "klaro";
|
|
@@ -47,7 +46,7 @@ html {
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
body {
|
|
50
|
-
|
|
49
|
+
font-family: Supreme, Helvetica, Arial, sans-serif;
|
|
51
50
|
-webkit-font-smoothing: antialiased;
|
|
52
51
|
-moz-osx-font-smoothing: grayscale;
|
|
53
52
|
line-height: $line-height-md;
|
|
@@ -100,10 +99,4 @@ p {
|
|
|
100
99
|
|
|
101
100
|
p+p {
|
|
102
101
|
margin-top: 1rem;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/// b tag in use on iframes
|
|
106
|
-
strong,
|
|
107
|
-
b {
|
|
108
|
-
@include fontfamily-black;
|
|
109
102
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<br-form-checkbox
|
|
4
|
-
@change="({ value }) => (newsletterOptIn = value)"
|
|
5
|
-
data-test="requires-companion-option"
|
|
6
|
-
:default="newsletterOptIn"
|
|
7
|
-
id="newsletter-signup"
|
|
8
|
-
:disabled="false"
|
|
9
|
-
:toggle="true"
|
|
10
|
-
:table="false"
|
|
11
|
-
:value="true"
|
|
12
|
-
success>
|
|
13
|
-
Keep me up to date with news, events and offers from the Barbican
|
|
14
|
-
</br-form-checkbox>
|
|
15
|
-
{{ newsletterOptIn }}
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script>
|
|
20
|
-
export default {
|
|
21
|
-
data() {
|
|
22
|
-
return {
|
|
23
|
-
newsletterOptIn: false,
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
</script>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="padding: 100px">
|
|
3
|
-
<br-form-checkbox
|
|
4
|
-
@change="({ value }) => (boolean = value)"
|
|
5
|
-
data-test="checkbox-test-data"
|
|
6
|
-
id="checkbox-id"
|
|
7
|
-
:disabled="false"
|
|
8
|
-
:toggle="true"
|
|
9
|
-
:table="false"
|
|
10
|
-
:value="true"
|
|
11
|
-
success
|
|
12
|
-
>
|
|
13
|
-
Lorem ipsum dolor sit amet.
|
|
14
|
-
</br-form-checkbox>
|
|
15
|
-
<br-form-checkbox-group
|
|
16
|
-
@change="(value) => (model = value)"
|
|
17
|
-
data-test="checkbox-test-data"
|
|
18
|
-
class="checkbox-class"
|
|
19
|
-
name="checkbox-name"
|
|
20
|
-
id="checkbox-id"
|
|
21
|
-
:options="options"
|
|
22
|
-
:model="model"
|
|
23
|
-
/>
|
|
24
|
-
{{ boolean }}
|
|
25
|
-
{{ model.length ? model : "nothing" }}
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script>
|
|
30
|
-
export default {
|
|
31
|
-
data() {
|
|
32
|
-
return {
|
|
33
|
-
boolean: false,
|
|
34
|
-
model: [],
|
|
35
|
-
options: [
|
|
36
|
-
{ text: "Orange text", value: "orange", checked: true },
|
|
37
|
-
{ text: "Apple text", value: "apple", checked: false },
|
|
38
|
-
],
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
</script>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<br-form-row>
|
|
4
|
-
<br-form-radio
|
|
5
|
-
@change="({ value }) => (radio = value)"
|
|
6
|
-
name="radio"
|
|
7
|
-
value="true">
|
|
8
|
-
true
|
|
9
|
-
</br-form-radio>
|
|
10
|
-
<br-form-radio
|
|
11
|
-
@change="({ value }) => (radio = value)"
|
|
12
|
-
name="radio"
|
|
13
|
-
value="false">
|
|
14
|
-
false
|
|
15
|
-
</br-form-radio>
|
|
16
|
-
</br-form-row>
|
|
17
|
-
<br-form-row>
|
|
18
|
-
<br-form-input
|
|
19
|
-
@change="({ value }) => (gift.sendDate = value)"
|
|
20
|
-
:min="minimumSendDate"
|
|
21
|
-
:max="maximumSendDate"
|
|
22
|
-
data-test="send-date"
|
|
23
|
-
type="date" />
|
|
24
|
-
<br-form-input
|
|
25
|
-
@change="({ value }) => (email = value)"
|
|
26
|
-
data-test="login-form-email"
|
|
27
|
-
autocomplete="username"
|
|
28
|
-
value="disabled"
|
|
29
|
-
class="custom"
|
|
30
|
-
type="email"
|
|
31
|
-
name="email"
|
|
32
|
-
:disabled="false"
|
|
33
|
-
:required="true" />
|
|
34
|
-
</br-form-row>
|
|
35
|
-
<br-form-row>
|
|
36
|
-
{{ email }}
|
|
37
|
-
{{ radio }}
|
|
38
|
-
</br-form-row>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script>
|
|
43
|
-
import { DateTime } from 'luxon'
|
|
44
|
-
|
|
45
|
-
export default {
|
|
46
|
-
computed: {
|
|
47
|
-
minimumSendDate() {
|
|
48
|
-
return DateTime.now().toISODate()
|
|
49
|
-
},
|
|
50
|
-
maximumSendDate() {
|
|
51
|
-
return DateTime.now().plus({ years: 1 }).toISODate()
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
radio: 'radio',
|
|
57
|
-
email: 'email',
|
|
58
|
-
gift: {
|
|
59
|
-
sendDate: '',
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div v-for="(group, index) in radios" :key="index">
|
|
3
|
-
<div>{{ group.default }}</div>
|
|
4
|
-
<br-form-radio
|
|
5
|
-
v-for="(option, index) in group.options"
|
|
6
|
-
@change="({ value }) => (group.default = value)"
|
|
7
|
-
:default="group.default"
|
|
8
|
-
data-test="here it is"
|
|
9
|
-
:name="group.name"
|
|
10
|
-
:value="option"
|
|
11
|
-
:key="index">
|
|
12
|
-
{{ option }}
|
|
13
|
-
</br-form-radio>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
radios: [
|
|
22
|
-
{ name: 'testA', default: true, options: [true, false] },
|
|
23
|
-
{ name: 'testB', default: 16, options: [32, 46, 75] },
|
|
24
|
-
{
|
|
25
|
-
name: 'testC',
|
|
26
|
-
default: 'sentence',
|
|
27
|
-
options: ['paul', 'gareth', 'andrew'],
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<br-form-radio-group
|
|
3
|
-
@change="({ value }) => (contactMeSelection = value)"
|
|
4
|
-
data-test="global-opt-in"
|
|
5
|
-
name="contact-me-options"
|
|
6
|
-
:options="yesNoOptions"
|
|
7
|
-
id="radio-slots" />
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
export default {
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
contactMeSelection: true,
|
|
15
|
-
yesNoOptions: [
|
|
16
|
-
{ text: 'Yes', value: true, checked: true },
|
|
17
|
-
{ text: 'No', value: false, checked: false },
|
|
18
|
-
],
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="padding: 100px">
|
|
3
|
-
<br-form-textarea
|
|
4
|
-
@change="({ value }) => (gift.message = value)"
|
|
5
|
-
placeholder="placeholder"
|
|
6
|
-
data-test="data-test"
|
|
7
|
-
rows="6" />
|
|
8
|
-
{{ gift.message }}
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
export default {
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
gift: {
|
|
17
|
-
message: '',
|
|
18
|
-
},
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@mixin font-face($name: "SupremeLLWeb", $path: "https://static.barbican.org.uk/systems-public/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
|
-
|
|
27
|
-
@mixin fontfamily-light {
|
|
28
|
-
font-family: $fontfamily-light;
|
|
29
|
-
font-weight: 400;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin fontfamily-black {
|
|
33
|
-
font-family: $fontfamily-black;
|
|
34
|
-
font-weight: 400;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// https://caniuse.com/#search=font-smoothing
|
|
38
|
-
|
|
39
|
-
@mixin font-smoothing($value: on) {
|
|
40
|
-
@if $value ==on {
|
|
41
|
-
-webkit-font-smoothing: antialiased;
|
|
42
|
-
-moz-osx-font-smoothing: grayscale;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@else {
|
|
46
|
-
-webkit-font-smoothing: subpixel-antialiased;
|
|
47
|
-
-moz-osx-font-smoothing: auto;
|
|
48
|
-
}
|
|
49
|
-
}
|