barbican-reset 3.20.0 → 3.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.
- package/components/BrButton.vue +7 -1
- package/components/BrCard.vue +89 -3
- package/components/BrCardSubTitle.vue +1 -1
- package/components/BrContainer.vue +41 -63
- package/components/BrWrap.vue +20 -18
- package/index.js +2 -17
- package/package.json +1 -1
- package/scss/_br-button.scss +4 -0
- package/scss/_br-container.scss +25 -36
- package/scss/_br-wrap.scss +11 -11
- package/scss/_variables.scss +3 -2
- package/scss/card/index.scss +0 -1
- package/scss/index.scss +0 -2
- package/scss/mixins/_br-card.scss +27 -17
- package/scss/mixins/buttons/_custom.scss +10 -31
- package/scss/mixins/buttons/custom/_outline-primary.scss +10 -0
- package/scss/mixins/buttons/custom/_outline-secondary.scss +5 -0
- package/scss/mixins/buttons/custom/_primary.scss +14 -0
- package/scss/mixins/buttons/custom/_secondary.scss +5 -0
- package/scss/mixins/buttons/custom/_see-tickets-info.scss +18 -0
- package/scss/mixins/card/_default.scss +13 -0
- package/scss/mixins/card/_inline.scss +4 -0
- package/scss/mixins/card/_navcard.scss +66 -0
- package/scss/mixins/card/_navitem.scss +51 -0
- package/scss/mixins/card/_navlink.scss +30 -0
- package/scss/mixins/card/_ticket.scss +11 -0
- package/components/BrNavCard.vue +0 -56
- package/components/BrNavCardWrap.vue +0 -5
- package/components/BrNavLink.vue +0 -21
- package/components/EventSummary.vue +0 -149
- package/components/FluidIframe.vue +0 -39
- package/components/SeeInside.vue +0 -134
- package/components/VideoContent.vue +0 -74
- package/scss/_br-nav-card-wrap.scss +0 -11
- package/scss/_br-navlink.scss +0 -51
- package/scss/card/_navcard.scss +0 -133
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<fluid-iframe v-if="data.type === 'jwplayer'" :src="data.url" />
|
|
4
|
-
|
|
5
|
-
<template v-if="data.type === 'brightcove'">
|
|
6
|
-
<div v-html="data.markup" :class="$style.brightcove"></div>
|
|
7
|
-
|
|
8
|
-
<br-alert v-if="data.isExpired" error center inline
|
|
9
|
-
>Event has passed.</br-alert
|
|
10
|
-
>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<h2 v-html="data.title" class="margin-bottom-1"></h2>
|
|
14
|
-
|
|
15
|
-
<p v-html="data.lead_description"></p>
|
|
16
|
-
|
|
17
|
-
<template v-if="data.long_description">
|
|
18
|
-
<p v-html="data.long_description"></p>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<template v-if="data.expires">
|
|
22
|
-
<p>Until {{ formatDateTime(data.expires) }}</p>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<template v-if="data.programme">
|
|
26
|
-
<p>
|
|
27
|
-
Read tonight's
|
|
28
|
-
<a :href="data.programme" target="_blank">Digital Programme</a>
|
|
29
|
-
</p>
|
|
30
|
-
</template>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
import FluidIframe from '#components/FluidIframe.vue'
|
|
36
|
-
import BrAlert from '#components/BrAlert.vue'
|
|
37
|
-
import { DateTime } from 'luxon'
|
|
38
|
-
|
|
39
|
-
export default {
|
|
40
|
-
props: {
|
|
41
|
-
data: {
|
|
42
|
-
type: Object,
|
|
43
|
-
},
|
|
44
|
-
concert: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
created() {
|
|
50
|
-
if (this.concert) {
|
|
51
|
-
this.data.expires = this.data.brightcove.expires
|
|
52
|
-
this.data.markup = this.data.brightcove.markup
|
|
53
|
-
this.data.script = this.data.brightcove.script
|
|
54
|
-
this.data.isExpired = this.data.brightcove.isExpired
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
components: { FluidIframe, BrAlert },
|
|
58
|
-
methods: {
|
|
59
|
-
formatDateTime(date) {
|
|
60
|
-
return DateTime.fromISO(date).toFormat('h:mm a ccc d LLL yyyy')
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
}
|
|
64
|
-
</script>
|
|
65
|
-
|
|
66
|
-
<style lang="scss" module>
|
|
67
|
-
@use '#styles/helpers' as *;
|
|
68
|
-
|
|
69
|
-
.brightcove {
|
|
70
|
-
border-radius: var(--border-radius-lg);
|
|
71
|
-
margin-bottom: var(--margin-xxl);
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
}
|
|
74
|
-
</style>
|
package/scss/_br-navlink.scss
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
.br-navlink {
|
|
2
|
-
border-color: var(--color-black-25-lighten);
|
|
3
|
-
border-bottom-width: var(--border-width-sm);
|
|
4
|
-
border-right-width: var(--border-width-sm);
|
|
5
|
-
border-left-width: var(--border-width-sm);
|
|
6
|
-
padding-bottom: var(--padding-md);
|
|
7
|
-
padding-right: var(--padding-lg);
|
|
8
|
-
padding-left: var(--padding-lg);
|
|
9
|
-
padding-top: var(--padding-md);
|
|
10
|
-
background-color: white;
|
|
11
|
-
text-decoration: none;
|
|
12
|
-
border-top-width: 0;
|
|
13
|
-
align-items: center;
|
|
14
|
-
border-style: solid;
|
|
15
|
-
gap: var(--gap-xs);
|
|
16
|
-
font-weight: bold;
|
|
17
|
-
display: flex;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.br-navlink:first-child {
|
|
21
|
-
border-top-right-radius: var(--border-radius-lg);
|
|
22
|
-
border-top-left-radius: var(--border-radius-lg);
|
|
23
|
-
border-top-width: var(--border-width-sm);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.br-navlink:last-child {
|
|
27
|
-
border-bottom-right-radius: var(--border-radius-lg);
|
|
28
|
-
border-bottom-left-radius: var(--border-radius-lg);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
a.br-navlink:hover,
|
|
32
|
-
a.br-navlink:focus {
|
|
33
|
-
background-color: var(--color-brand-generic-15-lighten);
|
|
34
|
-
outline-color: var(--color-brand-generic-90-darken);
|
|
35
|
-
outline-offset: calc(var(--border-width-sm) * -1);
|
|
36
|
-
color: var(--color-brand-generic-90-darken);
|
|
37
|
-
outline-width: var(--border-width-lg);
|
|
38
|
-
text-decoration: underline;
|
|
39
|
-
outline-style: solid;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
div.br-navlink {
|
|
43
|
-
background-color: var(--color-brand-generic);
|
|
44
|
-
border-color: var(--color-brand-generic);
|
|
45
|
-
outline-offset: calc(var(--border-width-sm) * -1);
|
|
46
|
-
outline-color: var(--color-brand-generic);
|
|
47
|
-
outline-width: var(--border-width-lg);
|
|
48
|
-
outline-style: solid;
|
|
49
|
-
color: white;
|
|
50
|
-
cursor: default;
|
|
51
|
-
}
|
package/scss/card/_navcard.scss
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
@use "../mixins/breakpoints" as *;
|
|
2
|
-
|
|
3
|
-
.link-navcard.inline .br-card.navcard .br-card-body {
|
|
4
|
-
@include medium-down {
|
|
5
|
-
padding: 0;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.link-navcard.benefits .br-card.navcard .br-card-title {
|
|
10
|
-
font-size: var(--font-size-h4);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@include medium-down {
|
|
14
|
-
.link-navcard.inline {
|
|
15
|
-
background-color: transparent;
|
|
16
|
-
margin-top: var(--margin-md);
|
|
17
|
-
margin-right: auto;
|
|
18
|
-
border-radius: 0;
|
|
19
|
-
border-width: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.link-navcard.inline .wrap-navcard-content {
|
|
23
|
-
display: block;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.link-navcard.inline .wrap-navcard-icon {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.link-navcard.inline .br-card-text {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.link-navcard.inline:hover,
|
|
35
|
-
.link-navcard.inline:focus {
|
|
36
|
-
background-color: var(--color-black-80-lighten);
|
|
37
|
-
outline-color: var(--color-black-80-lighten);
|
|
38
|
-
outline-width: 0.25rem;
|
|
39
|
-
outline-style: solid;
|
|
40
|
-
color: white;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@include small-down {
|
|
45
|
-
.link-navcard.inline {
|
|
46
|
-
margin-top: var(--margin-sm);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.link-navcard {
|
|
51
|
-
border-color: var(--color-black-10-lighten);
|
|
52
|
-
border-radius: var(--border-radius-lg);
|
|
53
|
-
border-width: var(--border-width-sm);
|
|
54
|
-
background-color: white;
|
|
55
|
-
text-decoration: none;
|
|
56
|
-
border-style: solid;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.link-navcard .br-card-title {
|
|
60
|
-
text-decoration: underline;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.link-navcard:hover,
|
|
64
|
-
.link-navcard:focus {
|
|
65
|
-
background-color: var(--color-brand-generic-15-lighten);
|
|
66
|
-
outline-color: var(--color-brand-generic-90-darken);
|
|
67
|
-
outline-offset: calc(var(--border-width-sm) * -1);
|
|
68
|
-
color: var(--color-brand-generic-90-darken);
|
|
69
|
-
outline-width: var(--border-width-lg);
|
|
70
|
-
outline-style: solid;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.link-navcard:active {
|
|
74
|
-
transform: scale(0.98);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.br-card.navcard {
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
border-width: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.br-card.navcard .br-card-body {
|
|
83
|
-
@include large-up {
|
|
84
|
-
padding: var(--padding-card-lg);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
@include small-down {
|
|
88
|
-
padding: var(--padding-card-sm);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.br-card.navcard .br-card-title {
|
|
93
|
-
line-height: var(--line-height-sm);
|
|
94
|
-
font-size: var(--font-size-h2);
|
|
95
|
-
|
|
96
|
-
@include small-down {
|
|
97
|
-
font-size: var(--font-size-h4);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.br-card.navcard .br-card-title+.br-card-text {
|
|
102
|
-
margin-top: var(--margin-md);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.br-card.navcard .br-card-text {
|
|
106
|
-
@include small-down {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.wrap-navcard-icon {
|
|
112
|
-
@include small-up {
|
|
113
|
-
margin-top: var(--margin-sm);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.wrap-navcard-icon * {
|
|
118
|
-
display: block;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.wrap-navcard-content.has-icon {
|
|
122
|
-
grid-template-columns: 2.1875rem auto;
|
|
123
|
-
gap: var(--gap-md);
|
|
124
|
-
display: grid;
|
|
125
|
-
|
|
126
|
-
@include small-down {
|
|
127
|
-
align-items: center;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.wrap-navcard-content:not(.has-icon) {
|
|
132
|
-
text-align: center;
|
|
133
|
-
}
|