@biggive/components 1.0.7 → 1.0.9

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 (204) hide show
  1. package/dist/biggive/biggive.esm.js +1 -1
  2. package/dist/biggive/p-07962fc5.entry.js +1 -0
  3. package/dist/biggive/p-0d6687f4.js +1 -0
  4. package/dist/biggive/p-1b78efa0.entry.js +1 -0
  5. package/dist/biggive/p-5dbda89c.entry.js +1 -0
  6. package/dist/biggive/p-5f1b0106.entry.js +1 -0
  7. package/dist/biggive/p-629007e0.entry.js +1 -0
  8. package/dist/biggive/p-6326f936.entry.js +1 -0
  9. package/dist/biggive/p-72a6f0a8.entry.js +1 -0
  10. package/dist/biggive/p-74b5d4c7.entry.js +1 -0
  11. package/dist/biggive/p-7eee1e58.entry.js +1 -0
  12. package/dist/biggive/{p-a6da36d4.js → p-871707f4.js} +2 -2
  13. package/dist/biggive/p-8f605036.entry.js +1 -0
  14. package/dist/biggive/p-bdb476eb.entry.js +1 -0
  15. package/dist/biggive/p-c9aaa5c3.entry.js +1 -0
  16. package/dist/biggive/p-df6daa79.entry.js +1 -0
  17. package/dist/biggive/{p-43c02e71.js → p-ec9b42b3.js} +1 -1
  18. package/dist/biggive/p-f9388477.entry.js +1 -0
  19. package/dist/biggive/p-f98681a5.entry.js +1 -0
  20. package/dist/cjs/biggive-article-card.cjs.entry.js +63 -0
  21. package/dist/cjs/biggive-back-to-top_20.cjs.entry.js +923 -0
  22. package/dist/cjs/biggive-basic-card.cjs.entry.js +12 -4
  23. package/dist/cjs/biggive-beneficiary-icon.cjs.entry.js +1 -1
  24. package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
  25. package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
  26. package/dist/cjs/biggive-category-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
  28. package/dist/cjs/biggive-icon-group.cjs.entry.js +1 -1
  29. package/dist/cjs/biggive-image.cjs.entry.js +1 -1
  30. package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
  31. package/dist/cjs/biggive-search.cjs.entry.js +1 -1
  32. package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
  33. package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
  34. package/dist/cjs/biggive-video.cjs.entry.js +7 -2
  35. package/dist/cjs/biggive.cjs.js +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/cjs/video-f9e682a8.js +14 -0
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/biggive-article-card/biggive-article-card.css +534 -0
  40. package/dist/collection/components/biggive-article-card/biggive-article-card.js +272 -0
  41. package/dist/collection/components/biggive-article-card/biggive-article-card.stories.js +84 -0
  42. package/dist/collection/components/biggive-back-to-top/biggive-back-to-top.css +51 -10
  43. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +51 -16
  44. package/dist/collection/components/biggive-basic-card/biggive-basic-card.js +49 -5
  45. package/dist/collection/components/biggive-basic-card/biggive-basic-card.stories.js +25 -0
  46. package/dist/collection/components/biggive-beneficiary-icon/biggive-beneficiary-icon.css +51 -10
  47. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +51 -10
  48. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +51 -10
  49. package/dist/collection/components/biggive-button/biggive-button.css +51 -10
  50. package/dist/collection/components/biggive-button/biggive-button.js +45 -1
  51. package/dist/collection/components/biggive-button/biggive-button.stories.js +17 -0
  52. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.css +51 -19
  53. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +69 -3
  54. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +27 -0
  55. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +51 -10
  56. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +51 -10
  57. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +51 -10
  58. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +51 -10
  59. package/dist/collection/components/biggive-footer/biggive-footer.css +51 -10
  60. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +51 -10
  61. package/dist/collection/components/biggive-grid/biggive-grid.css +51 -10
  62. package/dist/collection/components/biggive-header/biggive-header.css +51 -10
  63. package/dist/collection/components/biggive-header/biggive-header.js +28 -9
  64. package/dist/collection/components/biggive-header/biggive-header.stories.js +15 -2
  65. package/dist/collection/components/biggive-heading/biggive-heading.css +51 -35
  66. package/dist/collection/components/biggive-heading/biggive-heading.js +1 -1
  67. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +54 -10
  68. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +51 -10
  69. package/dist/collection/components/biggive-image/biggive-image.css +51 -10
  70. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +51 -10
  71. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +51 -10
  72. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +51 -10
  73. package/dist/collection/components/biggive-page-section/biggive-page-section.css +52 -10
  74. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +51 -10
  75. package/dist/collection/components/biggive-quote/biggive-quote.css +51 -10
  76. package/dist/collection/components/biggive-search/biggive-search.css +51 -10
  77. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +51 -10
  78. package/dist/collection/components/biggive-tab/biggive-tab.css +51 -10
  79. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +51 -10
  80. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +51 -10
  81. package/dist/collection/components/biggive-video/biggive-video.css +51 -10
  82. package/dist/collection/components/biggive-video/biggive-video.js +25 -3
  83. package/dist/collection/components/biggive-video/biggive-video.stories.js +11 -1
  84. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +51 -10
  85. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +25 -3
  86. package/dist/collection/components/biggive-video-feature/biggive-video-feature.stories.js +10 -1
  87. package/dist/collection/util/video.js +10 -0
  88. package/dist/components/biggive-article-card.d.ts +11 -0
  89. package/dist/components/biggive-article-card.js +95 -0
  90. package/dist/components/biggive-back-to-top.js +1 -1
  91. package/dist/components/biggive-basic-card.js +14 -4
  92. package/dist/components/biggive-beneficiary-icon.js +1 -1
  93. package/dist/components/biggive-boxed-content.js +1 -1
  94. package/dist/components/biggive-branded-image.js +1 -1
  95. package/dist/components/biggive-button2.js +13 -3
  96. package/dist/components/biggive-call-to-action.js +17 -2
  97. package/dist/components/biggive-campaign-card-filter-grid.js +1 -1
  98. package/dist/components/biggive-campaign-card.js +1 -1
  99. package/dist/components/biggive-campaign-highlights.js +1 -1
  100. package/dist/components/biggive-category-icon.js +1 -1
  101. package/dist/components/biggive-footer.js +1 -1
  102. package/dist/components/biggive-formatted-text.js +1 -1
  103. package/dist/components/biggive-grid.js +1 -1
  104. package/dist/components/biggive-header.js +9 -10
  105. package/dist/components/biggive-heading.js +2 -2
  106. package/dist/components/biggive-hero-image.js +1 -1
  107. package/dist/components/biggive-icon-group.js +1 -1
  108. package/dist/components/biggive-image-feature.js +1 -1
  109. package/dist/components/biggive-image.js +1 -1
  110. package/dist/components/biggive-misc-icon2.js +1 -1
  111. package/dist/components/biggive-page-columns.js +1 -1
  112. package/dist/components/biggive-page-section.js +1 -1
  113. package/dist/components/biggive-progress-bar2.js +1 -1
  114. package/dist/components/biggive-quote.js +1 -1
  115. package/dist/components/biggive-search.js +1 -1
  116. package/dist/components/biggive-social-icon2.js +1 -1
  117. package/dist/components/biggive-tab.js +1 -1
  118. package/dist/components/biggive-tabbed-content.js +1 -1
  119. package/dist/components/biggive-totalizer.js +1 -1
  120. package/dist/components/biggive-video-feature.js +8 -2
  121. package/dist/components/biggive-video.js +8 -2
  122. package/dist/components/index.d.ts +1 -0
  123. package/dist/components/index.js +1 -0
  124. package/dist/components/video.js +12 -0
  125. package/dist/esm/biggive-article-card.entry.js +59 -0
  126. package/dist/esm/biggive-back-to-top_20.entry.js +900 -0
  127. package/dist/esm/biggive-basic-card.entry.js +12 -4
  128. package/dist/esm/biggive-beneficiary-icon.entry.js +3 -3
  129. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  130. package/dist/esm/biggive-branded-image.entry.js +1 -1
  131. package/dist/esm/biggive-category-icon.entry.js +3 -3
  132. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  133. package/dist/esm/biggive-icon-group.entry.js +1 -1
  134. package/dist/esm/biggive-image.entry.js +1 -1
  135. package/dist/esm/biggive-quote.entry.js +1 -1
  136. package/dist/esm/biggive-search.entry.js +2 -2
  137. package/dist/esm/biggive-tab.entry.js +1 -1
  138. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  139. package/dist/esm/biggive-video.entry.js +7 -2
  140. package/dist/esm/biggive.js +1 -1
  141. package/dist/esm/{fontawesome-icons-e232deb7.js → fontawesome-icons-562459be.js} +1 -1
  142. package/dist/esm/{index.es-64a64fa8.js → index.es-5777380a.js} +1 -1
  143. package/dist/esm/loader.js +1 -1
  144. package/dist/esm/video-89b7535d.js +12 -0
  145. package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +47 -0
  146. package/dist/types/components/biggive-article-card/biggive-article-card.stories.d.ts +56 -0
  147. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +9 -1
  148. package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +21 -0
  149. package/dist/types/components/biggive-button/biggive-button.d.ts +8 -0
  150. package/dist/types/components/biggive-button/biggive-button.stories.d.ts +13 -0
  151. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +12 -0
  152. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +21 -0
  153. package/dist/types/components/biggive-header/biggive-header.d.ts +4 -0
  154. package/dist/types/components/biggive-video/biggive-video.d.ts +4 -0
  155. package/dist/types/components/biggive-video/biggive-video.stories.d.ts +7 -0
  156. package/dist/types/components/biggive-video-feature/biggive-video-feature.d.ts +4 -0
  157. package/dist/types/components/biggive-video-feature/biggive-video-feature.stories.d.ts +7 -0
  158. package/dist/types/components.d.ts +183 -2
  159. package/dist/types/util/video.d.ts +3 -0
  160. package/hydrate/index.js +181 -43
  161. package/package.json +1 -1
  162. package/dist/biggive/p-160a5e39.entry.js +0 -1
  163. package/dist/biggive/p-1e31cbfc.entry.js +0 -1
  164. package/dist/biggive/p-2d38d3a4.entry.js +0 -1
  165. package/dist/biggive/p-39db6552.entry.js +0 -1
  166. package/dist/biggive/p-49c2a10b.entry.js +0 -1
  167. package/dist/biggive/p-54026729.entry.js +0 -1
  168. package/dist/biggive/p-5cc16f87.entry.js +0 -1
  169. package/dist/biggive/p-5f7a3f5c.entry.js +0 -1
  170. package/dist/biggive/p-74bbb296.entry.js +0 -1
  171. package/dist/biggive/p-7f91f67c.entry.js +0 -1
  172. package/dist/biggive/p-89e206e8.entry.js +0 -1
  173. package/dist/biggive/p-9a74ac3d.entry.js +0 -1
  174. package/dist/biggive/p-9ed2bd19.entry.js +0 -1
  175. package/dist/biggive/p-ac6bfc1e.entry.js +0 -1
  176. package/dist/biggive/p-b762b246.entry.js +0 -1
  177. package/dist/biggive/p-b812b4f6.entry.js +0 -1
  178. package/dist/biggive/p-be37287b.entry.js +0 -1
  179. package/dist/biggive/p-be897395.entry.js +0 -1
  180. package/dist/biggive/p-ca786365.entry.js +0 -1
  181. package/dist/biggive/p-cca1d092.entry.js +0 -1
  182. package/dist/biggive/p-e6631545.entry.js +0 -1
  183. package/dist/biggive/p-ee459029.entry.js +0 -1
  184. package/dist/biggive/p-ee77cf8d.entry.js +0 -1
  185. package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +0 -373
  186. package/dist/cjs/biggive-call-to-action.cjs.entry.js +0 -87
  187. package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +0 -50
  188. package/dist/cjs/biggive-campaign-card.cjs.entry.js +0 -97
  189. package/dist/cjs/biggive-grid.cjs.entry.js +0 -31
  190. package/dist/cjs/biggive-hero-image.cjs.entry.js +0 -73
  191. package/dist/cjs/biggive-image-feature.cjs.entry.js +0 -67
  192. package/dist/cjs/biggive-page-section.cjs.entry.js +0 -35
  193. package/dist/cjs/biggive-totalizer.cjs.entry.js +0 -69
  194. package/dist/cjs/biggive-video-feature.cjs.entry.js +0 -67
  195. package/dist/esm/biggive-back-to-top_11.entry.js +0 -359
  196. package/dist/esm/biggive-call-to-action.entry.js +0 -83
  197. package/dist/esm/biggive-campaign-card-filter-grid.entry.js +0 -46
  198. package/dist/esm/biggive-campaign-card.entry.js +0 -93
  199. package/dist/esm/biggive-grid.entry.js +0 -27
  200. package/dist/esm/biggive-hero-image.entry.js +0 -69
  201. package/dist/esm/biggive-image-feature.entry.js +0 -63
  202. package/dist/esm/biggive-page-section.entry.js +0 -31
  203. package/dist/esm/biggive-totalizer.entry.js +0 -65
  204. package/dist/esm/biggive-video-feature.entry.js +0 -63
