barbican-reset 1.3.9 → 1.4.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.
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <div>
3
+ <svg :class="$style.logo" role="presentation">
4
+ <slot />
5
+ </svg>
6
+ <div :class="$style.label">{{ label }}</div>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: 'PaymentLogo',
13
+ props: {
14
+ label: {
15
+ type: String,
16
+ default: 'visa'
17
+ }
18
+ }
19
+ }
20
+ </script>
21
+
22
+ <style lang="scss" module>
23
+
24
+ .label {
25
+ @include hide-text;
26
+ text-transform: uppercase;
27
+ height: 0;
28
+ width: 0;
29
+ }
30
+
31
+ .logo {
32
+ display: block;
33
+ height: 2.5rem;
34
+ width: 4rem;
35
+ }
36
+
37
+ </style>
@@ -0,0 +1,42 @@
1
+ <template>
2
+
3
+ <div>
4
+
5
+ <fluid-iframe v-if="type === 'jwplayer'" :src="url" />
6
+
7
+ <div v-if="type === 'brightcove'" v-html="markup" :class="$style.brightcove"></div>
8
+
9
+ <h2 v-html="title" class="margin-bottom-1"></h2>
10
+
11
+ <p v-html="lead_description"></p>
12
+
13
+ <p v-html="long_description"></p>
14
+
15
+ <p>Until {{ formatDateTime(expires) }}</p>
16
+
17
+ </div>
18
+
19
+ </template>
20
+
21
+ <script>
22
+ import { FluidIframe } from 'barbican-reset'
23
+ export default {
24
+ props: ['type','url','markup','title','lead_description','long_description','expires'],
25
+ components: { FluidIframe },
26
+ methods: {
27
+ formatDateTime(date) {
28
+ return this.$moment(date).format("LT ddd D MMM YYYY");
29
+ }
30
+ }
31
+ }
32
+ </script>
33
+
34
+ <style lang="scss" module>
35
+
36
+ .brightcove {
37
+ border-radius: $border-radius-lg;
38
+ margin-bottom: 2rem;
39
+ overflow: hidden;
40
+ }
41
+
42
+ </style>
@@ -202,6 +202,7 @@
202
202
  $color: $white,
203
203
  $background: transparent
204
204
  );
