@shift72/core-template 0.6.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. package/.github/pull_request_template.md +47 -0
  2. package/.github/workflows/node.js.yml +1 -1
  3. package/CHANGELOG.md +46 -1
  4. package/kibble.json +2 -2
  5. package/package.json +1 -1
  6. package/site/ar_LB.all.json +59 -25
  7. package/site/ca_ES.all.json +51 -25
  8. package/site/da_DK.all.json +51 -25
  9. package/site/de_DE.all.json +51 -25
  10. package/site/el_EL.all.json +51 -25
  11. package/site/en_AU.all.json +35 -9
  12. package/site/es_ES.all.json +51 -25
  13. package/site/es_MX.all.json +48 -22
  14. package/site/et_ET.all.json +51 -25
  15. package/site/fi_FI.all.json +52 -26
  16. package/site/fr_FR.all.json +51 -25
  17. package/site/hr_HR.all.json +53 -25
  18. package/site/hu_HU.all.json +51 -25
  19. package/site/it_IT.all.json +51 -25
  20. package/site/ja_JP.all.json +49 -25
  21. package/site/lt_LT.all.json +55 -25
  22. package/site/manifest.json.jet +2 -2
  23. package/site/nl_BE.all.json +50 -24
  24. package/site/no_NO.all.json +51 -25
  25. package/site/pl_PL.all.json +55 -25
  26. package/site/pt_BR.all.json +51 -25
  27. package/site/pt_PT.all.json +51 -25
  28. package/site/ru_RU.all.json +61 -31
  29. package/site/sr_SR.all.json +53 -25
  30. package/site/static/fonts/fa-s72.woff +0 -0
  31. package/site/static/js/main.js +1 -1
  32. package/site/static/scripts/main.js.map +1 -1
  33. package/site/styles/_awards.scss +1 -1
  34. package/site/styles/_buttons.scss +32 -27
  35. package/site/styles/_can-be-watched-button.scss +1 -21
  36. package/site/styles/_carousel.scss +141 -303
  37. package/site/styles/_collections.scss +6 -11
  38. package/site/styles/_cta-buttons.scss +261 -0
  39. package/site/styles/_forms.scss +1 -2
  40. package/site/styles/_icons.scss +16 -10
  41. package/site/styles/_legacy.scss +1 -43
  42. package/site/styles/_meta-detail.scss +39 -200
  43. package/site/styles/_meta-item-tagline.scss +33 -0
  44. package/site/styles/_meta-item.scss +0 -4
  45. package/site/styles/_meta-sub-item.scss +116 -0
  46. package/site/styles/_mixins.scss +47 -0
  47. package/site/styles/_nav.scss +1 -1
  48. package/site/styles/_pages.scss +4 -13
  49. package/site/styles/_plans.scss +14 -0
  50. package/site/styles/_shift72.scss +4 -0
  51. package/site/styles/_variables.scss +9 -6
  52. package/site/styles/main.scss +2 -1
  53. package/site/templates/application/footer/brand.jet +4 -4
  54. package/site/templates/application/footer/copyright-statement.jet +1 -1
  55. package/site/templates/application/nav/nav.jet +2 -2
  56. package/site/templates/bundle/item.jet +2 -4
  57. package/site/templates/collection/carousel/carousel.jet +27 -0
  58. package/site/templates/collection/carousel/item/image.jet +5 -0
  59. package/site/templates/collection/carousel/item/synopsis.jet +5 -0
  60. package/site/templates/collection/carousel/item/tagline.jet +7 -0
  61. package/site/templates/collection/carousel/item/title.jet +3 -0
  62. package/site/templates/collection/carousel/item.jet +41 -0
  63. package/site/templates/collection/carousel/pagination.jet +9 -0
  64. package/site/templates/collection/page_collection.jet +2 -2
  65. package/site/templates/common/cta_buttons.jet +70 -0
  66. package/site/templates/common/social-media-buttons.jet +2 -2
  67. package/site/templates/film/item.jet +6 -16
  68. package/site/templates/items/meta_item.jet +20 -6
  69. package/site/templates/items/sub_item.jet +22 -0
  70. package/site/templates/items/tagline.jet +2 -2
  71. package/site/templates/page/homepage.jet +2 -3
  72. package/site/templates/tv/detail.jet +10 -18
  73. package/site/tr_TR.all.json +51 -25
  74. package/site/uk_UA.all.json +55 -25
  75. package/site/zh_TW.all.json +49 -25
  76. package/site/styles/_homepage.scss +0 -3
  77. package/site/templates/bundle/buttons.jet +0 -6
  78. package/site/templates/bundle/extras.jet +0 -13
  79. package/site/templates/collection/carousel.jet +0 -27
  80. package/site/templates/collection/carousel_item.jet +0 -68
  81. package/site/templates/items/bonus_item.jet +0 -23
  82. package/site/templates/items/featured_item.jet +0 -61
  83. package/site/templates/tv/episode.jet +0 -21