@@ -2,31 +2,35 @@ body {
2
2
  background-color: #D7D7D7;
3
3
  }
4
4
 
5
- h1 {
5
+ h1, h3, h3, h4, h5, h6 {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ h1, .heading-1 {
6
10
  font-size: 50px;
7
11
  line-height: 60px;
8
12
  font-weight: bold;
9
13
  }
10
14
 
11
- h2 {
15
+ h2, .heading-2 {
12
16
  font-size: 38px;
13
17
  line-height: 45px;
14
18
  font-weight: bold;
15
19
  }
16
20
 
17
- h3 {
21
+ h3, .heading-3 {
18
22
  font-size: 25px;
19
23
  line-height: 32px;
20
24
  font-weight: bold;
21
25
  }
22
26
 
23
- h4 {
27
+ h4, .heading-4 {
24
28
  font-size: 20px;
25
29
  line-height: 24px;
26
30
  font-weight: bold;
27
31
  }
28
32
 
29
- h5 {
33
+ h5, .heading-5 {
30
34
  font-size: 17px;
31
35
  line-height: 24px;
32
36
  font-weight: bold;
@@ -60,22 +64,27 @@ a:hover {
60
64
  color: #000000;
61
65
  }
62
66
 
67
+ .text-colour-hover-primary:hover,
63
68
  .text-colour-primary {
64
69
  color: #2C089B;
65
70
  }
66
71
 
72
+ .text-colour-hover-secondary:hover,
67
73
  .text-colour-secondary {
68
74
  color: #2AF135;
69
75
  }
70
76
 
77
+ .text-colour-hover-tertiary:hover,
71
78
  .text-colour-tertiary {
72
79
  color: #FF7272;
73
80
  }
74
81
 
82
+ .text-colour-hover-white:hover,
75
83
  .text-colour-white {
76
84
  color: #FFFFFF;
77
85
  }
78
86
 
87
+ .text-colour-hover-black:hover,
79
88
  .text-colour-black {
80
89
  color: #000000;
81
90
  }
@@ -100,22 +109,27 @@ a:hover {
100
109
  fill: #000000;
101
110
  }
102
111
 
112
+ .background-colour-hover-primary:hover,
103
113
  .background-colour-primary {
104
114
  background-color: #2C089B;
105
115
  }
106
116
 
117
+ .background-colour-hover-secondary:hover,
107
118
  .background-colour-secondary {
108
119
  background-color: #2AF135;
109
120
  }
110
121
 
122
+ .background-colour-hover-tertiary:hover,
111
123
  .background-colour-tertiary {
112
124
  background-color: #FF7272;
113
125
  }
114
126
 
127
+ .background-colour-hover-white:hover,
115
128
  .background-colour-white {
116
129
  background-color: #FFFFFF;
117
130
  }
118
131
 
132
+ .background-colour-hover-black:hover,
119
133
  .background-colour-black {
120
134
  background-color: #000000;
121
135
  }
@@ -142,9 +156,9 @@ a:hover {
142
156
  }
143
157
 
144
158
  .button {
145
- font-size: 18px;
146
- line-height: 23px;
147
- padding: 15px 30px;
159
+ font-size: 17px;
160
+ line-height: 24px;
161
+ padding: 10px 30px;
148
162
  border-radius: 5px;
149
163
  border: 1px solid #000000;
150
164
  background-color: #000000;
@@ -160,6 +174,17 @@ a:hover {
160
174
  background-color: #FFFFFF;
161
175
  color: #000000;
162
176
  }
177
+ .button.size-small {
178
+ font-size: 13px;
179
+ line-height: 17px;
180
+ padding: 5px 15px;
181
+ }
182
+ .button.button.rounded-true {
183
+ border-radius: 27.5px;
184
+ }
185
+ .button.button.rounded-true.size-small {
186
+ border-radius: 20px;
187
+ }
163
188
 
164
189
  .button-primary {
165
190
  color: #FFFFFF;
@@ -247,7 +272,10 @@ a:hover {
247
272
  }
248
273
 
249
274
  .button-rounded {
250
- border-radius: 50%;
275
+ border-radius: 27.5px;
276
+ }
277
+ .button-rounded.size-small {
278
+ border-radius: 20px;
251
279
  }
252
280
 
253
281
  .progress-bar {
@@ -296,9 +324,22 @@ a:hover {
296
324
  color: #2AF135;
297
325
  }
298
326
 
327
+ .video-wrap {
328
+ position: relative;
329
+ padding-bottom: 56.25%;
330
+ }
331
+
332
+ .video-wrap iframe,
299
333
  .video-wrap video {
334
+ position: absolute;
335
+ border: 0;
336
+ display: block;
337
+ left: 0;
338
+ right: 0;
339
+ top: 0;
340
+ bottom: 0;
300
341
  width: 100%;
301
- height: auto;
342
+ height: 100%;
302
343
  }
303
344
 
304
345
  .image-wrap img {
@@ -21,10 +21,18 @@ export class BiggiveButton {
21
21
  * Display full width
22
22
  */
23
23
  this.fullWidth = false;
24
+ /**
25
+ * Size
26
+ */
27
+ this.size = 'medium';
28
+ /**
29
+ * Rounded corners
30
+ */
31
+ this.rounded = true;
24
32
  }
25
33
  render() {
26
34
  return (h("div", { class: 'container space-below-' + this.spaceBelow },
27
- h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() }, this.label)));
35
+ h("a", { href: this.url, class: 'button button-' + this.colourScheme + ' full-width-' + this.fullWidth.toString() + ' size-' + this.size + ' rounded-' + this.rounded.toString() }, this.label)));
28
36
  }
29
37
  static get is() { return "biggive-button"; }
30
38
  static get encapsulation() { return "shadow"; }
@@ -124,6 +132,42 @@ export class BiggiveButton {
124
132
  "attribute": "full-width",
125
133
  "reflect": false,
126
134
  "defaultValue": "false"
135
+ },
136
+ "size": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "string",
141
+ "resolved": "string",
142
+ "references": {}
143
+ },
144
+ "required": false,
145
+ "optional": false,
146
+ "docs": {
147
+ "tags": [],
148
+ "text": "Size"
149
+ },
150
+ "attribute": "size",
151
+ "reflect": false,
152
+ "defaultValue": "'medium'"
153
+ },
154
+ "rounded": {
155
+ "type": "boolean",
156
+ "mutable": false,
157
+ "complexType": {
158
+ "original": "boolean",
159
+ "resolved": "boolean",
160
+ "references": {}
161
+ },
162
+ "required": false,
163
+ "optional": false,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "Rounded corners"
167
+ },
168
+ "attribute": "rounded",
169
+ "reflect": false,
170
+ "defaultValue": "true"
127
171
  }
128
172
  }; }
129
173
  }
@@ -21,6 +21,19 @@ export default {
21
21
  url: {
22
22
  name: 'Url',
23
23
  },
24
+ fullWidth: {
25
+ name: 'Full width',
26
+ },
27
+ size: {
28
+ name: 'Size',
29
+ control: {
30
+ type: 'select',
31
+ options: ['small', 'medium'],
32
+ },
33
+ },
34
+ rounded: {
35
+ name: 'Rounded',
36
+ },
24
37
  },
25
38
  };
