@shift72/core-template 1.3.0-alpha.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/pull_request_template.md +1 -1
- package/CHANGELOG.md +41 -1
- package/kibble.json +3 -3
- package/package.json +2 -2
- package/scripts/core-template-version.js +4 -4
- package/scripts/css-local-get.js +12 -5
- package/scripts/css-local-put.js +3 -3
- package/scripts/language-file-validator.js +1 -1
- package/scripts/translate.mjs +2 -3
- package/site/ar_LB.all.json +104 -10
- package/site/ca_ES.all.json +74 -8
- package/site/da_DK.all.json +76 -10
- package/site/de_DE.all.json +74 -8
- package/site/el_EL.all.json +79 -4
- package/site/en_AU.all.json +79 -4
- package/site/es_ES.all.json +79 -4
- package/site/es_MX.all.json +81 -6
- package/site/et_ET.all.json +73 -7
- package/site/fi_FI.all.json +77 -2
- package/site/fr_FR.all.json +80 -5
- package/site/hr_HR.all.json +85 -9
- package/site/hu_HU.all.json +73 -7
- package/site/it_IT.all.json +79 -4
- package/site/ja_JP.all.json +71 -0
- package/site/lt_LT.all.json +92 -3
- package/site/manifest.json.jet +4 -2
- package/site/nl_BE.all.json +75 -0
- package/site/no_NO.all.json +80 -5
- package/site/pl_PL.all.json +92 -3
- package/site/plans.html.jet +12 -2
- package/site/pt_BR.all.json +80 -5
- package/site/pt_PT.all.json +78 -3
- package/site/ru_RU.all.json +93 -4
- package/site/search.html.jet +3 -1
- package/site/sr_SR.all.json +85 -3
- package/site/static/js/main.js +1 -0
- package/site/static/scripts/main.js.map +1 -1
- package/site/styles/_availability-tags.scss +1 -1
- package/site/styles/_awards.scss +2 -1
- package/site/styles/_buttons.scss +20 -10
- package/site/styles/_carousel.scss +7 -3
- package/site/styles/_cookie-consent.scss +1 -0
- package/site/styles/_footer.scss +10 -31
- package/site/styles/_forms.scss +11 -0
- package/site/styles/_meta-detail.scss +27 -32
- package/site/styles/_meta-item-tagline.scss +1 -1
- package/site/styles/_mixins.scss +23 -1
- package/site/styles/_nav.scss +49 -65
- package/site/styles/_share-modal.scss +12 -7
- package/site/styles/_shopping.scss +5 -0
- package/site/styles/_typography.scss +30 -22
- package/site/styles/_variables.scss +93 -46
- package/site/subscriptions.html.jet +1 -1
- package/site/templates/application/application.jet +13 -13
- package/site/templates/application/brand/logo.jet +11 -0
- package/site/templates/application/brand/sponsors.jet +11 -0
- package/site/templates/application/footer/brand.jet +3 -1
- package/site/templates/application/footer/sponsor-banner.jet +3 -3
- package/site/templates/application/head/seo.jet +1 -1
- package/site/templates/application/nav/nav.jet +5 -4
- package/site/templates/collection/carousel/carousel.jet +4 -1
- package/site/templates/collection/carousel/item.jet +3 -1
- package/site/templates/tv/detail.jet +4 -2
- package/site/tr_TR.all.json +79 -4
- package/site/uk_UA.all.json +93 -4
- package/site/zh_TW.all.json +73 -2
package/site/styles/_nav.scss
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
align-items: center;
|
155
155
|
display: flex;
|
156
156
|
flex-shrink: 0;
|
157
|
-
height:
|
157
|
+
height: var(--navbar-brand-height);
|
158
158
|
position: relative;
|
159
159
|
width: 24px;
|
160
160
|
z-index: 10;
|
@@ -220,37 +220,12 @@
|
|
220
220
|
}
|
221
221
|
}
|
222
222
|
|
223
|
-
.navbar-brand {
|
224
|
-
|
225
|
-
|
226
|
-
background: url('../images/common/logo.png') left center / contain no-repeat;
|
227
|
-
margin-right: auto;
|
228
|
-
min-width: var(--navbar-brand-min-width);
|
229
|
-
padding-bottom: var(--navbar-brand-padding-y);
|
230
|
-
padding-top: var(--navbar-brand-padding-y);
|
223
|
+
.navbar-brand-logo {
|
224
|
+
height: var(--navbar-brand-height);
|
231
225
|
z-index: 9;
|
232
226
|
|
233
|
-
|
234
|
-
|
235
|
-
padding-bottom: var(--navbar-brand-padding-y);
|
236
|
-
padding-top: var(--navbar-brand-padding-y);
|
237
|
-
z-index: 13;
|
238
|
-
}
|
239
|
-
|
240
|
-
@media only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
|
241
|
-
background: url('../images/common/logo@2x.png') left center / contain no-repeat;
|
242
|
-
}
|
243
|
-
|
244
|
-
@include media-breakpoint-up(md) {
|
245
|
-
min-width: var(--navbar-brand-min-width-md);
|
246
|
-
}
|
247
|
-
|
248
|
-
@include media-breakpoint-up(lg) {
|
249
|
-
min-width: var(--navbar-brand-min-width-lg);
|
250
|
-
}
|
251
|
-
|
252
|
-
@include media-breakpoint-up(xl) {
|
253
|
-
min-width: var(--navbar-brand-min-width-xl);
|
227
|
+
img {
|
228
|
+
height: inherit;
|
254
229
|
}
|
255
230
|
}
|
256
231
|
|
@@ -268,7 +243,7 @@
|
|
268
243
|
align-items: center;
|
269
244
|
border-bottom: 1px solid transparent;
|
270
245
|
display: flex;
|
271
|
-
height:
|
246
|
+
height: var(--navbar-brand-height);
|
272
247
|
margin-right: 20px;
|
273
248
|
position: relative;
|
274
249
|
transition: none;
|
@@ -311,7 +286,7 @@
|
|
311
286
|
}
|
312
287
|
|
313
288
|
&::placeholder {
|
314
|
-
color:
|
289
|
+
color: var(--body-color-hover);
|
315
290
|
font-weight: $font-weight-normal;
|
316
291
|
opacity: 0;
|
317
292
|
transition: 0.25s ease-out;
|
@@ -357,7 +332,7 @@
|
|
357
332
|
|
358
333
|
/* stylelint-disable-next-line */
|
359
334
|
@include media-breakpoint-up(lg) {
|
360
|
-
color: var(--
|
335
|
+
color: var(--body-color-hover);
|
361
336
|
}
|
362
337
|
}
|
363
338
|
}
|
@@ -396,7 +371,7 @@
|
|
396
371
|
background: transparent;
|
397
372
|
border: 0;
|
398
373
|
border-radius: 50%;
|
399
|
-
color:
|
374
|
+
color: var(--body-color);
|
400
375
|
font-size: 24px;
|
401
376
|
line-height: 0;
|
402
377
|
opacity: 0;
|
@@ -414,14 +389,14 @@
|
|
414
389
|
&:hover,
|
415
390
|
&:focus,
|
416
391
|
&:active {
|
417
|
-
color:
|
392
|
+
color: var(--body-color-hover);
|
418
393
|
outline: 0;
|
419
394
|
}
|
420
395
|
}
|
421
396
|
|
422
397
|
&.search-show {
|
423
|
-
background-color:
|
424
|
-
height: calc(
|
398
|
+
background-color: var(--navbar-search-background-color);
|
399
|
+
height: calc(var(--navbar-brand-height) + 20px);
|
425
400
|
margin: 0;
|
426
401
|
position: absolute;
|
427
402
|
right: 0;
|
@@ -448,7 +423,7 @@
|
|
448
423
|
}
|
449
424
|
|
450
425
|
.form-control-search {
|
451
|
-
border-bottom: 1px solid var(--
|
426
|
+
border-bottom: 1px solid var(--primary);
|
452
427
|
box-shadow: none;
|
453
428
|
padding-left: 32px;
|
454
429
|
padding-right: 32px;
|
@@ -478,11 +453,17 @@ s72-dropdown,
|
|
478
453
|
.s72-language-selector {
|
479
454
|
position: relative;
|
480
455
|
|
481
|
-
&:hover
|
456
|
+
&:hover {
|
457
|
+
.s72-dropdown-toggle,
|
458
|
+
.dropdown-caret {
|
459
|
+
color: var(--body-color-hover);
|
460
|
+
}
|
461
|
+
}
|
462
|
+
|
482
463
|
&:focus-within {
|
483
464
|
.s72-dropdown-toggle,
|
484
465
|
.dropdown-caret {
|
485
|
-
color: var(--
|
466
|
+
color: var(--body-color);
|
486
467
|
}
|
487
468
|
}
|
488
469
|
|
@@ -499,8 +480,8 @@ s72-dropdown,
|
|
499
480
|
width: 100%;
|
500
481
|
|
501
482
|
@include media-breakpoint-up(lg) {
|
502
|
-
background-color:
|
503
|
-
border: 4px solid
|
483
|
+
background-color: var(--navbar-dropdown-background);
|
484
|
+
border: 4px solid var(--navbar-dropdown-background);
|
504
485
|
box-shadow: 0 0 0 1px rgba(var(--body-color-rgb), 0.12);
|
505
486
|
max-height: 330px;
|
506
487
|
max-width: 243px;
|
@@ -515,7 +496,7 @@ s72-dropdown,
|
|
515
496
|
}
|
516
497
|
|
517
498
|
&::-webkit-scrollbar-track {
|
518
|
-
background:
|
499
|
+
background: var(--navbar-dropdown-background);
|
519
500
|
}
|
520
501
|
|
521
502
|
&::-webkit-scrollbar-thumb {
|
@@ -536,16 +517,17 @@ s72-dropdown,
|
|
536
517
|
color: var(--body-color);
|
537
518
|
font-size: 16px;
|
538
519
|
font-weight: $font-weight-normal;
|
539
|
-
|
520
|
+
margin: 3px 5px;
|
521
|
+
padding: 5px 10px;
|
522
|
+
|
540
523
|
@include media-breakpoint-up(lg) {
|
541
|
-
margin: 3px 5px;
|
542
|
-
padding: 5px 15px 5px 10px;
|
543
524
|
width: auto;
|
544
525
|
}
|
545
526
|
|
546
527
|
@include hover-focus {
|
547
|
-
background-color:
|
548
|
-
|
528
|
+
background-color: var(--hover-background);
|
529
|
+
border-radius: 4px;
|
530
|
+
color: var(--body-color-hover);
|
549
531
|
}
|
550
532
|
}
|
551
533
|
}
|
@@ -592,6 +574,8 @@ s72-dropdown,
|
|
592
574
|
margin-top: auto;
|
593
575
|
|
594
576
|
.btn-sign-out {
|
577
|
+
@extend .animate-this;
|
578
|
+
|
595
579
|
background-color: transparent;
|
596
580
|
border: 0;
|
597
581
|
color: var(--body-color);
|
@@ -606,20 +590,14 @@ s72-dropdown,
|
|
606
590
|
margin: 3px 5px;
|
607
591
|
padding: 0;
|
608
592
|
}
|
609
|
-
}
|
610
593
|
|
611
|
-
.btn-sign-out {
|
612
|
-
@extend .animate-this;
|
613
594
|
@include hover-focus {
|
614
|
-
color: var(--
|
615
|
-
text-decoration: none;
|
595
|
+
color: var(--body-color-hover);
|
616
596
|
}
|
617
597
|
}
|
618
598
|
|
619
599
|
.btn-sign-out-desktop {
|
620
|
-
|
621
|
-
color: var(--primary);
|
622
|
-
}
|
600
|
+
text-decoration: none;
|
623
601
|
|
624
602
|
@include media-breakpoint-up(lg) {
|
625
603
|
padding: 5px 15px 5px 10px;
|
@@ -628,16 +606,18 @@ s72-dropdown,
|
|
628
606
|
}
|
629
607
|
|
630
608
|
.btn-sign-out-mobile {
|
631
|
-
background-color:
|
609
|
+
background-color: var(--signout-background);
|
632
610
|
border-radius: 4px;
|
633
|
-
color:
|
611
|
+
color: var(--signout-text-color);
|
634
612
|
padding: 8px 56px;
|
635
613
|
text-align: center;
|
636
614
|
width: 100%;
|
615
|
+
|
637
616
|
@include hover-focus {
|
638
|
-
background-color:
|
639
|
-
color:
|
617
|
+
background-color: var(--signout-background-hover);
|
618
|
+
color: var(--signout-text-color-hover);
|
640
619
|
}
|
620
|
+
|
641
621
|
@include media-breakpoint-up(lg) {
|
642
622
|
display: none;
|
643
623
|
}
|
@@ -730,7 +710,7 @@ s72-dropdown,
|
|
730
710
|
path {
|
731
711
|
@extend .animate-this;
|
732
712
|
|
733
|
-
fill: var(--
|
713
|
+
fill: var(--body-color-hover);
|
734
714
|
}
|
735
715
|
}
|
736
716
|
}
|
@@ -843,17 +823,21 @@ s72-dropdown,
|
|
843
823
|
font-weight: $font-weight-normal;
|
844
824
|
|
845
825
|
&.active .nav-link {
|
846
|
-
color:
|
826
|
+
color: var(--body-color);
|
847
827
|
opacity: 1;
|
848
828
|
|
849
829
|
@include media-breakpoint-up(lg) {
|
850
|
-
border-bottom: 3px solid
|
830
|
+
border-bottom: 3px solid var(--primary);
|
831
|
+
}
|
832
|
+
|
833
|
+
&:hover {
|
834
|
+
color: var(--navbar-link-hover-color);
|
851
835
|
}
|
852
836
|
}
|
853
837
|
}
|
854
838
|
|
855
839
|
.nav-link {
|
856
|
-
color:
|
840
|
+
color: var(--navbar-link-color);
|
857
841
|
font-size: 16px;
|
858
842
|
padding: 10px 0;
|
859
843
|
transition: color 0.25s ease-out;
|
@@ -864,7 +848,7 @@ s72-dropdown,
|
|
864
848
|
}
|
865
849
|
|
866
850
|
&:hover {
|
867
|
-
color:
|
851
|
+
color: var(--navbar-link-hover-color);
|
868
852
|
}
|
869
853
|
}
|
870
854
|
|
@@ -33,25 +33,30 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
ul {
|
36
|
-
|
36
|
+
list-style: none;
|
37
|
+
margin: 0;
|
38
|
+
padding: 0;
|
37
39
|
}
|
38
40
|
|
39
41
|
li {
|
40
|
-
|
41
|
-
|
42
|
+
&:hover {
|
43
|
+
background-color: var(--hover-background);
|
44
|
+
border-radius: 4px;
|
45
|
+
}
|
46
|
+
|
42
47
|
i {
|
43
|
-
@extend .position-absolute;
|
44
48
|
font-size: 20px;
|
45
|
-
|
49
|
+
margin: 0 10px;
|
50
|
+
padding-bottom: 5px;
|
46
51
|
}
|
47
52
|
}
|
48
53
|
|
49
54
|
a {
|
50
|
-
@extend .d-flex;
|
51
|
-
@extend .align-items-center;
|
52
55
|
color: var(--body-color);
|
53
56
|
padding: 0.7rem 0;
|
57
|
+
text-align: start;
|
54
58
|
text-decoration: inherit;
|
59
|
+
width: 100%;
|
55
60
|
word-break: break-word;
|
56
61
|
|
57
62
|
&:hover {
|
@@ -17,6 +17,7 @@
|
|
17
17
|
display: block;
|
18
18
|
height: 30px;
|
19
19
|
line-height: 30px;
|
20
|
+
opacity: 1;
|
20
21
|
position: absolute;
|
21
22
|
right: 0;
|
22
23
|
text-shadow: none;
|
@@ -24,6 +25,10 @@
|
|
24
25
|
top: 0;
|
25
26
|
width: 30px;
|
26
27
|
z-index: 999;
|
28
|
+
|
29
|
+
&:hover {
|
30
|
+
color: var(--body-color-hover);
|
31
|
+
}
|
27
32
|
}
|
28
33
|
}
|
29
34
|
|
@@ -16,71 +16,79 @@
|
|
16
16
|
|
17
17
|
@mixin heading-1-style() {
|
18
18
|
@include typography-style(
|
19
|
-
$font-size:
|
20
|
-
$letter-spacing:
|
19
|
+
$font-size: var(--heading-1-style-font-size),
|
20
|
+
$letter-spacing: var(--heading-1-style-letter-spacing),
|
21
21
|
$font-weight: $font-weight-normal,
|
22
22
|
$margin-bottom: 8px,
|
23
23
|
$font-color: var(--body-color),
|
24
24
|
$line-height: 42px
|
25
25
|
);
|
26
26
|
@include media-breakpoint-up(xs) {
|
27
|
-
@include typography-style($font-size:
|
27
|
+
@include typography-style($font-size: var(--heading-1-style-font-size-xs), $line-height: 56px);
|
28
28
|
}
|
29
29
|
small {
|
30
|
-
@include typography-style($font-size:
|
30
|
+
@include typography-style($font-size: var(--heading-1-style-font-size-small));
|
31
31
|
}
|
32
32
|
}
|
33
33
|
|
34
34
|
@mixin heading-2-style() {
|
35
35
|
@include typography-style(
|
36
|
-
$font-size:
|
37
|
-
$letter-spacing:
|
36
|
+
$font-size: var(--heading-2-style-font-size),
|
37
|
+
$letter-spacing: var(--heading-2-style-letter-spacing),
|
38
38
|
$font-weight: $font-weight-normal,
|
39
39
|
$margin-bottom: 13px
|
40
40
|
);
|
41
41
|
@include media-breakpoint-up(sm) {
|
42
|
-
@include typography-style($font-size:
|
42
|
+
@include typography-style($font-size: var(--heading-2-style-font-size-sm));
|
43
43
|
}
|
44
44
|
}
|
45
45
|
|
46
46
|
@mixin heading-3-style() {
|
47
47
|
@include typography-style(
|
48
|
-
$font-size:
|
49
|
-
$letter-spacing:
|
48
|
+
$font-size: var(--heading-3-style-font-size),
|
49
|
+
$letter-spacing: var(--heading-3-style-letter-spacing),
|
50
50
|
$font-weight: $font-weight-normal,
|
51
51
|
$margin-bottom: 6px,
|
52
52
|
$line-height: 24px
|
53
53
|
);
|
54
54
|
@include media-breakpoint-up(sm) {
|
55
|
-
@include typography-style(
|
55
|
+
@include typography-style(
|
56
|
+
$font-size: var(--heading-3-style-font-size-sm),
|
57
|
+
$letter-spacing: var(--heading-3-style-letter-spacing-sm),
|
58
|
+
$line-height: 30px
|
59
|
+
);
|
56
60
|
}
|
57
61
|
}
|
58
62
|
|
59
63
|
@mixin heading-4-style() {
|
60
64
|
@include typography-style(
|
61
|
-
$font-size:
|
65
|
+
$font-size: var(--heading-4-style-font-size),
|
62
66
|
$font-weight: $font-weight-light,
|
67
|
+
$letter-spacing: var(--heading-4-style-letter-spacing),
|
63
68
|
$margin-bottom: 20px
|
64
69
|
);
|
65
70
|
}
|
66
71
|
|
67
72
|
@mixin body-1-style() {
|
68
73
|
@include typography-style(
|
69
|
-
$font-size:
|
70
|
-
$letter-spacing:
|
74
|
+
$font-size: var(--body-1-style-font-size),
|
75
|
+
$letter-spacing: var(--body-1-style-letter-spacing),
|
71
76
|
$font-weight: $font-weight-light,
|
72
77
|
$line-height: 23px
|
73
78
|
);
|
74
79
|
}
|
75
80
|
|
76
81
|
@mixin body-2-style() {
|
77
|
-
@include typography-style(
|
82
|
+
@include typography-style(
|
83
|
+
$font-size: var(--body-2-style-font-size),
|
84
|
+
$letter-spacing: var(--body-2-style-letter-spacing)
|
85
|
+
);
|
78
86
|
}
|
79
87
|
|
80
88
|
@mixin subtitle-1-style() {
|
81
89
|
@include typography-style(
|
82
|
-
$font-size:
|
83
|
-
$letter-spacing:
|
90
|
+
$font-size: var(--subtitle-1-style-font-size),
|
91
|
+
$letter-spacing: var(--subtitle-1-style-letter-spacing),
|
84
92
|
$font-weight: $font-weight-normal,
|
85
93
|
$margin-bottom: 2px,
|
86
94
|
$line-height: 20px
|
@@ -89,8 +97,8 @@
|
|
89
97
|
|
90
98
|
@mixin subtitle-2-style() {
|
91
99
|
@include typography-style(
|
92
|
-
$font-size:
|
93
|
-
$letter-spacing:
|
100
|
+
$font-size: var(--subtitle-2-style-font-size),
|
101
|
+
$letter-spacing: var(--subtitle-2-style-letter-spacing),
|
94
102
|
$font-weight: $font-weight-normal,
|
95
103
|
$margin-bottom: 12px,
|
96
104
|
$line-height: 18px
|
@@ -99,8 +107,8 @@
|
|
99
107
|
|
100
108
|
@mixin caption-1-style() {
|
101
109
|
@include typography-style(
|
102
|
-
$font-size:
|
103
|
-
$letter-spacing:
|
110
|
+
$font-size: var(--caption-1-style-font-size),
|
111
|
+
$letter-spacing: var(--caption-1-style-letter-spacing),
|
104
112
|
$font-weight: $font-weight-bold,
|
105
113
|
$margin-bottom: 4px,
|
106
114
|
$line-height: 20px
|
@@ -109,8 +117,8 @@
|
|
109
117
|
|
110
118
|
@mixin overline-style() {
|
111
119
|
@include typography-style(
|
112
|
-
$font-size:
|
113
|
-
$letter-spacing:
|
120
|
+
$font-size: var(--overline-style-font-size),
|
121
|
+
$letter-spacing: var(--overline-style-letter-spacing),
|
114
122
|
$font-weight: $font-weight-normal,
|
115
123
|
$line-height: 18px
|
116
124
|
);
|
@@ -4,35 +4,85 @@
|
|
4
4
|
// These variables should be reasonably generic so that overrides are placed in main.scss.
|
5
5
|
|
6
6
|
:root {
|
7
|
+
/*#region BASE COLOURS */
|
8
|
+
// Don't put derivative colour variables in this region.
|
9
|
+
|
7
10
|
--primary-rgb: 0, 163, 255;
|
8
11
|
--secondary-rgb: 102, 199, 255;
|
9
12
|
--body-color-rgb: 255, 255, 255;
|
10
|
-
--body-bg-rgb:
|
11
|
-
|
12
|
-
--
|
13
|
-
--
|
14
|
-
|
13
|
+
--body-bg-rgb: 0, 0, 0;
|
14
|
+
|
15
|
+
// To calculate --body-color-hover-rgb, do:
|
16
|
+
// 1. Convert var(--body-color-rgb) to hex.
|
17
|
+
// 2a. If dark themed, run it through the Sass darken function: darken(hex, 20%).
|
18
|
+
// 2b. If light themed, run it through the Sass lighten function: lighten(hex, 20%).
|
19
|
+
// 3. Convert the result back to RGB.
|
20
|
+
// TODO(jackh): figure out a non-Sass way of calculating this.
|
21
|
+
--body-color-hover-rgb: 204, 204, 204;
|
22
|
+
|
23
|
+
// To calculate --input-focus-border-color-rgb, do:
|
24
|
+
// 1. Convert var(--body-bg) to hex.
|
25
|
+
// 2a. If dark themed, run it through the Sass lighten function: lighten(hex, 10%).
|
26
|
+
// 2b. If light themed, run it through the Sass darken function: darken(hex, 10%).
|
27
|
+
// 3. Convert the result back to RGB.
|
28
|
+
// TODO(jackh): figure out a non-Sass way of calculating this.
|
29
|
+
--body-bg-accent-rgb: 25, 25, 25;
|
30
|
+
|
31
|
+
// To calculate --input-focus-border-color-rgb, do:
|
32
|
+
// 1. Convert var(--primary-rgb) to hex.
|
33
|
+
// 2. Run it through the Sass lighten function: lighten(hex, 25%).
|
34
|
+
// 3. Convert the result back to RGB.
|
35
|
+
// TODO(jackh): figure out a non-Sass way of calculating this.
|
36
|
+
--input-focus-border-color-rgb: 131, 210, 216;
|
37
|
+
|
38
|
+
// To calculate --hover-background-rgb, do:
|
39
|
+
// 1. Convert var(--body-bg-accent-rgb) to hex.
|
40
|
+
// 2a. If dark themed, run it through the Sass lighten function: lighten(hex, 13%).
|
41
|
+
// 2b. If light themed, run it through the Sass darken function: darken(hex, 13%).
|
42
|
+
// 3. Convert the result back to RGB.
|
43
|
+
// TODO(jackh): figure out a non-Sass way of calculating this.
|
44
|
+
--hover-background-rgb: 58, 58, 58;
|
15
45
|
|
16
46
|
--primary: rgb(var(--primary-rgb));
|
17
47
|
--secondary: rgb(var(--secondary-rgb));
|
18
48
|
--body-color: rgb(var(--body-color-rgb));
|
49
|
+
--body-color-hover: rgb(var(--body-color-hover-rgb));
|
19
50
|
--body-bg: rgb(var(--body-bg-rgb));
|
20
51
|
--body-bg-accent: rgb(var(--body-bg-accent-rgb));
|
21
|
-
--link-color: var(--body-color);
|
22
|
-
--link-color-hover: rgb(var(--link-color-hover-rgb));
|
23
52
|
--input-focus-border-color: rgb(var(--input-focus-border-color-rgb));
|
24
|
-
--
|
53
|
+
--hover-background: rgb(var(--hover-background-rgb));
|
54
|
+
/*#endregion BASE COLOURS */
|
55
|
+
|
25
56
|
--tooltip-color: var(--body-bg, #000);
|
26
57
|
--tooltip-bg: var(--primary, #00a3ff);
|
27
58
|
--tooltip-arrow-color: var(--tooltip-bg);
|
28
59
|
|
29
60
|
--input-height: 40px;
|
30
61
|
|
31
|
-
--
|
32
|
-
--
|
33
|
-
|
34
|
-
--navbar-
|
35
|
-
--navbar-
|
62
|
+
--link-color: var(--body-color);
|
63
|
+
--link-color-hover: var(--body-color-hover);
|
64
|
+
|
65
|
+
--navbar-link-color: var(--body-color);
|
66
|
+
--navbar-link-hover-color: var(--body-color-hover);
|
67
|
+
--navbar-search-background-color: var(--body-bg-accent);
|
68
|
+
--navbar-dropdown-background: var(--body-bg-accent);
|
69
|
+
--navbar-brand-height: 50px;
|
70
|
+
|
71
|
+
--footer-brand-height: 50px;
|
72
|
+
|
73
|
+
--signin-text-color: var(--body-color);
|
74
|
+
--signin-text-color-hover: var(--body-color-hover);
|
75
|
+
--signin-border-color: transparent;
|
76
|
+
--signin-border-color-hover: transparent;
|
77
|
+
--signin-background: rgba(var(--body-color-rgb), 0.1);
|
78
|
+
--signin-background-hover: var(--hover-background);
|
79
|
+
--signin-background-lg: transparent;
|
80
|
+
--signin-background-hover-lg: transparent;
|
81
|
+
|
82
|
+
--signout-background: rgba(var(--body-color-rgb), 0.1);
|
83
|
+
--signout-background-hover: rgba(var(--body-color-rgb), 0.2);
|
84
|
+
--signout-text-color: var(--body-color);
|
85
|
+
--signout-text-color-hover: var(--body-color);
|
36
86
|
|
37
87
|
--carousel-height: 75vh;
|
38
88
|
--carousel-height-sm: 75vh;
|
@@ -47,9 +97,36 @@
|
|
47
97
|
--page-padding-top: 120px;
|
48
98
|
--page-padding-top-md: 120px;
|
49
99
|
--page-padding-top-lg: 180px;
|
50
|
-
--page-detail-padding-top:
|
51
|
-
--page-detail-padding-top-md:
|
52
|
-
--page-detail-padding-top-lg:
|
100
|
+
--page-detail-padding-top: 245px;
|
101
|
+
--page-detail-padding-top-md: 290px;
|
102
|
+
--page-detail-padding-top-lg: 440px;
|
103
|
+
|
104
|
+
--heading-1-style-letter-spacing: normal;
|
105
|
+
--heading-2-style-letter-spacing: normal;
|
106
|
+
--heading-3-style-letter-spacing: normal;
|
107
|
+
--heading-3-style-letter-spacing-sm: normal;
|
108
|
+
--heading-4-style-letter-spacing: normal;
|
109
|
+
--body-1-style-letter-spacing: normal;
|
110
|
+
--body-2-style-letter-spacing: normal;
|
111
|
+
--subtitle-1-style-letter-spacing: normal;
|
112
|
+
--subtitle-2-style-letter-spacing: normal;
|
113
|
+
--caption-1-style-letter-spacing: normal;
|
114
|
+
--overline-style-letter-spacing: normal;
|
115
|
+
|
116
|
+
--heading-1-style-font-size: 32px;
|
117
|
+
--heading-1-style-font-size-xs: 46px;
|
118
|
+
--heading-1-style-font-size-small: 24px;
|
119
|
+
--heading-2-style-font-size: 29px;
|
120
|
+
--heading-2-style-font-size-sm: 35px;
|
121
|
+
--heading-3-style-font-size: 20px;
|
122
|
+
--heading-3-style-font-size-sm: 24px;
|
123
|
+
--heading-4-style-font-size: 18px;
|
124
|
+
--body-1-style-font-size: 16px;
|
125
|
+
--body-2-style-font-size: 14px;
|
126
|
+
--subtitle-1-style-font-size: 16px;
|
127
|
+
--subtitle-2-style-font-size: 14px;
|
128
|
+
--caption-1-style-font-size: 16px;
|
129
|
+
--overline-style-font-size: 14px;
|
53
130
|
}
|
54
131
|
|
55
132
|
// Bootstrap 4 overrides START
|
@@ -133,19 +210,12 @@ $navbar-show-background-color: var(--body-bg-accent) !default;
|
|
133
210
|
$navbar-dark-active-color: var(--primary) !default;
|
134
211
|
$navbar-nav-link-padding-x: 1em !default;
|
135
212
|
$navbar-nav-link-padding-y: 1em !default;
|
136
|
-
$navbar-search-background-color: var(--body-bg-accent) !default;
|
137
213
|
|
138
214
|
// Uses navbar-dark theme so we can use variables for colouring
|
139
215
|
$navbar-dark-active-color: #fd4766 !default;
|
140
216
|
$navbar-dark-color: var(--body-color) !default;
|
141
217
|
$navbar-dark-hover-color: #fd4766 !default;
|
142
218
|
|
143
|
-
// Sub Navivgation
|
144
|
-
$subnav-nav-item-color: var(--body-color) !default;
|
145
|
-
$subnav-nav-item-hover-background-color: var(--primary) !default;
|
146
|
-
$subnav-nav-item-active-background-color: var(--primary) !default;
|
147
|
-
$subnav-dropdown-background: var(--body-bg-accent) !default;
|
148
|
-
|
149
219
|
// Buttons
|
150
220
|
$button-text-color: var(--body-bg) !default;
|
151
221
|
$button-text-color-hover: var(--body-bg) !default;
|
@@ -154,15 +224,6 @@ $button-background-hover: var(--secondary) !default;
|
|
154
224
|
$trailer-button-text-color: var(--body-color) !default;
|
155
225
|
$mobile-nav-link-color: var(--body-color) !default;
|
156
226
|
|
157
|
-
$signin-text-color: var(--body-color) !default;
|
158
|
-
$signin-text-color-hover: var(--primary) !default;
|
159
|
-
$signin-border-color: transparent !default;
|
160
|
-
$signin-border-color-hover: transparent !default;
|
161
|
-
$signin-background: rgba(var(--body-color-rgb), 0.1) !default;
|
162
|
-
$signin-background-hover: rgba(var(--body-color-rgb), 0.2) !default;
|
163
|
-
$signin-background-lg: transparent !default;
|
164
|
-
$signin-background-hover-lg: transparent !default;
|
165
|
-
|
166
227
|
$signup-text-color: $button-text-color !default;
|
167
228
|
$signup-text-color-hover: $button-text-color-hover !default;
|
168
229
|
$signup-border-color: transparent !default;
|
@@ -170,11 +231,6 @@ $signup-border-color-hover: transparent !default;
|
|
170
231
|
$signup-background: $button-background !default;
|
171
232
|
$signup-background-hover: $button-background-hover !default;
|
172
233
|
|
173
|
-
$signout-background: rgba(var(--body-color-rgb), 0.1) !default;
|
174
|
-
$signout-background-hover: rgba(var(--body-color-rgb), 0.2) !default;
|
175
|
-
$signout-text-color: var(--body-color) !default;
|
176
|
-
$signout-text-color-hover: var(--body-color) !default;
|
177
|
-
|
178
234
|
// Image Gradient Overlays
|
179
235
|
$top-gradient-color: var(--body-bg-rgb) !default;
|
180
236
|
$right-gradient-bg-color: var(--body-bg-rgb) !default;
|
@@ -189,15 +245,6 @@ $footer-brand-min-width: 100px !default;
|
|
189
245
|
$footer-brand-min-width-md: 100px !default;
|
190
246
|
$footer-bar-background-color: var(--body-bg-accent) !default;
|
191
247
|
|
192
|
-
// Social
|
193
|
-
// ------------------------------------
|
194
|
-
$facebook-color: var(--body-color) !default;
|
195
|
-
$instagram-color: var(--body-color) !default;
|
196
|
-
$twitter-color: var(--body-color) !default;
|
197
|
-
$youtube-color: var(--body-color) !default;
|
198
|
-
$linkedin-color: var(--body-color) !default;
|
199
|
-
$letterboxd-color: var(--body-color) !default;
|
200
|
-
|
201
248
|
// Meta Items
|
202
249
|
// ------------------------------------
|
203
250
|
$meta-item-border-radius: 4px !default;
|