@shift72/core-template 0.4.1 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/CHANGELOG.md +29 -1
  2. package/kibble.json +2 -2
  3. package/package.json +7 -4
  4. package/scripts/css-local-get.js +34 -0
  5. package/scripts/css-local-put.js +110 -0
  6. package/scripts/language-file-validator.js +16 -2
  7. package/site/ar_LB.all.json +22 -18
  8. package/site/ca_ES.all.json +16 -32
  9. package/site/da_DK.all.json +47 -32
  10. package/site/de_DE.all.json +130 -2
  11. package/site/ee_EE.all.json +90 -23
  12. package/site/el_EL.all.json +89 -18
  13. package/site/en_AU.all.json +27 -24
  14. package/site/es_ES.all.json +129 -3
  15. package/site/es_MX.all.json +165 -3
  16. package/site/fi_FI.all.json +164 -2
  17. package/site/fr_FR.all.json +131 -3
  18. package/site/hr_HR.all.json +64 -5
  19. package/site/hu_HU.all.json +90 -23
  20. package/site/it_IT.all.json +127 -3
  21. package/site/ja_JP.all.json +163 -3
  22. package/site/lt_LT.all.json +50 -15
  23. package/site/nl_BE.all.json +53 -16
  24. package/site/no_NO.all.json +87 -23
  25. package/site/pl_PL.all.json +162 -3
  26. package/site/pt_BR.all.json +24 -32
  27. package/site/pt_PT.all.json +93 -19
  28. package/site/ru_RU.all.json +85 -16
  29. package/site/se_SE.all.json +64 -31
  30. package/site/static/images/common/sponsors-md.png +0 -0
  31. package/site/static/images/common/sponsors-xs.png +0 -0
  32. package/site/static/images/common/sponsors-xxxs.png +0 -0
  33. package/site/styles/_awards.scss +6 -6
  34. package/site/styles/_bootstrap4.scss +90 -0
  35. package/site/styles/_buttons.scss +9 -8
  36. package/site/styles/_can-be-watched-button.scss +2 -0
  37. package/site/styles/_card.scss +2 -2
  38. package/site/styles/_carousel.scss +43 -28
  39. package/site/styles/_collections.scss +4 -4
  40. package/site/styles/_cookie-consent.scss +1 -1
  41. package/site/styles/_devices.scss +3 -3
  42. package/site/styles/_footer.scss +45 -2
  43. package/site/styles/_forms.scss +6 -6
  44. package/site/styles/_globals.scss +1 -1
  45. package/site/styles/_icons.scss +2 -2
  46. package/site/styles/_language-selector.scss +2 -2
  47. package/site/styles/_legacy.scss +3 -3
  48. package/site/styles/_meta-detail.scss +44 -24
  49. package/site/styles/_mixins.scss +2 -2
  50. package/site/styles/_nav.scss +40 -40
  51. package/site/styles/_pages.scss +12 -12
  52. package/site/styles/_pin-codes.scss +2 -2
  53. package/site/styles/_plans.scss +1 -1
  54. package/site/styles/_poster.scss +5 -4
  55. package/site/styles/_shift72.scss +22 -22
  56. package/site/styles/_shopping.scss +8 -8
  57. package/site/styles/_slider.scss +4 -10
  58. package/site/styles/_social-media-buttons.scss +20 -20
  59. package/site/styles/_swiper.scss +2 -2
  60. package/site/styles/_variables.scss +107 -82
  61. package/site/styles/_wishlist.scss +2 -2
  62. package/site/styles/main.scss +1 -3
  63. package/site/templates/application/application.jet +13 -1
  64. package/site/templates/application/footer/footer.jet +3 -0
  65. package/site/templates/application/footer/sponsor-banner.jet +9 -0
  66. package/site/templates/bundle/buttons.jet +2 -1
  67. package/site/templates/bundle/item.jet +1 -2
  68. package/site/templates/collection/carousel_item.jet +12 -13
  69. package/site/templates/common/awards/item.jet +1 -1
  70. package/site/templates/film/item.jet +36 -12
  71. package/site/templates/tv/detail.jet +7 -7
  72. package/site/tr_TR.all.json +88 -22
  73. package/site/uk_UA.all.json +50 -34
  74. package/site/zh_TW.all.json +19 -36
  75. package/site/styles/_functions.scss +0 -8