26
39
  const Template = args => `
@@ -30,6 +43,8 @@ const Template = args => `
30
43
  label=${args.label}
31
44
  url=${args.url}
32
45
  full-width=${args.fullWidth}
46
+ size=${args.size}
47
+ rounded=${args.rounded}
33
48
  </biggive-button>
34
49
  `;
35
50
  export const ButtonComponent = Template.bind({});
@@ -39,4 +54,6 @@ ButtonComponent.args = {
39
54
  label: 'Donate now',
40
55
  url: 'http://www.google.com',
41
56
  fullWidth: false,
57
+ size: 'medium',
58
+ rounded: false,
42
59
  };
@@ -2,31 +2,35 @@ body {
2
2
  background-color: #D7D7D7;
3
3
  }
4
4
 
5
- h1 {
5
+ h1, h3, h3, h4, h5, h6 {
6
+ margin-bottom: 0;
7
+ }
8
+
9
+ h1, .heading-1 {
6
10
  font-size: 50px;
7
11
  line-height: 60px;
8
12
  font-weight: bold;
9
13
  }
10
14
 
11
- h2 {
15
+ h2, .heading-2 {
12
16
  font-size: 38px;
13
17
  line-height: 45px;
14
18
  font-weight: bold;
15
19
  }
16
20
 
17
- h3 {
21
+ h3, .heading-3 {
18
22
  font-size: 25px;
19
23
  line-height: 32px;
20
24
  font-weight: bold;
21
25
  }
22
26
 
23
- h4 {
27
+ h4, .heading-4 {
24
28
  font-size: 20px;
25
29
  line-height: 24px;
26
30
  font-weight: bold;
27
31
  }
28
32
 
29
- h5 {
33
+ h5, .heading-5 {
30
34
  font-size: 17px;
31
35
  line-height: 24px;
32
36
  font-weight: bold;
@@ -60,22 +64,27 @@ a:hover {
60
64
  color: #000000;
61
65
  }
62
66
 
67
+ .text-colour-hover-primary:hover,
63
68
  .text-colour-primary {
64
69
  color: #2C089B;
65
70
  }
66
71
 
72
+ .text-colour-hover-secondary:hover,
67
73
  .text-colour-secondary {
68
74
  color: #2AF135;
69
75
  }
70
76
 
77
+ .text-colour-hover-tertiary:hover,
71
78
  .text-colour-tertiary {
72
79
  color: #FF7272;
73
80
  }
74
81
 
82
+ .text-colour-hover-white:hover,
75
83
  .text-colour-white {
76
84
  color: #FFFFFF;
77
85
  }
78
86
 
87
+ .text-colour-hover-black:hover,
79
88
  .text-colour-black {
80
89
  color: #000000;
81
90
  }
@@ -100,22 +109,27 @@ a:hover {
100
109
  fill: #000000;
101
110
  }
102
111
 
112
+ .background-colour-hover-primary:hover,
103
113
  .background-colour-primary {
104
114
  background-color: #2C089B;
105
115
  }
106
116
 
117
+ .background-colour-hover-secondary:hover,
107
118
  .background-colour-secondary {
108
119
  background-color: #2AF135;
109
120
  }
110
121
 
122
+ .background-colour-hover-tertiary:hover,
111
123
  .background-colour-tertiary {
112
124
  background-color: #FF7272;
113
125
  }
114
126
 
127
+ .background-colour-hover-white:hover,
115
128
  .background-colour-white {
116
129
  background-color: #FFFFFF;
117
130
  }
118
131
 
132
+ .background-colour-hover-black:hover,
119
133
  .background-colour-black {
120
134
  background-color: #000000;
121
135
  }
@@ -142,9 +156,9 @@ a:hover {
142
156
  }
143
157
 
144
158
  .button {
145
- font-size: 18px;
146
- line-height: 23px;
147
- padding: 15px 30px;
159
+ font-size: 17px;
160
+ line-height: 24px;
161
+ padding: 10px 30px;
148
162
  border-radius: 5px;
149
163
  border: 1px solid #000000;
150
164
  background-color: #000000;
@@ -160,6 +174,17 @@ a:hover {
160
174
  background-color: #FFFFFF;
161
175
  color: #000000;
162
176
  }
177
+ .button.size-small {
178
+ font-size: 13px;
179
+ line-height: 17px;
180
+ padding: 5px 15px;
181
+ }
182
+ .button.button.rounded-true {
183
+ border-radius: 27.5px;
184
+ }
185
+ .button.button.rounded-true.size-small {
186
+ border-radius: 20px;
187
+ }
163
188
 
164
189
  .button-primary {
165
190
  color: #FFFFFF;
@@ -247,7 +272,10 @@ a:hover {
247
272
  }
248
273
 
249
274
  .button-rounded {
250
- border-radius: 50%;
275
+ border-radius: 27.5px;
276
+ }
277
+ .button-rounded.size-small {
278
+ border-radius: 20px;
251
279
  }
252
280
 
253
281
  .progress-bar {
@@ -296,9 +324,22 @@ a:hover {
296
324
  color: #2AF135;
297
325
  }
298
326
 
327
+ .video-wrap {
328
+ position: relative;
329
+ padding-bottom: 56.25%;
330
+ }
331
+
332
+ .video-wrap iframe,
299
333
  .video-wrap video {
334
+ position: absolute;
335
+ border: 0;
336
+ display: block;
337
+ left: 0;
338
+ right: 0;
339
+ top: 0;
340
+ bottom: 0;
300
341
  width: 100%;
301
- height: auto;
342
+ height: 100%;
302
343
  }
303
344
 
304
345
  .image-wrap img {
@@ -456,23 +497,14 @@ a:hover {
456
497
  }
457
498
 
458
499
  .content-wrap .slug {
459
- font-size: 20px;
460
- line-height: 24px;
461
- font-weight: bold;
462
500
  margin: 0;
463
501
  padding: 0;
464
502
  }
465
503
  .content-wrap h2 {
466
- font-size: 38px;
467
- line-height: 45px;
468
- font-weight: bold;
469
504
  margin: 0 0 5px 0;
470
505
  padding: 0;
471
506
  }
472
507
  .content-wrap .subtitle {
473
- font-size: 20px;
474
- line-height: 24px;
475
- font-weight: bold;
476
508
  margin: 0 0 5px 0;
477
509
  padding: 0;
478
510
  }
@@ -13,6 +13,10 @@ export class BiggiveCallToAction {
13
13
  * Default text colour
14
14
  */
15
15
  this.defaultTextColour = 'primary';
16
+ /**
17
+ * Slug size
18
+ */
19
+ this.slugSize = 4;
16
20
  /**
17
21
  * Slug colour
18
22
  */
@@ -25,10 +29,18 @@ export class BiggiveCallToAction {
25
29
  * Main title colour
26
30
  */
27
31
  this.mainTitleColour = '';
32
+ /**
33
+ * Main title size
34
+ */
35
+ this.mainTitleSize = 2;
28
36
  /**
29
37
  * Main title
30
38
  */
31
39
  this.mainTitle = null;
40
+ /**
41
+ * Main title size
42
+ */
43
+ this.subtitleSize = 4;
32
44
  /**
33
45
  * Subtitle colour
34
46
  */
@@ -74,9 +86,9 @@ export class BiggiveCallToAction {
74
86
  return (h("div", { class: 'container text-colour-' + this.defaultTextColour + ' space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow },
75
87
  h("div", { class: "sleeve" },
76
88
  h("div", { class: "content-wrap" },
77
- h("div", { class: 'slug text-colour-' + this.slugColour }, this.slug),
78
- h("h2", { class: 'title text-colour-' + this.mainTitleColour }, this.mainTitle),
79
- h("div", { class: 'slug text-colour-' + this.subtitleColour }, this.subtitle),
89
+ h("div", { class: 'slug heading-' + this.slugSize + ' text-colour-' + this.slugColour }, this.slug),
90
+ h("h2", { class: 'title heading-' + this.mainTitleSize + ' text-colour-' + this.mainTitleColour }, this.mainTitle),
91
+ h("div", { class: 'slug heading-' + this.subtitleSize + ' text-colour-' + this.subtitleColour }, this.subtitle),
80
92
  h("div", { class: 'teaser text-colour-' + this.teaserColour }, this.teaser),
81
93
  this.primaryButtonLabel != null && this.primaryButtonUrl != null ? (h("div", { class: "button-wrap" },
82
94
  h("biggive-button", { "colour-scheme": this.primaryButtonColourScheme, url: this.primaryButtonUrl, label: this.primaryButtonLabel }))) : null,
@@ -146,6 +158,24 @@ export class BiggiveCallToAction {
146
158
  "reflect": false,
147
159
  "defaultValue": "'primary'"
148
160
  },
161
+ "slugSize": {
162
+ "type": "number",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "number",
166
+ "resolved": "number",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Slug size"
174
+ },
175
+ "attribute": "slug-size",
176
+ "reflect": false,
177
+ "defaultValue": "4"
178
+ },
149
179
  "slugColour": {
150
180
  "type": "string",
151
181
  "mutable": false,
@@ -200,6 +230,24 @@ export class BiggiveCallToAction {
200
230
  "reflect": false,
201
231
  "defaultValue": "''"
202
232
  },
233
+ "mainTitleSize": {
234
+ "type": "number",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "number",
238
+ "resolved": "number",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": false,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": "Main title size"
246
+ },
247
+ "attribute": "main-title-size",
248
+ "reflect": false,
249
+ "defaultValue": "2"
250
+ },
203
251
  "mainTitle": {
204
252
  "type": "string",
205
253
  "mutable": false,
@@ -218,6 +266,24 @@ export class BiggiveCallToAction {
218
266
  "reflect": false,
219
267
  "defaultValue": "null"
220
268
  },
269
+ "subtitleSize": {
270
+ "type": "number",
271
+ "mutable": false,
272
+ "complexType": {
273
+ "original": "number",
274
+ "resolved": "number",
275
+ "references": {}
276
+ },
277
+ "required": false,
278
+ "optional": false,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": "Main title size"
282
+ },
283
+ "attribute": "subtitle-size",
284
+ "reflect": false,
285
+ "defaultValue": "4"
286
+ },
221
287
  "subtitleColour": {
222
288
  "type": "string",
223
289
  "mutable": false,
@@ -22,6 +22,13 @@ export default {
22
22
  options: ['primary', 'secondary', 'tertiary', 'white', 'black'],
23
23
  },
24
24
  },
25
+ slugSize: {
26
+ name: 'Slug size',
27
+ control: {
28
+ type: 'select',
29
+ options: [1, 2, 3, 4, 5],
30
+ },
31
+ },
25
32
  slugColour: {
26
33
  name: 'Slug colour',
27
34
  control: {
@@ -32,6 +39,13 @@ export default {
32
39
  slug: {
33
40
  name: 'Slug',
34
41
  },
42
+ mainTitleSize: {
43
+ name: 'Main title size',
44
+ control: {
45
+ type: 'select',
46
+ options: [1, 2, 3, 4, 5],
47
+ },
48
+ },
35
49
  mainTitleColour: {
36
50
  name: 'Main title colour',
37
51
  control: {
@@ -42,6 +56,13 @@ export default {
42
56
  mainTitle: {
43
57
  name: 'Main title',
44
58
  },
59
+ subtitleSize: {
60
+ name: 'Subtitle size',
61
+ control: {
62
+ type: 'select',
63
+ options: [1, 2, 3, 4, 5],
64
+ },
65
+ },
45
66
  subtitleColour: {
46
67
  name: 'Subtitle colour',
47
68
  control: {
@@ -95,10 +116,13 @@ const Template = args => `
95
116
  space-anove=${args.spaceAbove}
96
117
  space-below=${args.spaceBelow}
97
118
  default-text-colour="${args.defaultTextColour}"
119
+ slug-size="${args.slugSize}"
98
120
  slug-colour="${args.slugColour}"
99
121
  slug="${args.slug}"
122
+ main-title-size="${args.mainTitleSize}"
100
123
  main-title-colour="${args.mainTitleColour}"
101
124
  main-title="${args.mainTitle}"
125
+ subtitle-size="${args.subtitleSize}"
102
126
  subtitle-colour="${args.subtitleColour}"
103
127
  subtitle="${args.subtitle}"
104
128
  teaser-colour="${args.teaserColour}"
@@ -116,10 +140,13 @@ CallToActionComponent.args = {
116
140
  spaceAbove: 0,
117
141
  spaceBelow: 0,
118
142
  defaultTextColour: 'primary',
143
+ slugSize: 4,
119
144
  slugColour: '',
120
145
  slug: 'Test Slug',
146
+ mainTitleSize: 2,
121
147
  mainTitleColour: '',
122
148
  mainTitle: 'Test title',
149
+ subtitleSize: 4,
123
150
  subtitleColour: '',
124
151
  subtitle: 'Test subtitle',
125
152
  teaserColour: '',