@@ -0,0 +1,261 @@
1
+ /* stylelint-disable selector-max-compound-selectors, max-nesting-depth */
2
+ .cta-buttons {
3
+ display: grid;
4
+ gap: 16px;
5
+ margin-bottom: 8px;
6
+
7
+ @include media-breakpoint-up(xs) {
8
+ grid-auto-columns: min-content;
9
+ grid-template-rows: 1fr;
10
+ }
11
+
12
+ > * {
13
+ @include media-breakpoint-up(xs) {
14
+ grid-column: auto;
15
+ grid-row: 1;
16
+ }
17
+ &:not(.extra-buttons) {
18
+ animation: fadein 2s;
19
+ }
20
+ }
21
+
22
+ .s72-pricing-button-container {
23
+ display: grid;
24
+ gap: 16px;
25
+ grid-template-columns: 1fr 1fr;
26
+
27
+ @include media-breakpoint-up(xs) {
28
+ grid-template-columns: none;
29
+ }
30
+
31
+ > * {
32
+ align-self: start;
33
+ }
34
+
35
+ // If there is only one button, make it full width on one row.
36
+ :only-child {
37
+ grid-column: 1 / 3;
38
+ grid-row: 1;
39
+ }
40
+
41
+ // If there are two buttons...
42
+ :first-child:nth-last-child(2) {
43
+ // And the first button is the subscribe button:
44
+ // Put the subscribe button in the first row full width.
45
+ &.s72-subscribe {
46
+ grid-column: 1 / 3;
47
+ grid-row: 1;
48
+
49
+ @include media-breakpoint-up(xs) {
50
+ grid-column: auto;
51
+ }
52
+
53
+ // And put the other button in the second row full width.
54
+ + .s72-btn-purchase,
55
+ + .s72-btn-rent {
56
+ grid-column: 1 / 3;
57
+ grid-row: 2;
58
+
59
+ @include media-breakpoint-up(xs) {
60
+ grid-column: auto;
61
+ grid-row: 1;
62
+ }
63
+ }
64
+ }
65
+
66
+ // And the first button is the buy button
67
+ // Put the buy button in the first column, first row.
68
+ &.s72-btn-purchase {
69
+ grid-column: 1 / 2;
70
+ grid-row: 1;
71
+
72
+ @include media-breakpoint-up(xs) {
73
+ grid-column: auto;
74
+ }
75
+
76
+ // And put the rent button in the second column, first row.
77
+ + .s72-btn-rent {
78
+ grid-column: 2 / 3;
79
+ grid-row: 1;
80
+
81
+ @include media-breakpoint-up(xs) {
82
+ grid-column: auto;
83
+ }
84
+ }
85
+ }
86
+ }
87
+
88
+ // If there are three buttons...
89
+ :first-child:nth-last-child(3) {
90
+ // Put the subscribe button in the first row full width.
91
+ &.s72-subscribe {
92
+ grid-column: 1 / 3;
93
+ grid-row: 1;
94
+
95
+ @include media-breakpoint-up(xs) {
96
+ grid-column: auto;
97
+ }
98
+
99
+ // Put the buy button in the first column, second row.
100
+ ~ .s72-btn-purchase {
101
+ grid-column: 1 / 2;
102
+ grid-row: 2;
103
+
104
+ @include media-breakpoint-up(xs) {
105
+ grid-column: auto;
106
+ grid-row: 1;
107
+ }
108
+ }
109
+
110
+ // And put the rent button in the second column, second row.
111
+ ~ .s72-btn-rent {
112
+ grid-column: 2 / 3;
113
+ grid-row: 2;
114
+
115
+ @include media-breakpoint-up(xs) {
116
+ grid-column: auto;
117
+ grid-row: 1;
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .s72-btn {
124
+ white-space: nowrap;
125
+ width: 100%;
126
+
127
+ @include media-breakpoint-up(xs) {
128
+ width: auto;
129
+ }
130
+
131
+ &:nth-child(2) {
132
+ margin: 0; // RELISH OVERRIDE.
133
+ }
134
+ }
135
+ }
136
+
137
+ s72-play-button {
138
+ .s72-btn-play {
139
+ margin: 0;
140
+ min-width: 140px;
141
+ padding: 6px 12px;
142
+ width: 100%;
143
+ }
144
+
145
+ .s72-btn-play-icon {
146
+ display: none;
147
+ }
148
+
149
+ .verb {
150
+ font-size: 1rem;
151
+ }
152
+ }
153
+
154
+ .s72-btn-can-be-watched {
155
+ min-width: 140px;
156
+ padding: 6px 12px;
157
+ width: 100%;
158
+
159
+ .padder {
160
+ display: none;
161
+ }
162
+
163
+ .s72-btn-can-be-watched-label {
164
+ font-size: 1rem;
165
+ font-weight: 400;
166
+ }
167
+ }
168
+
169
+ .extra-buttons {
170
+ align-items: center;
171
+ display: grid;
172
+ gap: 16px;
173
+ grid-template-rows: 1fr;
174
+ justify-items: center;
175
+ padding: 0 36px;
176
+
177
+ @include media-breakpoint-up(xs) {
178
+ grid-template-columns: min-content min-content min-content;
179
+ padding: 0;
180
+ }
181
+
182
+ > * {
183
+ align-self: start;
184
+ animation: fadein 2s;
185
+ grid-column: auto;
186
+ grid-row: 1;
187
+ }
188
+
189
+ /*#region ICON HACKS. TODO: CLEAN THIS MESS UP! */
190
+ // This region exists to override styles for the trailer button, wishlist button, and share modal button.
191
+ // Once the new icons have been committed to core-template, this region should be deleted from this file,
192
+ // and the new CSS for these icons should live in _buttons.scss (probably).
193
+ .s72-btn-play {
194
+ background: transparent;
195
+ border: 0;
196
+ height: 42px;
197
+ margin: 0;
198
+ padding: 0;
199
+ width: 42px;
200
+
201
+ @include hover-focus {
202
+ background: transparent;
203
+
204
+ circle {
205
+ fill: var(--primary);
206
+ stroke: var(--primary);
207
+ stroke-width: 3px;
208
+ }
209
+
210
+ path {
211
+ fill: #000;
212
+ stroke: #000;
213
+ }
214
+ }
215
+
216
+ circle {
217
+ fill: transparent;
218
+ stroke: var(--primary);
219
+ stroke-width: 3px;
220
+ }
221
+
222
+ path {
223
+ fill: var(--body-color);
224
+ stroke: var(--body-color);
225
+ }
226
+
227
+ .verb {
228
+ display: none;
229
+ }
230
+ }
231
+
232
+ .s72-userwishlist-buttons {
233
+ .s72-btn-wishlist {
234
+ height: 42px;
235
+ margin: 0;
236
+ padding: 0;
237
+ width: 42px;
238
+ }
239
+
240
+ i {
241
+ margin: 0;
242
+ padding: 0;
243
+ }
244
+
245
+ span {
246
+ font-size: 0;
247
+ }
248
+ }
249
+
250
+ .social-media-buttons {
251
+ .s72-btn {
252
+ border: 0;
253
+ height: 42px;
254
+ padding: 0;
255
+ width: 42px;
256
+ }
257
+ }
258
+ /*#endregion */
259
+ }
260
+ }
261
+ /* stylelint-enable selector-max-compound-selectors, max-nesting-depth */
@@ -155,12 +155,11 @@ s72-activatedevice-form,
155
155
 
156
156
  .s72-modal-container {
157
157
  .s72-buttons {
158
-
159
158
  .fa-ellipsis-v {
160
159
  opacity: 0.7;
161
160
  }
162
161
 
163
- .s72-btn:not(.s72-btn-show-saved-cards) {
162
+ .s72-btn {
164
163
  color: $button-text-color;
165
164
 
166
165
  &:hover {
@@ -50,35 +50,35 @@
50
50
  }
51
51
 
52
52
  .fa-cc-visa::before {
53
- content: '\e000';
53
+ content: '\e027';
54
54
  }
55
55
 
56
56
  .fa-cc-stripe::before {
57
- content: '\e001';
57
+ content: '\e026';
58
58
  }
59
59
 
60
60
  .fa-cc-paypal::before {
61
- content: '\e002';
61
+ content: '\e025';
62
62
  }
63
63
 
64
64
  .fa-cc-mastercard::before {
65
- content: '\e003';
65
+ content: '\e024';
66
66
  }
67
67
 
68
68
  .fa-cc-jcb::before {
69
- content: '\e004';
69
+ content: '\e023';
70
70
  }
71
71
 
72
72
  .fa-cc-discover::before {
73
- content: '\e005';
73
+ content: '\e022';
74
74
  }
75
75
 
76
76
  .fa-cc-diners-club::before {
77
- content: '\e006';
77
+ content: '\e000';
78
78
  }
79
79
 
80
80
  .fa-cc-amex::before {
81
- content: '\e007';
81
+ content: '\e002';
82
82
  }
83
83
 
84
84
  .fa-twitter::before {
@@ -154,13 +154,19 @@
154
154
  }
155
155
 
156
156
  .fa-circle::before {
157
- content: '\e01c';
157
+ content: '\e001';
158
158
  }
159
159
 
160
- .fa-warning::before, .fa-exclamation-circle::before, .fa-exclamation-triangle::before {
160
+ .fa-warning::before,
161
+ .fa-exclamation-circle::before,
162
+ .fa-exclamation-triangle::before {
161
163
  content: '\e01b';
162
164
  }
163
165
 
166
+ .existing-card-icon {
167
+ font-size: 1.2rem;
168
+ }
169
+
164
170
  s72-availability-label .availability-state::before {
165
171
  content: '\e01b';
166
172
  }
@@ -116,49 +116,6 @@ s72-classification-label {
116
116
  display: inline-block;
117
117
  }
118
118
 
119
- .s72-classification {
120
- @extend .d-flex;
121
- display: inline-block;
122
- margin-top: 0;
123
- padding: 0;
124
-
125
- .s72-classification-intro,
126
- .s72-classification-divider {
127
- display: none;
128
- }
129
-
130
- .s72-classification-description {
131
- color: rgba(255, 255, 255, 0.8);
132
- display: none;
133
- font-size: 14px;
134
- font-weight: $font-weight-normal;
135
- margin-left: 5px;
136
- }
137
-
138
- .s72-classification-label {
139
- border: 1px solid rgba(var(--body-color-rgb), 0.8);
140
- border-radius: 0;
141
- color: rgba(var(--body-color-rgb), 0.8);
142
- font-size: 12px;
143
- font-weight: $font-weight-bold;
144
- padding: 1px 5px;
145
- @include media-breakpoint-up(xxxl) {
146
- font-size: 14px;
147
- }
148
- }
149
- }
150
-
151
- .meta-detail-content .meta-detail-tagline-and-classification {
152
- align-items: center;
153
- display: flex !important;
154
- padding-bottom: 14px;
155
- padding-top: 8px;
156
- }
157
-
158
- .meta-detail-content .meta-detail-tagline-and-classification .s72-classification {
159
- margin-right: 5px;
160
- }
161
-
162
119
  .wishlist-page-landscape .s72-userwishlist-items {
163
120
  @extend .d-flex;
164
121
  flex-wrap: wrap;
@@ -295,6 +252,7 @@ p,
295
252
 
296
253
  .no-scroll {
297
254
  overflow-y: hidden;
255
+
298
256
  @include media-breakpoint-up(lg) {
299
257
  overflow-y: visible;
300
258
  }