@biggive/components 1.0.6 → 1.0.8

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 (211) 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 +32 -2
  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 +95 -10
  43. package/dist/collection/components/biggive-basic-card/biggive-basic-card.css +95 -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 +95 -10
  47. package/dist/collection/components/biggive-boxed-content/biggive-boxed-content.css +95 -10
  48. package/dist/collection/components/biggive-branded-image/biggive-branded-image.css +95 -10
  49. package/dist/collection/components/biggive-button/biggive-button.css +95 -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 +95 -19
  53. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.js +92 -4
  54. package/dist/collection/components/biggive-call-to-action/biggive-call-to-action.stories.js +36 -0
  55. package/dist/collection/components/biggive-campaign-card/biggive-campaign-card.css +95 -10
  56. package/dist/collection/components/biggive-campaign-card-filter-grid/biggive-campaign-card-filter-grid.css +95 -10
  57. package/dist/collection/components/biggive-campaign-highlights/biggive-campaign-highlights.css +95 -10
  58. package/dist/collection/components/biggive-category-icon/biggive-category-icon.css +95 -10
  59. package/dist/collection/components/biggive-footer/biggive-footer.css +95 -10
  60. package/dist/collection/components/biggive-formatted-text/biggive-formatted-text.css +95 -10
  61. package/dist/collection/components/biggive-grid/biggive-grid.css +95 -10
  62. package/dist/collection/components/biggive-header/biggive-header.css +95 -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 +95 -35
  66. package/dist/collection/components/biggive-heading/biggive-heading.js +46 -2
  67. package/dist/collection/components/biggive-heading/biggive-heading.stories.js +18 -0
  68. package/dist/collection/components/biggive-hero-image/biggive-hero-image.css +98 -10
  69. package/dist/collection/components/biggive-icon-group/biggive-icon-group.css +95 -10
  70. package/dist/collection/components/biggive-image/biggive-image.css +95 -10
  71. package/dist/collection/components/biggive-image/biggive-image.js +104 -2
  72. package/dist/collection/components/biggive-image/biggive-image.stories.js +30 -1
  73. package/dist/collection/components/biggive-image-feature/biggive-image-feature.css +95 -10
  74. package/dist/collection/components/biggive-misc-icon/biggive-misc-icon.css +95 -10
  75. package/dist/collection/components/biggive-page-columns/biggive-page-columns.css +95 -10
  76. package/dist/collection/components/biggive-page-section/biggive-page-section.css +96 -10
  77. package/dist/collection/components/biggive-progress-bar/biggive-progress-bar.css +95 -10
  78. package/dist/collection/components/biggive-quote/biggive-quote.css +95 -10
  79. package/dist/collection/components/biggive-search/biggive-search.css +95 -10
  80. package/dist/collection/components/biggive-social-icon/biggive-social-icon.css +95 -10
  81. package/dist/collection/components/biggive-tab/biggive-tab.css +95 -10
  82. package/dist/collection/components/biggive-tabbed-content/biggive-tabbed-content.css +95 -10
  83. package/dist/collection/components/biggive-totalizer/biggive-totalizer.css +95 -10
  84. package/dist/collection/components/biggive-video/biggive-video.css +95 -10
  85. package/dist/collection/components/biggive-video/biggive-video.js +25 -3
  86. package/dist/collection/components/biggive-video/biggive-video.stories.js +11 -1
  87. package/dist/collection/components/biggive-video-feature/biggive-video-feature.css +95 -10
  88. package/dist/collection/components/biggive-video-feature/biggive-video-feature.js +25 -3
  89. package/dist/collection/components/biggive-video-feature/biggive-video-feature.stories.js +10 -1
  90. package/dist/collection/util/video.js +10 -0
  91. package/dist/components/biggive-article-card.d.ts +11 -0
  92. package/dist/components/biggive-article-card.js +95 -0
  93. package/dist/components/biggive-back-to-top.js +1 -1
  94. package/dist/components/biggive-basic-card.js +14 -4
  95. package/dist/components/biggive-beneficiary-icon.js +1 -1
  96. package/dist/components/biggive-boxed-content.js +1 -1
  97. package/dist/components/biggive-branded-image.js +1 -1
  98. package/dist/components/biggive-button2.js +13 -3
  99. package/dist/components/biggive-call-to-action.js +22 -2
  100. package/dist/components/biggive-campaign-card-filter-grid.js +1 -1
  101. package/dist/components/biggive-campaign-card.js +1 -1
  102. package/dist/components/biggive-campaign-highlights.js +1 -1
  103. package/dist/components/biggive-category-icon.js +1 -1
  104. package/dist/components/biggive-footer.js +1 -1
  105. package/dist/components/biggive-formatted-text.js +1 -1
  106. package/dist/components/biggive-grid.js +1 -1
  107. package/dist/components/biggive-header.js +9 -10
  108. package/dist/components/biggive-heading.js +12 -2
  109. package/dist/components/biggive-hero-image.js +1 -1
  110. package/dist/components/biggive-icon-group.js +1 -1
  111. package/dist/components/biggive-image-feature.js +1 -1
  112. package/dist/components/biggive-image.js +37 -3
  113. package/dist/components/biggive-misc-icon2.js +1 -1
  114. package/dist/components/biggive-page-columns.js +1 -1
  115. package/dist/components/biggive-page-section.js +1 -1
  116. package/dist/components/biggive-progress-bar2.js +1 -1
  117. package/dist/components/biggive-quote.js +1 -1
  118. package/dist/components/biggive-search.js +1 -1
  119. package/dist/components/biggive-social-icon2.js +1 -1
  120. package/dist/components/biggive-tab.js +1 -1
  121. package/dist/components/biggive-tabbed-content.js +1 -1
  122. package/dist/components/biggive-totalizer.js +1 -1
  123. package/dist/components/biggive-video-feature.js +8 -2
  124. package/dist/components/biggive-video.js +8 -2
  125. package/dist/components/index.d.ts +1 -0
  126. package/dist/components/index.js +1 -0
  127. package/dist/components/video.js +12 -0
  128. package/dist/esm/biggive-article-card.entry.js +59 -0
  129. package/dist/esm/biggive-back-to-top_20.entry.js +900 -0
  130. package/dist/esm/biggive-basic-card.entry.js +12 -4
  131. package/dist/esm/biggive-beneficiary-icon.entry.js +3 -3
  132. package/dist/esm/biggive-boxed-content.entry.js +1 -1
  133. package/dist/esm/biggive-branded-image.entry.js +1 -1
  134. package/dist/esm/biggive-category-icon.entry.js +3 -3
  135. package/dist/esm/biggive-formatted-text.entry.js +1 -1
  136. package/dist/esm/biggive-icon-group.entry.js +1 -1
  137. package/dist/esm/biggive-image.entry.js +32 -2
  138. package/dist/esm/biggive-quote.entry.js +1 -1
  139. package/dist/esm/biggive-search.entry.js +2 -2
  140. package/dist/esm/biggive-tab.entry.js +1 -1
  141. package/dist/esm/biggive-tabbed-content.entry.js +1 -1
  142. package/dist/esm/biggive-video.entry.js +7 -2
  143. package/dist/esm/biggive.js +1 -1
  144. package/dist/esm/{fontawesome-icons-e232deb7.js → fontawesome-icons-562459be.js} +1 -1
  145. package/dist/esm/{index.es-64a64fa8.js → index.es-5777380a.js} +1 -1
  146. package/dist/esm/loader.js +1 -1
  147. package/dist/esm/video-89b7535d.js +12 -0
  148. package/dist/types/components/biggive-article-card/biggive-article-card.d.ts +47 -0
  149. package/dist/types/components/biggive-article-card/biggive-article-card.stories.d.ts +56 -0
  150. package/dist/types/components/biggive-basic-card/biggive-basic-card.d.ts +9 -1
  151. package/dist/types/components/biggive-basic-card/biggive-basic-card.stories.d.ts +21 -0
  152. package/dist/types/components/biggive-button/biggive-button.d.ts +8 -0
  153. package/dist/types/components/biggive-button/biggive-button.stories.d.ts +13 -0
  154. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.d.ts +16 -0
  155. package/dist/types/components/biggive-call-to-action/biggive-call-to-action.stories.d.ts +28 -0
  156. package/dist/types/components/biggive-header/biggive-header.d.ts +4 -0
  157. package/dist/types/components/biggive-heading/biggive-heading.d.ts +8 -0
  158. package/dist/types/components/biggive-heading/biggive-heading.stories.d.ts +14 -0
  159. package/dist/types/components/biggive-image/biggive-image.d.ts +18 -0
  160. package/dist/types/components/biggive-image/biggive-image.stories.d.ts +20 -0
  161. package/dist/types/components/biggive-video/biggive-video.d.ts +4 -0
  162. package/dist/types/components/biggive-video/biggive-video.stories.d.ts +7 -0
  163. package/dist/types/components/biggive-video-feature/biggive-video-feature.d.ts +4 -0
  164. package/dist/types/components/biggive-video-feature/biggive-video-feature.stories.d.ts +7 -0
  165. package/dist/types/components.d.ts +239 -2
  166. package/dist/types/util/video.d.ts +3 -0
  167. package/hydrate/index.js +232 -45
  168. package/package.json +1 -1
  169. package/dist/biggive/p-068c6901.entry.js +0 -1
  170. package/dist/biggive/p-19aac764.entry.js +0 -1
  171. package/dist/biggive/p-278fbc22.entry.js +0 -1
  172. package/dist/biggive/p-293fa43e.entry.js +0 -1
  173. package/dist/biggive/p-29921058.entry.js +0 -1
  174. package/dist/biggive/p-2c7ccc17.entry.js +0 -1
  175. package/dist/biggive/p-2d9408d3.entry.js +0 -1
  176. package/dist/biggive/p-3670bfe5.entry.js +0 -1
  177. package/dist/biggive/p-46a368de.entry.js +0 -1
  178. package/dist/biggive/p-558ebb94.entry.js +0 -1
  179. package/dist/biggive/p-664bfe6e.entry.js +0 -1
  180. package/dist/biggive/p-7637ac94.entry.js +0 -1
  181. package/dist/biggive/p-78129441.entry.js +0 -1
  182. package/dist/biggive/p-8b5487c1.entry.js +0 -1
  183. package/dist/biggive/p-a62e9af0.entry.js +0 -1
  184. package/dist/biggive/p-ab82bcf1.entry.js +0 -1
  185. package/dist/biggive/p-b4d5f946.entry.js +0 -1
  186. package/dist/biggive/p-c84740c3.entry.js +0 -1
  187. package/dist/biggive/p-cc6e33a6.entry.js +0 -1
  188. package/dist/biggive/p-db3da9bb.entry.js +0 -1
  189. package/dist/biggive/p-e0347718.entry.js +0 -1
  190. package/dist/biggive/p-ea35e2fe.entry.js +0 -1
  191. package/dist/biggive/p-ef6c1ed4.entry.js +0 -1
  192. package/dist/cjs/biggive-back-to-top_11.cjs.entry.js +0 -365
  193. package/dist/cjs/biggive-call-to-action.cjs.entry.js +0 -83
  194. package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +0 -50
  195. package/dist/cjs/biggive-campaign-card.cjs.entry.js +0 -97
  196. package/dist/cjs/biggive-grid.cjs.entry.js +0 -31
  197. package/dist/cjs/biggive-hero-image.cjs.entry.js +0 -73
  198. package/dist/cjs/biggive-image-feature.cjs.entry.js +0 -67
  199. package/dist/cjs/biggive-page-section.cjs.entry.js +0 -35
  200. package/dist/cjs/biggive-totalizer.cjs.entry.js +0 -69
  201. package/dist/cjs/biggive-video-feature.cjs.entry.js +0 -67
  202. package/dist/esm/biggive-back-to-top_11.entry.js +0 -351
  203. package/dist/esm/biggive-call-to-action.entry.js +0 -79
  204. package/dist/esm/biggive-campaign-card-filter-grid.entry.js +0 -46
  205. package/dist/esm/biggive-campaign-card.entry.js +0 -93
  206. package/dist/esm/biggive-grid.entry.js +0 -27
  207. package/dist/esm/biggive-hero-image.entry.js +0 -69
  208. package/dist/esm/biggive-image-feature.entry.js +0 -63
  209. package/dist/esm/biggive-page-section.entry.js +0 -31
  210. package/dist/esm/biggive-totalizer.entry.js +0 -65
  211. 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 {
@@ -306,6 +347,22 @@ a:hover {
306
347
  height: auto;
307
348
  }
308
349
 
350
+ .align-left {
351
+ text-align: left;
352
+ }
353
+
354
+ .align-right {
355
+ text-align: right;
356
+ }
357
+
358
+ .align-center {
359
+ text-align: center;
360
+ }
361
+
362
+ .align-justify {
363
+ text-align: justify;
364
+ }
365
+
309
366
  .space-below-0 {
310
367
  margin-bottom: 0;
311
368
  }
@@ -334,6 +391,34 @@ a:hover {
334
391
  margin-bottom: 60px;
335
392
  }
336
393
 
394
+ .space-above-0 {
395
+ margin-top: 0;
396
+ }
397
+
398
+ .space-above-1 {
399
+ margin-top: 5px;
400
+ }
401
+
402
+ .space-above-2 {
403
+ margin-top: 10px;
404
+ }
405
+
406
+ .space-above-3 {
407
+ margin-top: 15px;
408
+ }
409
+
410
+ .space-above-4 {
411
+ margin-top: 30px;
412
+ }
413
+
414
+ .space-above-5 {
415
+ margin-top: 45px;
416
+ }
417
+
418
+ .space-above-6 {
419
+ margin-top: 60px;
420
+ }
421
+
337
422
  .horizontal-padding-1 {
338
423
  padding-left: 5px;
339
424
  padding-right: 5px;
@@ -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 {
@@ -306,6 +347,22 @@ a:hover {
306
347
  height: auto;
307
348
  }
308
349
 
350
+ .align-left {
351
+ text-align: left;
352
+ }
353
+
354
+ .align-right {
355
+ text-align: right;
356
+ }
357
+
358
+ .align-center {
359
+ text-align: center;
360
+ }
361
+
362
+ .align-justify {
363
+ text-align: justify;
364
+ }
365
+
309
366
  .space-below-0 {
310
367
  margin-bottom: 0;
311
368
  }
@@ -334,6 +391,34 @@ a:hover {
334
391
  margin-bottom: 60px;
335
392
  }
336
393
 
394
+ .space-above-0 {
395
+ margin-top: 0;
396
+ }
397
+
398
+ .space-above-1 {
399
+ margin-top: 5px;
400
+ }
401
+
402
+ .space-above-2 {
403
+ margin-top: 10px;
404
+ }
405
+
406
+ .space-above-3 {
407
+ margin-top: 15px;
408
+ }
409
+
410
+ .space-above-4 {
411
+ margin-top: 30px;
412
+ }
413
+
414
+ .space-above-5 {
415
+ margin-top: 45px;
416
+ }
417
+
418
+ .space-above-6 {
419
+ margin-top: 60px;
420
+ }
421
+
337
422
  .horizontal-padding-1 {
338
423
  padding-left: 5px;
339
424
  padding-right: 5px;
@@ -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 {
@@ -306,6 +347,22 @@ a:hover {
306
347
  height: auto;
307
348
  }
308
349
 
350
+ .align-left {
351
+ text-align: left;
352
+ }
353
+
354
+ .align-right {
355
+ text-align: right;
356
+ }
357
+
358
+ .align-center {
359
+ text-align: center;
360
+ }
361
+
362
+ .align-justify {
363
+ text-align: justify;
364
+ }
365
+
309
366
  .space-below-0 {
310
367
  margin-bottom: 0;
311
368
  }
@@ -334,6 +391,34 @@ a:hover {
334
391
  margin-bottom: 60px;
335
392
  }
336
393
 
394
+ .space-above-0 {
395
+ margin-top: 0;
396
+ }
397
+
398
+ .space-above-1 {
399
+ margin-top: 5px;
400
+ }
401
+
402
+ .space-above-2 {
403
+ margin-top: 10px;
404
+ }
405
+
406
+ .space-above-3 {
407
+ margin-top: 15px;
408
+ }
409
+
410
+ .space-above-4 {
411
+ margin-top: 30px;
412
+ }
413
+
414
+ .space-above-5 {
415
+ margin-top: 45px;
416
+ }
417
+
418
+ .space-above-6 {
419
+ margin-top: 60px;
420
+ }
421
+
337
422
  .horizontal-padding-1 {
338
423
  padding-left: 5px;
339
424
  padding-right: 5px;
@@ -1,6 +1,11 @@
1
1
  import { Component, Prop, h } from '@stencil/core';
2
+ import { VideoService } from '../../util/video';
2
3
  export class BiggiveVideo {
3
4
  constructor() {
5
+ /**
6
+ * Space above component
7
+ */
8
+ this.spaceAbove = 0;
4
9
  /**
5
10
  * Space below component
6
11
  */
@@ -11,9 +16,8 @@ export class BiggiveVideo {
11
16
  this.videoUrl = '';
12
17
  }
13
18
  render() {
14
- return (h("div", { class: 'container space-below-' + this.spaceBelow },
15
- h("div", { class: "video-wrap" },
16
- h("video", { controls: true, src: this.videoUrl }))));
19
+ return (h("div", { class: 'container space-above-' + this.spaceAbove + ' space-below-' + this.spaceBelow },
20
+ h("div", { class: "video-wrap", innerHTML: VideoService.getEmbedHtml(this.videoUrl) })));
17
21
  }
18
22
  static get is() { return "biggive-video"; }
19
23
  static get encapsulation() { return "shadow"; }
@@ -24,6 +28,24 @@ export class BiggiveVideo {
24
28
  "$": ["biggive-video.css"]
25
29
  }; }
26
30
  static get properties() { return {
31
+ "spaceAbove": {
32
+ "type": "number",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "number",
36
+ "resolved": "number",
37
+ "references": {}
38
+ },
39
+ "required": false,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": "Space above component"
44
+ },
45
+ "attribute": "space-above",
46
+ "reflect": false,
47
+ "defaultValue": "0"
48
+ },
27
49
  "spaceBelow": {
28
50
  "type": "number",
29
51
  "mutable": false,
@@ -1,6 +1,13 @@
1
1
  export default {
2
2
  title: 'Components/Content',
3
3
  argTypes: {
4
+ spaceAbove: {
5
+ name: 'Space above',
6
+ control: {
7
+ type: 'select',
8
+ options: [0, 1, 2, 3, 4, 5, 6],
9
+ },
10
+ },
4
11
  spaceBelow: {
5
12
  name: 'Space below',
6
13
  control: {
@@ -15,12 +22,15 @@ export default {
15
22
  };
16
23
  const Template = args => `
17
24
  <biggive-video
25
+ space-above="${args.spaceAbove}"
18
26
  space-below="${args.spaceBelow}"
19
27
  video-url="${args.videoUrl}">
20
28
  </biggive-video>
29
+
21
30
  `;
22
31
  export const VideoComponent = Template.bind({});
23
32
  VideoComponent.args = {
33
+ spaceAbove: 4,
24
34
  spaceBelow: 4,
25
- videoUrl: 'http://techslides.com/demos/sample-videos/small.mp4',
35
+ videoUrl: 'https://www.youtube.com/embed/Ru4vGXMavf4',
26
36
  };