sfc-utils 1.3.66 → 1.3.68
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/components/captioncredit.mjs +21 -21
- package/components/ogpubdate.mjs +18 -0
- package/components/slideshow/captioncreditslideshow.mjs +7 -4
- package/components/slideshow/imageslideshow.mjs +17 -2
- package/components/topper2.mjs +189 -24
- package/components/topperimage.mjs +7 -2
- package/example/gatsby-node.js +12 -9
- package/example/package-lock.json +18566 -133
- package/example/src/pages/index.js +2 -0
- package/package.json +1 -1
- package/settings.js +1 -1
- package/styles/brandStylesCommon.less +34 -8
- package/styles/modules/imageslideshow.module.less +45 -0
- package/styles/modules/topper2.module.less +239 -0
- package/styles/modules/topperimage.module.less +85 -0
|
@@ -12,6 +12,7 @@ import Newsletter from '../components/sfc/newsletter'
|
|
|
12
12
|
import NavTop from '../components/sfc/navtop'
|
|
13
13
|
import Byline from '../../../components/byline.mjs'
|
|
14
14
|
import Topper2 from '../../../components/topper2.mjs'
|
|
15
|
+
import OgPubDate from '../../../components/ogpubdate.mjs'
|
|
15
16
|
|
|
16
17
|
let rawCredits;
|
|
17
18
|
try {
|
|
@@ -101,6 +102,7 @@ const IndexPage = ({ data }) => {
|
|
|
101
102
|
</main>
|
|
102
103
|
|
|
103
104
|
<RelatedSection links={related_links} />
|
|
105
|
+
<OgPubDate />
|
|
104
106
|
{rawCredits && <CreditsSection creditsData={rawCredits}/>}
|
|
105
107
|
</Layout>
|
|
106
108
|
)
|
package/package.json
CHANGED
package/settings.js
CHANGED
|
@@ -14,7 +14,7 @@ try {
|
|
|
14
14
|
// Get settings off story_settings if it exists, otherwise fall back to projectConfig
|
|
15
15
|
let getSettings = function(){
|
|
16
16
|
if (!projectConfig) {
|
|
17
|
-
let settings = {PROJECT : {DATE: "
|
|
17
|
+
let settings = {PROJECT : {DATE: "January 1, 1900 9:00 AM", MOD_DATE: "January 1, 1901 9:00 AM"}} // Making this demo date SUPER wrong so we can catch it
|
|
18
18
|
return (
|
|
19
19
|
settings
|
|
20
20
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.hed, .deck{
|
|
2
2
|
text-align: center;
|
|
3
|
-
margin: @
|
|
3
|
+
margin: @s16 0;
|
|
4
4
|
&.left {
|
|
5
5
|
text-align: left;
|
|
6
6
|
}
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
h1 {
|
|
14
|
+
font-size: 4rem;
|
|
15
|
+
font-family: @hed;
|
|
16
|
+
}
|
|
13
17
|
//could the next three classes be moved into byline module?
|
|
14
18
|
.byline-wrapper {
|
|
15
19
|
max-width: @lg;
|
|
@@ -155,10 +159,32 @@ a {
|
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
/* Gift button mods */
|
|
163
|
+
.byline-wrapper {
|
|
164
|
+
overflow: auto;
|
|
165
|
+
}
|
|
166
|
+
.byline-wrapper .devhub .givegift {
|
|
167
|
+
padding: 1px 0px !important;
|
|
168
|
+
border-radius: 30px;
|
|
169
|
+
font-size: 16px;
|
|
170
|
+
}
|
|
171
|
+
.byline-wrapper .giftarticle.devhub {
|
|
172
|
+
margin-top: 0 !important;
|
|
173
|
+
margin-right: 4px !important;
|
|
174
|
+
}
|
|
175
|
+
.byline-wrapper .articleHeader--shareTools {
|
|
176
|
+
align-items: center;
|
|
177
|
+
}
|
|
178
|
+
.giftarticle svg {
|
|
179
|
+
padding-top: 1px;
|
|
180
|
+
}
|
|
181
|
+
@media (max-width: 420px){
|
|
182
|
+
.byline-wrapper .devhub .givegift {
|
|
183
|
+
font-size: 14px;
|
|
184
|
+
}
|
|
185
|
+
.giftarticle svg {
|
|
186
|
+
padding-top: 3px;
|
|
187
|
+
margin-right: 4px !important;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
/* End gift button mods */
|
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.container-side-by-side {
|
|
25
|
+
padding-bottom: calc(50vw*2/3);
|
|
26
|
+
width: 50%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
|
|
29
|
+
@media (max-width: @lg) {
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
width: auto;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
padding-bottom: calc(100vw * (2/3));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
24
37
|
.image-wrapper-stacked {
|
|
25
38
|
position: absolute;
|
|
26
39
|
width: 100%;
|
|
@@ -37,6 +50,38 @@
|
|
|
37
50
|
}
|
|
38
51
|
}
|
|
39
52
|
|
|
53
|
+
.image-wrapper-side-by-side {
|
|
54
|
+
position: absolute;
|
|
55
|
+
width: calc(50vw);
|
|
56
|
+
height: calc(50vw*2/3);
|
|
57
|
+
|
|
58
|
+
@media (max-width: @lg) {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: calc(100vw*2/3);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.image-wrapper-side-by-side-portrait {
|
|
65
|
+
position: absolute;
|
|
66
|
+
width: calc(90vh*2/3);
|
|
67
|
+
height: calc(90vh);
|
|
68
|
+
min-height: calc(600px + 32px);
|
|
69
|
+
|
|
70
|
+
@media (max-width: @lg) {
|
|
71
|
+
height: calc(90vh);
|
|
72
|
+
min-height: unset;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media @mobile {
|
|
76
|
+
width: 90vw;
|
|
77
|
+
height: calc(90vw*3/2);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.side-by-side-portrait-margin-left {
|
|
82
|
+
margin-left: clamp(0px, calc(50vw - 32px - 90vh * 2/3), calc(600px - 90vh * 2/3))
|
|
83
|
+
}
|
|
84
|
+
|
|
40
85
|
/* enter animation */
|
|
41
86
|
.fade-enter {
|
|
42
87
|
opacity: 0;
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
:root {
|
|
4
4
|
--headerDek-vertical-offset: 0px;
|
|
5
5
|
--headerDek-horizontal-offset: 0px;
|
|
6
|
+
--container-background-color: none;
|
|
7
|
+
--side-by-side-text-color: black;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
.topperContainerFullScreen {
|
|
@@ -20,6 +22,40 @@
|
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
|
|
25
|
+
.topperContainerSideBySide {
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
background: var(--container-background-color);
|
|
29
|
+
|
|
30
|
+
@media (max-width: @lg) {
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.topperContainerSideBySidePortrait {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
max-width: @xl;
|
|
39
|
+
margin: auto;
|
|
40
|
+
margin-bottom: @s32;
|
|
41
|
+
min-height: 600px;
|
|
42
|
+
|
|
43
|
+
@media (max-width: @lg) {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
margin-bottom: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.fullWidthContainer {
|
|
50
|
+
background: var(--container-background-color);
|
|
51
|
+
width: 100%;
|
|
52
|
+
padding-bottom: @s16;
|
|
53
|
+
|
|
54
|
+
@media (max-width: @lg) {
|
|
55
|
+
padding-bottom: 0px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
23
59
|
.imageFullScreen {
|
|
24
60
|
top: 0 !important;
|
|
25
61
|
width: 100%;
|
|
@@ -38,6 +74,66 @@
|
|
|
38
74
|
}
|
|
39
75
|
}
|
|
40
76
|
|
|
77
|
+
.imageSideBySide {
|
|
78
|
+
width: 50%;
|
|
79
|
+
float: left;
|
|
80
|
+
padding: @s16;
|
|
81
|
+
|
|
82
|
+
@media (max-width: @lg) {
|
|
83
|
+
width: auto;
|
|
84
|
+
float: none;
|
|
85
|
+
padding-bottom: 0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.imageSideBySideSlideshow {
|
|
90
|
+
width: 50%;
|
|
91
|
+
height: calc(50vw*2/3 + 10px);
|
|
92
|
+
|
|
93
|
+
@media (max-width: @lg) {
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: calc(100vw*2/3 + 10px);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.imageSideBySidePortrait {
|
|
100
|
+
width: 50%;
|
|
101
|
+
height: 90vh;
|
|
102
|
+
min-height: calc(600px + 32px);
|
|
103
|
+
float: left;
|
|
104
|
+
padding: @s16;
|
|
105
|
+
|
|
106
|
+
@media (max-width: @lg) {
|
|
107
|
+
width: auto;
|
|
108
|
+
float: none;
|
|
109
|
+
height: auto;
|
|
110
|
+
padding-bottom: 0;
|
|
111
|
+
min-height: unset;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.imageSideBySidePortraitSlideshow {
|
|
116
|
+
width: 50%;
|
|
117
|
+
height: 90vh;
|
|
118
|
+
min-height: calc(600px + 32px);
|
|
119
|
+
float: left;
|
|
120
|
+
padding: @s16;
|
|
121
|
+
|
|
122
|
+
@media (max-width: @lg) {
|
|
123
|
+
width: calc(90vh*2/3);
|
|
124
|
+
float: none;
|
|
125
|
+
height: calc(90vh);
|
|
126
|
+
padding-bottom: 0;
|
|
127
|
+
min-height: unset;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media @mobile {
|
|
131
|
+
width: 90vw;
|
|
132
|
+
height: calc(90vw*3/2 + @s16);
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
41
137
|
.headerDekStacked {
|
|
42
138
|
margin-left: auto;
|
|
43
139
|
margin-right: auto;
|
|
@@ -63,6 +159,20 @@
|
|
|
63
159
|
}
|
|
64
160
|
}
|
|
65
161
|
|
|
162
|
+
.headerDekSideBySide {
|
|
163
|
+
max-width: 50%;
|
|
164
|
+
float: right;
|
|
165
|
+
text-align: left;
|
|
166
|
+
color: var(--side-by-side-text-color);
|
|
167
|
+
|
|
168
|
+
@media (max-width: @lg) {
|
|
169
|
+
width: auto;
|
|
170
|
+
max-width: 100%;
|
|
171
|
+
float: none;
|
|
172
|
+
padding: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
66
176
|
.hedFullScreen {
|
|
67
177
|
margin-top: 0px;
|
|
68
178
|
}
|
|
@@ -170,4 +280,133 @@
|
|
|
170
280
|
@media @tablet {
|
|
171
281
|
padding-left: @s8;
|
|
172
282
|
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.slideshowCaptionSideBySide {
|
|
286
|
+
padding-top: calc(50vw*2/3 - @s16);
|
|
287
|
+
|
|
288
|
+
@media (max-width: @lg) {
|
|
289
|
+
padding-top: calc(100vw*2/3 - @s16);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.slideshowCaptionSideBySidePortrait {
|
|
294
|
+
padding-top: clamp(584px, 88vh, 90vh);
|
|
295
|
+
|
|
296
|
+
@media (max-width: @lg) {
|
|
297
|
+
padding-top: calc(90vh - 37px - @s16);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
@media @mobile {
|
|
301
|
+
padding-top: calc(90vw*3/2);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.captionSideBySide {
|
|
306
|
+
max-width: @lg;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.captionSideBySidePortrait {
|
|
310
|
+
width: clamp(0px, calc(50vw - 32px), calc(90vh * 2/3));
|
|
311
|
+
max-width: calc(50vw * 2/3 - 32px);
|
|
312
|
+
min-width: 400px;
|
|
313
|
+
|
|
314
|
+
@media (max-width: @lg) {
|
|
315
|
+
width: auto;
|
|
316
|
+
max-width: none;
|
|
317
|
+
min-width: 0px;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.reverseFlexbox {
|
|
322
|
+
flex-direction: row-reverse;
|
|
323
|
+
|
|
324
|
+
@media (max-width: @lg) {
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.captionTextColor {
|
|
330
|
+
color: var(--side-by-side-text-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.captionTextColorImportant {
|
|
334
|
+
color: var(--side-by-side-text-color) !important;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.largePaddingLeft {
|
|
338
|
+
padding: @s16 @s8 @s16 @s32;
|
|
339
|
+
|
|
340
|
+
@media (max-width: @lg) {
|
|
341
|
+
padding: 0;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.largePaddingRight {
|
|
346
|
+
padding: @s16 @s32 @s16 @s8;
|
|
347
|
+
|
|
348
|
+
@media (max-width: @lg) {
|
|
349
|
+
padding: 0;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.captionLargePaddingLeft {
|
|
354
|
+
padding-left: @s32;
|
|
355
|
+
|
|
356
|
+
@media (max-width: @lg) {
|
|
357
|
+
padding-left: @s16;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.captionSmallPaddingLeft {
|
|
362
|
+
padding-left: @s16;
|
|
363
|
+
|
|
364
|
+
@media (max-width: @lg) {
|
|
365
|
+
padding-left: @s16;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
@media @mobile {
|
|
369
|
+
padding-left: 0;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.captionLargePaddingRight {
|
|
374
|
+
padding-left: @s8;
|
|
375
|
+
|
|
376
|
+
@media (max-width: @lg) {
|
|
377
|
+
padding-left: @s16;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.captionXLargePaddingRight {
|
|
382
|
+
padding-left: @s16;
|
|
383
|
+
|
|
384
|
+
@media (max-width: @lg) {
|
|
385
|
+
padding-left: @s16;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.captionSideBySidePortraitPadding {
|
|
390
|
+
padding-left: clamp(0px, calc(50vw - (90vh * 2/3) - @s16), calc(600px - 90vh *2/3 + @s16));
|
|
391
|
+
|
|
392
|
+
@media (max-width: @lg) {
|
|
393
|
+
padding-left: @s16;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.floatLeftWhenDesktop {
|
|
398
|
+
float: left;
|
|
399
|
+
|
|
400
|
+
@media (max-width: @lg) {
|
|
401
|
+
float: none;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.floatRightWhenDesktop {
|
|
406
|
+
float: right;
|
|
407
|
+
max-width: none;
|
|
408
|
+
|
|
409
|
+
@media (max-width: @lg) {
|
|
410
|
+
float: none;
|
|
411
|
+
}
|
|
173
412
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
:root {
|
|
5
5
|
--img-bottom-padding-ratio: "56.25%";
|
|
6
|
+
--img-height-viewport: "56.25vw";
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.c-force-aspect-ratio {
|
|
@@ -30,6 +31,39 @@
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
34
|
+
.c-img-slideshow-side-by-side {
|
|
35
|
+
object-fit: cover;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: calc(50vw * 2/3);
|
|
38
|
+
padding: @s16;
|
|
39
|
+
|
|
40
|
+
@media (max-width: @lg) {
|
|
41
|
+
height: calc(100vw*2/3);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.c-img-slideshow-side-by-side-portrait {
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: calc(90vh);
|
|
49
|
+
min-width: 400px;
|
|
50
|
+
min-height: 600px;
|
|
51
|
+
padding: @s16;
|
|
52
|
+
|
|
53
|
+
@media (max-width: @lg) {
|
|
54
|
+
height: calc(90vh - 37px);
|
|
55
|
+
width: calc(90vh*2/3);
|
|
56
|
+
min-height: unset;
|
|
57
|
+
min-width: unset;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media @mobile {
|
|
61
|
+
width: 90vw;
|
|
62
|
+
height: calc(90vw*3/2);
|
|
63
|
+
padding: 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
33
67
|
.c-img {
|
|
34
68
|
display: block;
|
|
35
69
|
position: relative;
|
|
@@ -50,6 +84,41 @@
|
|
|
50
84
|
}
|
|
51
85
|
}
|
|
52
86
|
|
|
87
|
+
.c-container-side-by-side {
|
|
88
|
+
height: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.c-img-side-by-side {
|
|
92
|
+
object-fit: cover;
|
|
93
|
+
width: 50vw;
|
|
94
|
+
height: var(--img-height-viewport);
|
|
95
|
+
|
|
96
|
+
@media (max-width: @lg) {
|
|
97
|
+
width: 100vw;
|
|
98
|
+
height: calc(100vw*2/3);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.c-container-side-by-side-portrait {
|
|
103
|
+
float: left;
|
|
104
|
+
height: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.c-img-side-by-side-portrait {
|
|
108
|
+
object-fit: cover;
|
|
109
|
+
width: calc(90vh * 2/3);
|
|
110
|
+
height: 100%;
|
|
111
|
+
min-width: 400px;
|
|
112
|
+
min-height: 600px;
|
|
113
|
+
|
|
114
|
+
@media (max-width: @lg) {
|
|
115
|
+
width: 100vw;
|
|
116
|
+
height: auto;
|
|
117
|
+
min-height: unset;
|
|
118
|
+
min-width: unset;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
53
122
|
.c-fig-hidden-when-desktop {
|
|
54
123
|
display: none;
|
|
55
124
|
|
|
@@ -57,4 +126,20 @@
|
|
|
57
126
|
display: block;
|
|
58
127
|
padding-left: @s8;
|
|
59
128
|
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.c-large-padding-left {
|
|
132
|
+
padding: @s16 @s8 @s16 @s32;
|
|
133
|
+
|
|
134
|
+
@media (max-width: @lg) {
|
|
135
|
+
padding: @s16;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.c-large-padding-right {
|
|
140
|
+
padding: @s16 @s32 @s16 @s8;
|
|
141
|
+
|
|
142
|
+
@media (max-width: @lg) {
|
|
143
|
+
padding: @s16;
|
|
144
|
+
}
|
|
60
145
|
}
|