@@ -52,7 +52,7 @@
52
52
  }
53
53
 
54
54
  .separator {
55
- border-bottom: 1px solid rgba($body-color, 0.2);
55
+ border-bottom: 1px solid rgba(var(--body-color-rgb), 0.2);
56
56
  margin: 0 20px;
57
57
 
58
58
  @include media-breakpoint-up(lg) {
@@ -70,18 +70,18 @@
70
70
  .devices-page,
71
71
  .plans-page,
72
72
  .carousel-len-0 {
73
- padding-top: $page-padding-top;
73
+ padding-top: var(--page-padding-top);
74
74
  @include media-breakpoint-up(md) {
75
- padding: $page-padding-top-md 0 0 0;
75
+ padding: var(--page-padding-top-md) 0 0 0;
76
76
  }
77
77
  @include media-breakpoint-up(lg) {
78
- padding: $page-padding-top-lg 0 0 0;
78
+ padding: var(--page-padding-top-lg) 0 0 0;
79
79
  }
80
80
  }
81
81
 
82
82
  .form-page {
83
83
  @include media-breakpoint-up(xl) {
84
- padding: $page-padding-top-lg 0 0 0;
84
+ padding: var(--page-padding-top-lg) 0 0 0;
85
85
  }
86
86
 
87
87
  .page-header {
@@ -148,12 +148,12 @@
148
148
 
149
149
  .curated-page,
150
150
  .collection-page {
151
- padding: $page-padding-top 0 0 0;
151
+ padding: var(--page-padding-top) 0 0 0;
152
152
  @include media-breakpoint-up(md) {
153
- padding: $page-padding-top-md 0 0 0;
153
+ padding: var(--page-padding-top-md) 0 0 0;
154
154
  }
155
155
  @include media-breakpoint-up(lg) {
156
- padding: $page-padding-top-lg 0 0 0;
156
+ padding: var(--page-padding-top-lg) 0 0 0;
157
157
  }
158
158
  }
159
159
 
@@ -293,14 +293,14 @@
293
293
  .not-found {
294
294
  background: transparent;
295
295
  padding-bottom: $grid-gutter-width;
296
- padding-top: $page-padding-top;
296
+ padding-top: var(--page-padding-top);
297
297
  @include media-breakpoint-up(md) {
298
298
  padding-bottom: $grid-gutter-width;
299
- padding-top: $page-padding-top-md;
299
+ padding-top: var(--page-padding-top-md);
300
300
  }
301
301
  @include media-breakpoint-up(lg) {
302
302
  padding-bottom: $grid-gutter-width * 3;
303
- padding-top: $page-padding-top-lg;
303
+ padding-top: var(--page-padding-top-lg);
304
304
  }
305
305
 
306
306
  .text-center {
@@ -322,4 +322,4 @@
322
322
  }
323
323
  }
324
324
  }
325
- }
325
+ }
@@ -22,7 +22,7 @@ s72-useraccount-form {
22
22
  @extend .justify-content-between;
23
23
 
24
24
  .s72-btn-reset-pin {
25
- @extend .btn-link;
25
+ @extend .btn-link-override;
26
26
  @extend .order-1;
27
27
  }
28
28
 
@@ -34,7 +34,7 @@ s72-useraccount-form {
34
34
 
35
35
  .s72-user-pin-error-limit {
36
36
  .s72-btn-reset-pin {
37
- @extend .btn-primary;
37
+ @extend .btn-primary-override;
38
38
  margin-right: $modal-footer-button-margin;
39
39
  }
40
40
 
@@ -84,4 +84,4 @@ s72-plan-label {
84
84
  .signup-link {
85
85
  display: inline !important;
86
86
  }
87
- }
87
+ }
@@ -23,14 +23,15 @@
23
23
 
24
24
  @extend .p-p5;
25
25
  @extend .mw-100;
26
+ width: 100%;
26
27
 
27
28
  z-index: 99;
28
- width: 100%;
29
29
 
30
30
  s72-availability-status {
31
- position: unset; z-index: unset;
32
- min-width: 0px;
33
31
  @extend .pr-p5;
32
+ min-width: 0;
33
+ position: unset;
34
+ z-index: unset;
34
35
 
35
36
  /* stylelint-disable selector-max-compound-selectors */
36
37
  .availability-bg {
@@ -46,4 +47,4 @@
46
47
  max-width: 100%;
47
48
  position: relative;
48
49
  width: 100%;
49
- }
50
+ }
@@ -12,15 +12,15 @@
12
12
  }
13
13
 
14
14
  .s72-btn-search {
15
- @extend .btn-primary;
15
+ @extend .btn-primary-override;
16
16
  }
17
17
 
18
18
  .s72-btn-purchase {
19
- @extend .btn-primary;
19
+ @extend .btn-primary-override;
20
20
  }
21
21
 
22
22
  .s72-btn-rent {
23
- @extend .btn-primary;
23
+ @extend .btn-primary-override;
24
24
  }
25
25
 
26
26
  .s72-btn-close {
@@ -28,47 +28,47 @@
28
28
  }
29
29
 
30
30
  .s72-btn-purchase-card {
31
- @extend .btn-primary;
31
+ @extend .btn-primary-override;
32
32
  }
33
33
 
34
34
  .s72-btn-purchase-free {
35
- @extend .btn-primary;
35
+ @extend .btn-primary-override;
36
36
  }
37
37
 
38
38
  .s72-btn-changepassword {
39
- @extend .btn-primary;
39
+ @extend .btn-primary-override;
40
40
  }
41
41
 
42
42
  .s72-btn-updateaccount {
43
- @extend .btn-primary;
43
+ @extend .btn-primary-override;
44
44
  }
45
45
 
46
46
  .s72-btn-signup {
47
- @extend .btn-primary;
47
+ @extend .btn-primary-override;
48
48
  }
49
49
 
50
50
  .s72-btn-signin {
51
- @extend .btn-primary;
51
+ @extend .btn-primary-override;
52
52
  }
53
53
 
54
54
  .s72-btn-signin-vip {
55
- @extend .btn-primary;
55
+ @extend .btn-primary-override;
56
56
  }
57
57
 
58
58
  .s72-btn-forgotpassword {
59
- @extend .btn-primary;
59
+ @extend .btn-primary-override;
60
60
  }
61
61
 
62
62
  .s72-btn-resetpassword {
63
- @extend .btn-primary;
63
+ @extend .btn-primary-override;
64
64
  }
65
65
 
66
66
  .s72-btn-activatedevice {
67
- @extend .btn-primary;
67
+ @extend .btn-primary-override;
68
68
  }
69
69
 
70
70
  .s72-btn-modal-action {
71
- @extend .btn-primary;
71
+ @extend .btn-primary-override;
72
72
  }
73
73
 
74
74
  .s72-btn-modal-cancel {
@@ -76,19 +76,19 @@
76
76
  }
77
77
 
78
78
  .s72-btn-combined-auth {
79
- @extend .btn-primary;
79
+ @extend .btn-primary-override;
80
80
  }
81
81
 
82
82
  .s72-btn-combined-auth-change {
83
- @extend .btn-primary;
83
+ @extend .btn-primary-override;
84
84
  }
85
85
 
86
86
  .s72-btn-applydiscount {
87
- @extend .btn-secondary;
87
+ @extend .btn-primary-override;
88
88
  }
89
89
 
90
90
  .s72-btn-next-page {
91
- @extend .btn-secondary;
91
+ @extend .btn-primary-override;
92
92
  @extend .btn-lg;
93
93
  width: 100%;
94
94
  }
@@ -181,7 +181,7 @@
181
181
  }
182
182
 
183
183
  .s72-dropdown-item {
184
- @extend .dropdown-item;
184
+ @extend .dropdown-item-override;
185
185
  }
186
186
 
187
187
  // s72-sign-out { @extend li; }
@@ -224,7 +224,7 @@
224
224
  @extend .form-control-plaintext;
225
225
 
226
226
  .form-page & {
227
- color: $body-color;
227
+ color: var(--body-color);
228
228
  }
229
229
  }