205
+
205
206
  @include focus {
206
207
  &.member {
207
208
  color: $c-member;
@@ -226,6 +227,28 @@
226
227
  fill: $white;
227
228
  }
228
229
 
230
+ @mixin btn-carousel {
231
+ @include button-solid($c-grey-night);
232
+ @include single-box($white);
233
+ border-radius: 50%;
234
+ font-size: 0;
235
+ fill: $white;
236
+
237
+ @include media-breakpoint-down(lg) {
238
+ padding: 0.75rem;
239
+ }
240
+
241
+ &:disabled {
242
+ background-color: $c-grey-pearl;
243
+ border-color: $c-grey-pearl;
244
+ opacity: 1;
245
+ }
246
+
247
+ label {
248
+ visibility: hidden;
249
+ }
250
+ }
251
+
229
252
  @mixin btn-invisible {
230
253
  &, &:focus {
231
254
  background: transparent;
package/icons/arrow.vue CHANGED
@@ -1,9 +1,5 @@
1
1
  <template>
2
- <svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- viewBox="0 0 83.2 80.9"
5
- height="12"
6
- width="12">
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 83.2 80.9" height="12" width="12">
7
3
  <path fill="white" d="M42.8.4L31.9 11.2l23.7 22.2H0V48h55.6l-24 21.6 11.2 11.3 40.4-40.7z"></path>
8
4
  </svg>
9
5
  </template>
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
3
+ <path d="M17.51 3.87L15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z"/>
4
+ </svg>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'ArrowBack'
10
+ }
11
+ </script>
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
3
+ <polygon points="6.23,20.23 8,22 18,12 8,2 6.23,3.77 14.46,12"/>
4
+ </svg>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: 'ArrowForward'
10
+ }
11
+ </script>
package/icons/index.js CHANGED
@@ -4,6 +4,8 @@ import CityOfLondonLockup from './city_of_london_lockup'
4
4
  import ArrowIcon from './arrow'
5
5
  import BackArrow from './back_arrow'
6
6
  import CartIcon from './cart'
7
+ import ArrowBack from './arrow_back'
8
+ import ArrowForward from './arrow_forward'
7
9
 
8
10
  export {
9
11
  BarbicanLogo,
@@ -11,5 +13,7 @@ export {
11
13
  CityOfLondonLockup,
12
14
  ArrowIcon,
13
15
  BackArrow,
14
- CartIcon
16
+ CartIcon,
17
+ ArrowBack,
18
+ ArrowForward
15
19
  };
package/index.js CHANGED
@@ -20,6 +20,8 @@ import FooterLogos from './components/footer_logos'
20
20
  import FooterLower from './components/footer_lower'
21
21
  import FluidIframe from './components/fluid_iframe'
22
22
  import HelpRow from './components/help_row'
23
+ import VideoContent from './components/video_content'
24
+ import PaymentLogo from './components/payment_logo'
23
25
 
24
26
  export {
25
27
  Loader,
@@ -43,4 +45,6 @@ export {
43
45
  FluidIframe,
44
46
  HelpRow,
45
47
  CardDisplay,
48
+ VideoContent,
49
+ PaymentLogo
46
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/_atomic.scss CHANGED
@@ -16,16 +16,12 @@ $aligns: "left", "center", "right";
16
16
  }
17
17
  }
18
18
 
19
- .margin-0 {
20
- margin: 0;
19
+ .border-radius-lg {
20
+ border-radius: $border-radius-lg;
21
21
  }
22
22
 
23
- .margin-top-05 {
24
- margin-top: 0.5rem;
25
- }
26
-
27
- .width-100 {
28
- width: 100%;
23
+ .color-orange {
24
+ color: $c-brand-orange;
29
25
  }
30
26
 
31
27
  .font-weight-700 {
@@ -44,12 +40,24 @@ $aligns: "left", "center", "right";
44
40
  font-size: $h3-font-size;
45
41
  }
46
42
 
47
- .c-brand-orange {
48
- color: $c-brand-orange;
49
- }
50
-
51
43
  .list-style-none {
52
44
  list-style-type: none;
53
45
  padding: 0;
54
46
  margin: 0;
47
+ }
48
+
49
+ .margin-0 {
50
+ margin: 0;
51
+ }
52
+
53
+ .margin-top-05 {
54
+ margin-top: 0.5rem;
55
+ }
56
+
57
+ .overflow-hidden {
58
+ overflow: hidden;
59
+ }
60
+
61
+ .width-100 {
62
+ width: 100%;
55
63
  }
package/scss/_btn.scss CHANGED
@@ -68,6 +68,10 @@
68
68
  @include btn-cta;
69
69
  }
70
70
 
71
+ &.btn-carousel {
72
+ @include btn-carousel;
73
+ }
74
+
71
75
  &.btn-invisible {
72
76
  @include btn-invisible;
73
77
  }
@@ -28,4 +28,9 @@ table.basket tr {
28
28
  width: 100%;
29
29
  }
30
30
  }
31
- }
31
+ }
32
+
33
+ table.basket .promo-form {
34
+ @include basket-row-grid;
35
+ margin-top: 0.5rem;
36
+ }
@@ -4,6 +4,7 @@ table.details {
4
4
 
5
5
  thead {
6
6
  background-color: $c-grey-alpine;
7
+ margin-bottom: 1rem;
7
8
  font-weight: 700;
8
9
  display: block;
9
10
 
@@ -29,16 +30,10 @@ table.details {
29
30
  }
30
31
 
31
32
  tbody tr {
32
- border-bottom: 1px solid $c-grey-pearl;
33
- border-right: 1px solid $c-grey-pearl;
34
- border-left: 1px solid $c-grey-pearl;
35
-
36
- @include media-breakpoint-down($mq) {
37
- border-top: 1px solid $c-grey-pearl;
33
+ border: 1px solid $c-grey-pearl;
38
34
 
39
- &:not(:last-of-type) {
40
- margin-bottom: 1rem;
41
- }
35
+ &:not(:last-of-type) {
36
+ margin-bottom: 1rem;
42
37
  }
43
38
  }
44
39
 
@@ -13,12 +13,16 @@ table.etickets {
13
13
  }
14
14
  }
15
15
 
16
- tr {
16
+ thead tr, tbody tr.active {
17
17
  border: 1px solid $c-grey-pearl;
18
18
  display: grid;
19
19
 
20
+ &:not(:last-of-type) {
21
+ margin-bottom: 1rem;
22
+ }
23
+
20
24
  @include media-breakpoint-up($mq) {
21
- grid-template-columns: 9rem auto 9rem;
25
+ grid-template-columns: 10rem auto 8rem;
22
26
  }
23
27
 
24
28
  @include media-breakpoint-down($mq) {
@@ -47,8 +51,4 @@ table.etickets {
47
51
  display: none;
48
52
  }
49
53
  }
50
-
51
- tbody > div:not(:last-of-type) {
52
- margin-bottom: 1rem;
53
- }
54
54
  }
@@ -0,0 +1,6 @@
1
+
2
+ table.details.membership tr {
3
+ @include media-breakpoint-up(md) {
4
+ grid-template-columns: auto 10rem 10rem 8rem;
5
+ }
6
+ }
@@ -13,12 +13,16 @@ table.orders {
13
13
  }
14
14
  }
15
15
 
16
- tr {
16
+ thead tr, tbody tr.active {
17
17
  border: 1px solid $c-grey-pearl;
18
18
  display: grid;
19
19
 
20
+ &:not(:last-of-type) {
21
+ margin-bottom: 1rem;
22
+ }
23
+
20
24
  @include media-breakpoint-up($mq) {
21
- grid-template-columns: 9rem 8rem auto 7rem;
25
+ grid-template-columns: 10rem 8rem auto 8rem;
22
26
  }
23
27
 
24
28
  @include media-breakpoint-down($mq) {
@@ -47,8 +51,4 @@ table.orders {
47
51
  display: none;
48
52
  }
49
53
  }
50
-
51
- tbody > div:not(:last-of-type) {
52
- margin-bottom: 1rem;
53
- }
54
54
  }
@@ -6,6 +6,7 @@
6
6
  @import "details.scss";
7
7
  @import "preferences.scss";
8
8
  @import "etickets.scss";
9
+ @import "membership.scss";
9
10
 
10
11
  table {
11
12
  border-spacing: 0;