ghost 4.30.1 → 4.31.0
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.
- package/content/themes/casper/assets/built/screen.css +1 -1
- package/content/themes/casper/assets/built/screen.css.map +1 -1
- package/content/themes/casper/assets/css/screen.css +30 -14
- package/content/themes/casper/package.json +1 -1
- package/core/built/assets/{ghost-dark-1594d07a0716e0253a78234c8e42d765.css → ghost-dark-60b50b44689a4c79fd9e72356f94a844.css} +1 -1
- package/core/built/assets/{ghost.min-884660873d56fcc3d2a3b9fe94c9f022.js → ghost.min-7690e7e32d3e53ec5480a234962341a6.js} +4 -4
- package/core/built/assets/ghost.min-e628c133ed6b5ec32a1cc3511c2b2978.css +1 -0
- package/core/built/assets/{vendor.min-a2fd1e62ce6da8911fee8e812d8c6ceb.js → vendor.min-f4bc3ac0c7d33722341d0da4291aa888.js} +99 -78
- package/core/frontend/apps/amp/lib/views/amp.hbs +134 -0
- package/core/frontend/src/cards/css/before-after.css +45 -11
- package/core/frontend/src/cards/css/callout.css +6 -1
- package/core/frontend/src/cards/css/file.css +9 -3
- package/core/frontend/src/cards/css/header.css +167 -0
- package/core/frontend/src/cards/css/product.css +2 -5
- package/core/frontend/src/cards/css/toggle.css +1 -0
- package/core/frontend/src/cards/js/before-after.js +10 -15
- package/core/server/services/mega/template.js +110 -0
- package/core/server/web/admin/views/default-prod.html +4 -4
- package/core/server/web/admin/views/default.html +4 -4
- package/core/shared/config/overrides.json +11 -1
- package/core/shared/labs.js +2 -2
- package/package.json +12 -12
- package/yarn.lock +75 -76
- package/core/built/assets/ghost.min-c21fea11c3f431994a8ee7c47a8ed145.css +0 -1
|
@@ -674,6 +674,140 @@
|
|
|
674
674
|
font-size: 1.25em;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
+
.kg-header-card {
|
|
678
|
+
padding: 6em 3em;
|
|
679
|
+
display: flex;
|
|
680
|
+
flex-direction: column;
|
|
681
|
+
align-items: center;
|
|
682
|
+
justify-content: center;
|
|
683
|
+
text-align: center;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.kg-header-card.kg-size-small {
|
|
687
|
+
padding-top: 4em;
|
|
688
|
+
padding-bottom: 4em;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.kg-header-card.kg-size-large {
|
|
692
|
+
padding-top: 12em;
|
|
693
|
+
padding-bottom: 12em;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.kg-header-card.kg-width-full {
|
|
697
|
+
padding-left: 4em;
|
|
698
|
+
padding-right: 4em;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.kg-header-card.kg-align-left {
|
|
702
|
+
text-align: left;
|
|
703
|
+
align-items: flex-start;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.kg-header-card.kg-style-invert {
|
|
707
|
+
background: #15171a;
|
|
708
|
+
color: #ffffff;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.kg-header-card.kg-style-clear {
|
|
712
|
+
color: #15171a;
|
|
713
|
+
border: 1px solid rgba(124, 139, 154, 0.25);
|
|
714
|
+
border-width: 1px 0;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.kg-header-card.kg-style-accent {
|
|
718
|
+
background-color: var(--ghost-accent-color);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.kg-header-card.kg-style-image {
|
|
722
|
+
background-color: #e7e7eb;
|
|
723
|
+
background-size: cover;
|
|
724
|
+
background-position: center center;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.kg-header-card h2 {
|
|
728
|
+
font-size: 4em;
|
|
729
|
+
font-weight: 700;
|
|
730
|
+
line-height: 1.1em;
|
|
731
|
+
margin: 0;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
.kg-header-card h2 strong {
|
|
735
|
+
font-weight: 800;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.kg-header-card.kg-size-small h2 {
|
|
739
|
+
font-size: 3em;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
.kg-header-card.kg-size-large h2 {
|
|
743
|
+
font-size: 5em;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.kg-header-card h3 {
|
|
747
|
+
font-size: 1.25em;
|
|
748
|
+
font-weight: 500;
|
|
749
|
+
line-height: 1.3em;
|
|
750
|
+
margin: 0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.kg-header-card h3 strong {
|
|
754
|
+
font-weight: 600;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.kg-header-card.kg-size-small h3 {
|
|
758
|
+
font-size: 1em;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.kg-header-card.kg-size-large h3 {
|
|
762
|
+
font-size: 1.5em;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.kg-header-card:not(.kg-style-clear) h2,
|
|
766
|
+
.kg-header-card:not(.kg-style-clear) h3 {
|
|
767
|
+
color: #ffffff;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.kg-header-card a.kg-header-card-button {
|
|
771
|
+
display: flex;
|
|
772
|
+
position: static;
|
|
773
|
+
align-items: center;
|
|
774
|
+
padding: 0 1.2em;
|
|
775
|
+
height: 2.4em;
|
|
776
|
+
line-height: 1em;
|
|
777
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
778
|
+
font-size: 0.95em;
|
|
779
|
+
font-weight: 600;
|
|
780
|
+
text-decoration: none !important;
|
|
781
|
+
border-radius: 5px;
|
|
782
|
+
transition: opacity 0.2s ease-in-out;
|
|
783
|
+
background-color: var(--ghost-accent-color);
|
|
784
|
+
color: #ffffff !important;
|
|
785
|
+
margin: 1.75em 0 0;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.kg-header-card a.kg-header-card-button:hover {
|
|
789
|
+
opacity: 0.85;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
.kg-header-card.kg-size-large a.kg-header-card-button {
|
|
793
|
+
margin-top: 2em;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.kg-header-card.kg-size-small a.kg-header-card-button {
|
|
797
|
+
margin-top: 1.5em;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
.kg-header-card.kg-style-image a.kg-header-card-button,
|
|
801
|
+
.kg-header-card.kg-style-invert a.kg-header-card-button {
|
|
802
|
+
background: #ffffff;
|
|
803
|
+
color: #15171a !important;
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.kg-header-card.kg-style-accent a.kg-header-card-button {
|
|
807
|
+
background: #ffffff;
|
|
808
|
+
color: var(--ghost-accent-color) !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
677
811
|
.kg-audio-card {
|
|
678
812
|
display: flex;
|
|
679
813
|
width: 100%;
|
|
@@ -8,20 +8,24 @@
|
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
top: 0;
|
|
10
10
|
left: 0;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.kg-before-after-card .kg-before-after-card-image-after img {
|
|
15
|
+
width: 100%;
|
|
11
16
|
}
|
|
12
17
|
|
|
13
|
-
.kg-before-after-card img {
|
|
18
|
+
.kg-before-after-card .kg-before-after-card-image-before img {
|
|
14
19
|
max-width: none;
|
|
15
|
-
|
|
20
|
+
object-fit: cover;
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
.kg-before-after-card input {
|
|
19
|
-
top:0;
|
|
20
|
-
left: -25px;
|
|
21
24
|
position: absolute;
|
|
25
|
+
top: 0;
|
|
22
26
|
-webkit-appearance: none;
|
|
23
27
|
appearance: none;
|
|
24
|
-
width:
|
|
28
|
+
width: 100%;
|
|
25
29
|
height: 100%;
|
|
26
30
|
background: rgba(0, 0, 0, 0);
|
|
27
31
|
outline: none;
|
|
@@ -31,17 +35,47 @@
|
|
|
31
35
|
.kg-before-after-card input::-webkit-slider-thumb {
|
|
32
36
|
-webkit-appearance: none;
|
|
33
37
|
appearance: none;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
38
|
+
width: 5px;
|
|
39
|
+
height: 100%;
|
|
36
40
|
background: white;
|
|
37
41
|
cursor: pointer;
|
|
38
|
-
border-radius: 25px;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
.kg-before-after-card input::-moz-range-thumb {
|
|
42
|
-
width:
|
|
43
|
-
height:
|
|
45
|
+
width: 5px;
|
|
46
|
+
height: 100%;
|
|
44
47
|
background: white;
|
|
45
48
|
cursor: pointer;
|
|
46
|
-
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kg-before-after-card-slider-handle {
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
position: absolute;
|
|
54
|
+
width: 30px;
|
|
55
|
+
height: 30px;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
background-color: white;
|
|
58
|
+
left: calc(50% - 18px);
|
|
59
|
+
top: calc(50% - 18px);
|
|
60
|
+
display: flex;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
align-items: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kg-before-after-card-slider-handle:after {
|
|
66
|
+
transform: rotate(-45deg);
|
|
67
|
+
content: '';
|
|
68
|
+
padding: 3px;
|
|
69
|
+
display: inline-block;
|
|
70
|
+
border: solid #5D5D5D;
|
|
71
|
+
border-width: 0 2px 2px 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.kg-before-after-card-slider-handle:before {
|
|
75
|
+
transform: rotate(135deg);
|
|
76
|
+
content: '';
|
|
77
|
+
padding: 3px;
|
|
78
|
+
display: inline-block;
|
|
79
|
+
border: solid #5D5D5D;
|
|
80
|
+
border-width: 0 2px 2px 0;
|
|
47
81
|
}
|
|
@@ -42,8 +42,9 @@
|
|
|
42
42
|
color: #fff;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.kg-callout-card-accent a {
|
|
45
|
+
.kg-callout-card.kg-callout-card-accent a {
|
|
46
46
|
color: #fff;
|
|
47
|
+
text-decoration: underline;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.kg-callout-card div.kg-callout-emoji {
|
|
@@ -55,4 +56,8 @@
|
|
|
55
56
|
.kg-callout-card div.kg-callout-text {
|
|
56
57
|
font-size: .95em;
|
|
57
58
|
line-height: 1.5em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.kg-callout-card + .kg-callout-card {
|
|
62
|
+
margin-top: 1em;
|
|
58
63
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.kg-file-card a.kg-file-card-container {
|
|
6
6
|
display: flex;
|
|
7
|
-
align-items:
|
|
7
|
+
align-items: stretch;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
color: inherit;
|
|
10
10
|
padding: 6px;
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
flex-direction: column;
|
|
26
26
|
justify-content: space-between;
|
|
27
27
|
margin: 4px 8px;
|
|
28
|
+
width: 100%
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.kg-file-card-title {
|
|
@@ -35,14 +36,18 @@
|
|
|
35
36
|
|
|
36
37
|
.kg-file-card-caption {
|
|
37
38
|
font-size: 0.95em;
|
|
38
|
-
line-height: 1.
|
|
39
|
+
line-height: 1.3em;
|
|
39
40
|
opacity: 0.6;
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
.kg-file-card-title + .kg-file-card-caption {
|
|
44
|
+
margin-top: -6px;
|
|
45
|
+
}
|
|
46
|
+
|
|
42
47
|
.kg-file-card-metadata {
|
|
43
48
|
display: inline;
|
|
44
49
|
font-size: 0.825em;
|
|
45
|
-
line-height: 1.
|
|
50
|
+
line-height: 1.3em;
|
|
46
51
|
margin-top: 2px;
|
|
47
52
|
}
|
|
48
53
|
|
|
@@ -108,6 +113,7 @@
|
|
|
108
113
|
}
|
|
109
114
|
|
|
110
115
|
.kg-file-card-small a.kg-file-card-container {
|
|
116
|
+
align-items: center;
|
|
111
117
|
min-height: 52px;
|
|
112
118
|
}
|
|
113
119
|
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
.kg-header-card {
|
|
2
|
+
padding: 6em 3em;
|
|
3
|
+
min-height: 60vh;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
text-align: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.kg-header-card.kg-size-small {
|
|
12
|
+
padding-top: 4em;
|
|
13
|
+
padding-bottom: 4em;
|
|
14
|
+
min-height: 40vh;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.kg-header-card.kg-size-large {
|
|
18
|
+
padding-top: 12em;
|
|
19
|
+
padding-bottom: 12em;
|
|
20
|
+
min-height: 80vh;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.kg-header-card.kg-width-full {
|
|
24
|
+
padding-left: 4em;
|
|
25
|
+
padding-right: 4em;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.kg-header-card.kg-align-left {
|
|
29
|
+
text-align: left;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kg-header-card.kg-style-invert {
|
|
34
|
+
background: #15171a;
|
|
35
|
+
color: #ffffff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.kg-header-card.kg-style-clear {
|
|
39
|
+
color: #15171a;
|
|
40
|
+
border: 1px solid rgba(124, 139, 154, 0.25);
|
|
41
|
+
border-width: 1px 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.kg-header-card.kg-style-accent {
|
|
45
|
+
background-color: var(--ghost-accent-color);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.kg-header-card.kg-style-image {
|
|
49
|
+
background-color: #e7e7eb;
|
|
50
|
+
background-size: cover;
|
|
51
|
+
background-position: center center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.kg-header-card h2 {
|
|
55
|
+
font-size: 5em;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
line-height: 1.1em;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.kg-header-card h2 strong {
|
|
62
|
+
font-weight: 800;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.kg-header-card.kg-size-small h2 {
|
|
66
|
+
font-size: 4em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.kg-header-card.kg-size-large h2 {
|
|
70
|
+
font-size: 6em;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.kg-header-card h3 {
|
|
74
|
+
font-size: 1.5em;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
line-height: 1.3em;
|
|
77
|
+
margin: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.kg-header-card h3 strong {
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.kg-header-card.kg-size-small h3 {
|
|
85
|
+
font-size: 1.25em;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.kg-header-card.kg-size-large h3 {
|
|
89
|
+
font-size: 1.75em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.kg-header-card:not(.kg-style-clear) h2,
|
|
93
|
+
.kg-header-card:not(.kg-style-clear) h3 {
|
|
94
|
+
color: #ffffff;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.kg-header-card a.kg-header-card-button {
|
|
98
|
+
display: flex;
|
|
99
|
+
position: static;
|
|
100
|
+
align-items: center;
|
|
101
|
+
padding: 0 1.2em;
|
|
102
|
+
height: 2.4em;
|
|
103
|
+
line-height: 1em;
|
|
104
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
105
|
+
font-size: 0.95em;
|
|
106
|
+
font-weight: 600;
|
|
107
|
+
text-decoration: none !important;
|
|
108
|
+
border-radius: 5px;
|
|
109
|
+
transition: opacity 0.2s ease-in-out;
|
|
110
|
+
background-color: var(--ghost-accent-color);
|
|
111
|
+
color: #ffffff !important;
|
|
112
|
+
margin: 1.75em 0 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.kg-header-card a.kg-header-card-button:hover {
|
|
116
|
+
opacity: 0.85;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.kg-header-card.kg-size-large a.kg-header-card-button {
|
|
120
|
+
margin-top: 2em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.kg-header-card.kg-size-small a.kg-header-card-button {
|
|
124
|
+
margin-top: 1.5em;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.kg-header-card.kg-style-image a.kg-header-card-button,
|
|
128
|
+
.kg-header-card.kg-style-invert a.kg-header-card-button {
|
|
129
|
+
background: #ffffff;
|
|
130
|
+
color: #15171a !important;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.kg-header-card.kg-style-accent a.kg-header-card-button {
|
|
134
|
+
background: #ffffff;
|
|
135
|
+
color: var(--ghost-accent-color) !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (max-width: 640px) {
|
|
139
|
+
.kg-header-card {
|
|
140
|
+
padding-left: 1em;
|
|
141
|
+
padding-right: 1em;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.kg-header-card h2 {
|
|
145
|
+
font-size: 3.5em;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.kg-header-card.kg-size-large h2 {
|
|
149
|
+
font-size: 4em;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.kg-header-card.kg-size-small h2 {
|
|
153
|
+
font-size: 3em;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.kg-header-card h3 {
|
|
157
|
+
font-size: 1.25em;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.kg-header-card.kg-size-large h3 {
|
|
161
|
+
font-size: 1.5em;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.kg-header-card.kg-size-small h3 {
|
|
165
|
+
font-size: 1em;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -48,10 +48,6 @@
|
|
|
48
48
|
font-size: 0.95em;
|
|
49
49
|
line-height: 1.5em;
|
|
50
50
|
opacity: .7;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.kg-product-card .kg-product-card-description p:not(:first-of-type) {
|
|
54
|
-
margin-top: 0.8em;
|
|
55
51
|
margin-bottom: 0;
|
|
56
52
|
}
|
|
57
53
|
|
|
@@ -59,13 +55,14 @@
|
|
|
59
55
|
margin-top: -4px;
|
|
60
56
|
}
|
|
61
57
|
|
|
58
|
+
.kg-product-card .kg-product-card-description p:not(:first-of-type),
|
|
62
59
|
.kg-product-card .kg-product-card-description ul,
|
|
63
60
|
.kg-product-card .kg-product-card-description ol {
|
|
64
61
|
margin-top: 0.95em;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
64
|
.kg-product-card .kg-product-card-description li+li {
|
|
68
|
-
margin-top: 0.
|
|
65
|
+
margin-top: 0.5em;
|
|
69
66
|
}
|
|
70
67
|
|
|
71
68
|
.kg-product-card-rating {
|
|
@@ -2,35 +2,30 @@
|
|
|
2
2
|
const beforeAfterCards = [...document.querySelectorAll('.kg-before-after-card')];
|
|
3
3
|
|
|
4
4
|
for (let card of beforeAfterCards) {
|
|
5
|
-
const isFullWidth = card.classList.contains('kg-width-full');
|
|
6
5
|
const input = card.querySelector('input');
|
|
7
6
|
const overlay = card.querySelector('.kg-before-after-card-image-before');
|
|
8
|
-
const
|
|
7
|
+
const button = card.querySelector('.kg-before-after-card-slider-button');
|
|
9
8
|
const images = [...card.querySelectorAll('img')];
|
|
10
|
-
const smallestImageWidth = Math.min(
|
|
11
|
-
...images.map(img => parseInt(img.getAttribute('width')))
|
|
12
|
-
);
|
|
13
9
|
|
|
14
10
|
function updateSlider() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} else {
|
|
18
|
-
overlay.setAttribute('style', `width: ${input.value}%`);
|
|
19
|
-
}
|
|
11
|
+
overlay.setAttribute('style', `width: ${input.value}%`);
|
|
12
|
+
button.setAttribute('style', `left: calc(${input.value}% - 18px`);
|
|
20
13
|
}
|
|
21
14
|
|
|
22
15
|
function updateDimensions() {
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
image.setAttribute('style', `width: ${width.toString()}px;`);
|
|
27
|
-
}
|
|
16
|
+
const imageWidth = getComputedStyle(images[0]).getPropertyValue('width');
|
|
17
|
+
|
|
18
|
+
images[1].setAttribute('style', `width: ${imageWidth}`);
|
|
28
19
|
}
|
|
29
20
|
|
|
30
21
|
input.addEventListener('input', function () {
|
|
31
22
|
updateSlider();
|
|
32
23
|
});
|
|
33
24
|
|
|
25
|
+
input.addEventListener('change', function () {
|
|
26
|
+
input.blur();
|
|
27
|
+
});
|
|
28
|
+
|
|
34
29
|
window.addEventListener('resize', function () {
|
|
35
30
|
updateDimensions();
|
|
36
31
|
});
|
|
@@ -638,6 +638,116 @@ figure blockquote p {
|
|
|
638
638
|
font-size: 20px;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
|
+
.kg-header-card {
|
|
642
|
+
margin: 0 0 1.5em 0;
|
|
643
|
+
padding: 110px 35px 110px 35px;
|
|
644
|
+
text-align: center;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.kg-header-card.kg-size-small {
|
|
648
|
+
padding-top: 75px;
|
|
649
|
+
padding-bottom: 75px;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
.kg-header-card.kg-size-large {
|
|
653
|
+
padding-top: 140px;
|
|
654
|
+
padding-bottom: 140px;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.kg-header-card.kg-align-left {
|
|
658
|
+
text-align: left;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.kg-header-card.kg-style-invert {
|
|
662
|
+
background: #15171a;
|
|
663
|
+
color: #ffffff;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.kg-header-card.kg-style-clear {
|
|
667
|
+
border-top: 1px solid #e5eff6;
|
|
668
|
+
border-bottom: 1px solid #e5eff6;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.kg-header-card.kg-style-accent {
|
|
672
|
+
background: ${templateSettings.accentColor || '#15171a'};
|
|
673
|
+
color: #ffffff;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.kg-header-card.kg-style-image {
|
|
677
|
+
background-color: #e7e7eb;
|
|
678
|
+
background-size: cover;
|
|
679
|
+
background-position: center center;
|
|
680
|
+
color: #ffffff;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.kg-header-card h2 {
|
|
684
|
+
font-size: 3em;
|
|
685
|
+
font-weight: 700;
|
|
686
|
+
line-height: 1.1em;
|
|
687
|
+
margin: 0 0 0.125em;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.kg-header-card h2 strong {
|
|
691
|
+
font-weight: 800;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.kg-header-card.kg-size-small h2 {
|
|
695
|
+
font-size: 2.5em;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.kg-header-card.kg-size-large h2 {
|
|
699
|
+
font-size: 3.5em;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.kg-header-card h3 {
|
|
703
|
+
font-size: 1.125em;
|
|
704
|
+
font-weight: 500;
|
|
705
|
+
line-height: 1.3em;
|
|
706
|
+
margin: 0;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.kg-header-card h3 strong {
|
|
710
|
+
font-weight: 600;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.kg-header-card.kg-size-large h3 {
|
|
714
|
+
font-size: 1.25em;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.kg-header-card.kg-size-small h3 {
|
|
718
|
+
font-size: 1em;
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
.kg-header-card-button {
|
|
722
|
+
margin-top: 1.75em;
|
|
723
|
+
background: ${templateSettings.accentColor || '#15212A'};
|
|
724
|
+
border: solid 1px ${templateSettings.accentColor || '#15212A'};
|
|
725
|
+
border-radius: 5px;
|
|
726
|
+
box-sizing: border-box;
|
|
727
|
+
cursor: pointer;
|
|
728
|
+
display: inline-block;
|
|
729
|
+
font-size: 14px;
|
|
730
|
+
font-weight: bold;
|
|
731
|
+
margin: 0;
|
|
732
|
+
padding: 8px 16px;
|
|
733
|
+
text-decoration: none !important;
|
|
734
|
+
color: #FFFFFF !important;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.kg-size-large .kg-header-card-button {
|
|
738
|
+
margin-top: 2em;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.kg-size-small .kg-header-card-button {
|
|
742
|
+
margin-top: 1.5em;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.kg-style-accent .kg-header-card-button {
|
|
746
|
+
background: #ffffff;
|
|
747
|
+
color: ${templateSettings.accentColor || '#15212A'} !important;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
|
|
641
751
|
/* -------------------------------------
|
|
642
752
|
HEADER, FOOTER, MAIN
|
|
643
753
|
------------------------------------- */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.31%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22emberKeyboard%22%3A%7B%22disableInputsInitializer%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
<link rel="stylesheet" href="assets/vendor.min-987af30228885bce50f05c4723fe6f53.css">
|
|
44
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
44
|
+
<link rel="stylesheet" href="assets/ghost.min-e628c133ed6b5ec32a1cc3511c2b2978.css" title="light">
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
<script src="assets/vendor.min-
|
|
63
|
-
<script src="assets/ghost.min-
|
|
62
|
+
<script src="assets/vendor.min-f4bc3ac0c7d33722341d0da4291aa888.js"></script>
|
|
63
|
+
<script src="assets/ghost.min-7690e7e32d3e53ec5480a234962341a6.js"></script>
|
|
64
64
|
|
|
65
65
|
</body>
|
|
66
66
|
</html>
|