230
230
 
@@ -322,7 +322,7 @@ s72-cant-be-watched {
322
322
  @extend .position-relative;
323
323
  &::after {
324
324
  @extend .position-absolute;
325
- background-color: $primary;
325
+ background-color: var(--primary);
326
326
  bottom: 0 !important;
327
327
  content: '';
328
328
  height: 3px;
@@ -334,5 +334,5 @@ s72-cant-be-watched {
334
334
 
335
335
  .s72-view-all-passes {
336
336
  @extend .py-4;
337
- background-color: mix(invert($body-bg), $body-bg, 4.5%);
337
+ background-color: var(--body-bg-accent);
338
338
  }
@@ -13,7 +13,7 @@
13
13
 
14
14
  .s72-btn-close {
15
15
  background: transparent;
16
- color: $body-color;
16
+ color: var(--body-color);
17
17
  display: block;
18
18
  height: 30px;
19
19
  line-height: 30px;
@@ -71,9 +71,9 @@
71
71
 
72
72
  .s72-combined-auth-email {
73
73
  @extend .d-flex;
74
- background: rgba($body-color, 0.1);
74
+ background: rgba(var(--body-color-rgb), 0.1);
75
75
  border: 0 none;
76
- color: $body-color;
76
+ color: var(--body-color);
77
77
  font-weight: $font-weight-normal;
78
78
  justify-content: space-between;
79
79
  padding-bottom: 0;
@@ -138,7 +138,7 @@
138
138
  padding: 10px 0 0;
139
139
 
140
140
  li {
141
- color: rgba($body-color, 0.8);
141
+ color: rgba(var(--body-color-rgb), 0.8);
142
142
  font-size: 12px;
143
143
  list-style-type: none;
144
144
  text-align: left;
@@ -158,7 +158,7 @@
158
158
 
159
159
  .s72-shopping-item-info {
160
160
  p {
161
- color: $body-color;
161
+ color: var(--body-color);
162
162
  font-size: 14px;
163
163
 
164
164
  a {
@@ -191,7 +191,7 @@
191
191
  .s72-shopping-done {
192
192
  /* stylelint-disable-next-line */
193
193
  div div p {
194
- color: $body-color;
194
+ color: var(--body-color);
195
195
  font-size: 20px;
196
196
  font-weight: $font-weight-bold;
197
197
  margin-bottom: 5px;
@@ -205,7 +205,7 @@
205
205
  }
206
206
 
207
207
  div p {
208
- color: $body-color;
208
+ color: var(--body-color);
209
209
  display: block;
210
210
  font-size: 12px;
211
211
  text-align: center;
@@ -289,7 +289,7 @@
289
289
  }
290
290
 
291
291
  .s72-icon {
292
- color: $primary;
292
+ color: var(--primary);
293
293
  }
294
294
  }
295
295
  }
@@ -1,7 +1,7 @@
1
1
  s72-slider .s72-slider-control,
2
2
  s72-userwishlist .s72-slider-control {
3
- background-color: $primary;
4
- border: 1px solid $primary;
3
+ background-color: var(--primary);
4
+ border: 1px solid var(--primary);
5
5
  border-radius: 50%;
6
6
  font-family: $font-family-base;
7
7
  height: $slider-control-height;
@@ -31,12 +31,6 @@ s72-userwishlist .s72-slider-control {
31
31
  top: 50%;
32
32
  transform: translateX(-50%) translateY(-50%);
33
33
  }
34
-
35
- &:hover,
36
- &:active,
37
- &:focus {
38
- background: darken($primary, 7.5%);
39
- }
40
34
  }
41
35
 
42
36
  // make .slider-control be in the middle of the poster, not the middle of the item (which includes captions).
@@ -72,7 +66,7 @@ s72-slider.has-next.s72-slider-scroll::after {
72
66
  /* stylelint-enable selector-no-qualifying-type */
73
67
 
74
68
  .slider-fade-in {
75
- @include gradient-x(rgba($body-bg, 0.9), transparent, 0%, 100%);
69
+ @include gradient-x(rgba(var(--body-bg-rgb), 0.9), transparent, 0%, 100%);
76
70
  content: '';
77
71
  display: block;
78
72
  height: 100%;
@@ -86,7 +80,7 @@ s72-slider.has-next.s72-slider-scroll::after {
86
80
 
87
81
  .slider-fade-out {
88
82
  @extend .slider-fade-in;
89
- @include gradient-x(transparent, rgba($body-bg, 0.9), 0%, 100%);
83
+ @include gradient-x(transparent, rgba(var(--body-bg-rgb), 0.9), 0%, 100%);
90
84
  left: auto;
91
85
  right: 0;
92
86
  }
@@ -13,7 +13,7 @@
13
13
  h2,
14
14
  h5 {
15
15
  align-self: center;
16
- color: $body-color;
16
+ color: var(--body-color);
17
17
  font-family: $font-family-base;
18
18
  font-size: 12px;
19
19
  font-weight: $font-weight-bold;
@@ -47,7 +47,7 @@
47
47
  border-color: $facebook-color;
48
48
 
49
49
  .fa {
50
- color: $body-bg;
50
+ color: var(--body-bg);
51
51
  }
52
52
  }
53
53
 
@@ -56,7 +56,7 @@
56
56
  border-color: $instagram-color;
57
57
 
58
58
  .fa {
59
- color: $body-bg;
59
+ color: var(--body-bg);
60
60
  }
61
61
  }
62
62
 
@@ -65,7 +65,7 @@
65
65
  border-color: $twitter-color;
66
66
 
67
67
  .fa {
68
- color: $body-bg;
68
+ color: var(--body-bg);
69
69
  }
70
70
  }
71
71
 
@@ -74,7 +74,7 @@
74
74
  border-color: $linkedin-color;
75
75
 
76
76
  .fa {
77
- color: $body-bg;
77
+ color: var(--body-bg);
78
78
  }
79
79
  }
80
80
 
@@ -83,7 +83,7 @@
83
83
  border-color: $youtube-color;
84
84
 
85
85
  .fa {
86
- color: $body-bg;
86
+ color: var(--body-bg);
87
87
  }
88
88
  }
89
89
 
@@ -92,8 +92,8 @@
92
92
  border-color: $letterboxd-color;
93
93
 
94
94
  path {
95
- fill: $body-bg;
96
- stroke: $body-bg;
95
+ fill: var(--body-bg);
96
+ stroke: var(--body-bg);
97
97
  stroke-width: 1;
98
98
  }
99
99
  }
@@ -102,8 +102,8 @@
102
102
  &:active,
103
103
  &:focus {
104
104
  &.btn-social-facebook {
105
- background-color: $primary;
106
- border-color: $primary;
105
+ background-color: var(--primary);
106
+ border-color: var(--primary);
107
107
 
108
108
  .fa {
109
109
  color: $facebook-color;
@@ -111,8 +111,8 @@
111
111
  }
112
112
 
113
113
  &.btn-social-instagram {
114
- background-color: $primary;
115
- border-color: $primary;
114
+ background-color: var(--primary);
115
+ border-color: var(--primary);
116
116
 
117
117
  .fa {
118
118
  color: $instagram-color;
@@ -120,8 +120,8 @@
120
120
  }
121
121
 
122
122
  &.btn-social-twitter {
123
- background-color: $primary;
124
- border-color: $primary;
123
+ background-color: var(--primary);
124
+ border-color: var(--primary);
125
125
 
126
126
  .fa {
127
127
  color: $twitter-color;
@@ -129,8 +129,8 @@
129
129
  }
130
130
 
131
131
  &.btn-social-linkedin {
132
- background-color: $primary;
133
- border-color: $primary;
132
+ background-color: var(--primary);
133
+ border-color: var(--primary);
134
134
 
135
135
  .fa {
136
136
  color: $linkedin-color;
@@ -138,8 +138,8 @@
138
138
  }
139
139
 
140
140
  &.btn-social-youtube {
141
- background-color: $primary;
142
- border-color: $primary;
141
+ background-color: var(--primary);
142
+ border-color: var(--primary);
143
143
 
144
144
  .fa {
145
145
  color: $youtube-color;
@@ -147,8 +147,8 @@
147
147
  }
148
148
 
149
149
  &.btn-social-letterboxd {
150
- background-color: $primary;
151
- border-color: $primary;
150
+ background-color: var(--primary);
151
+ border-color: var(--primary);
152
152
 
153
153
  path {
154
154
  fill: $letterboxd-color;
@@ -22,12 +22,12 @@
22
22
  }
23
23
 
24
24
  .swiper-button-next {
25
- background: rgba($body-bg, 0.8) url('/images/icons/next.png') center center no-repeat;
25
+ background: rgba(var(--body-bg-rgb), 0.8) url('/images/icons/next.png') center center no-repeat;
26
26
  right: 0;
27
27
  }
28
28
 
29
29
  .swiper-button-prev {
30
- background: rgba($body-bg, 0.8) url('/images/icons/prev.png') center center no-repeat;
30
+ background: rgba(var(--body-bg-rgb), 0.8) url('/images/icons/prev.png') center center no-repeat;
31
31
  left: 0;
32
32
  }
33
33