sfc-utils 1.4.42 → 1.4.44
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.
|
@@ -61,6 +61,8 @@ const LayoutHelmet = ({ meta, url_add, noindex=false, schemaOverride={} }) => {
|
|
|
61
61
|
let favHref = "/favicon.ico"
|
|
62
62
|
if (MARKET_KEY === "TK"){
|
|
63
63
|
favHref = "https://files.sfchronicle.com/devhub-logos/DHlogos-sm.png"
|
|
64
|
+
} else if (MARKET_KEY === "Seattle"){
|
|
65
|
+
favHref = "https://www.seattlepi.com/sites/seattlepi/apple-touch-icon-196x196.png"
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
// Set section with fallback
|
package/components/topper2.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as imageStyles from "../styles/modules/topperimage.module.less"
|
|
|
9
9
|
|
|
10
10
|
const Topper2 = ({ settings, wcmData, mods }) => {
|
|
11
11
|
let {
|
|
12
|
-
Topper_Style, Title, Title_Style, Deck, Image, Image_Alt, Video_Mp4, Image_Caption, Image_Credits,
|
|
12
|
+
Topper_Style, Title, Title_Style, Deck, Image, Image_Alt, Kicker, Video_Mp4, Image_Caption, Image_Credits,
|
|
13
13
|
HeaderDek_Vertical_Position, HeaderDek_Vertical_Offset, HeaderDek_Horizontal_Offset,
|
|
14
14
|
HeaderDek_Horizontal_Position, Inverted_Colors, Inverted_Layout, Inverted_Text_Color,
|
|
15
15
|
Topper_Background_Color, Small_Visual_Max_Width, Small_Visual_Topper_Url
|
|
@@ -150,6 +150,22 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
const kickerStyleList = () => {
|
|
154
|
+
switch (Topper_Style) {
|
|
155
|
+
case "small-visual":
|
|
156
|
+
return [topperStyles.kicker, topperStyles.textAlignCenterKicker, topperStyles.kickerSmallVisual]
|
|
157
|
+
case "stacked":
|
|
158
|
+
return [topperStyles.kicker, topperStyles.textAlignCenterKicker];
|
|
159
|
+
case "no-visual":
|
|
160
|
+
case "side-by-side":
|
|
161
|
+
case "side-by-side-portrait":
|
|
162
|
+
return [topperStyles.kicker, topperStyles.textAlignLeft];
|
|
163
|
+
case "full-screen":
|
|
164
|
+
default:
|
|
165
|
+
return [""]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
153
169
|
/** Get text alignment based on header-deck position **/
|
|
154
170
|
const fullScreenTextAlignCss = () => {
|
|
155
171
|
switch (HeaderDek_Horizontal_Position) {
|
|
@@ -383,6 +399,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
383
399
|
<>
|
|
384
400
|
<div>
|
|
385
401
|
<div className={headerDekStyleList().join('')}>
|
|
402
|
+
{Kicker && <Heading level={4} text={Kicker} className={kickerStyleList().join(' ')} />}
|
|
386
403
|
<Heading
|
|
387
404
|
level={1}
|
|
388
405
|
text={Title}
|
|
@@ -418,6 +435,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
418
435
|
<figure className={`mw-xl ml-auto mr-auto ${topperStyles.imageSmallVisual}`}>
|
|
419
436
|
{getMediaHTML(isSlideshow(wcmIdList))}
|
|
420
437
|
</figure>
|
|
438
|
+
{Kicker && <Heading level={4} text={Kicker} className={kickerStyleList().join(' ')} />}
|
|
421
439
|
<div className={headerDekStyleList().join('')}>
|
|
422
440
|
<Heading
|
|
423
441
|
level={1}
|
|
@@ -439,6 +457,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
439
457
|
<>
|
|
440
458
|
<div>
|
|
441
459
|
<div className={headerDekStyleList().join('')}>
|
|
460
|
+
{Kicker && <Heading level={4} text={Kicker} className={kickerStyleList().join(' ')} />}
|
|
442
461
|
<Heading
|
|
443
462
|
level={1}
|
|
444
463
|
text={Title}
|
|
@@ -461,6 +480,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
461
480
|
return (
|
|
462
481
|
<div className={sideBySideContainerCss}>
|
|
463
482
|
<div className={headerDekStyleList().join(' ')}>
|
|
483
|
+
{Kicker && <Heading level={4} text={Kicker} className={kickerStyleList().join(' ')} />}
|
|
464
484
|
<Heading
|
|
465
485
|
level={1}
|
|
466
486
|
text={Title}
|
|
@@ -497,6 +517,8 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
497
517
|
<div className={topperStyles.fullWidthContainer}>
|
|
498
518
|
<div className={sideBySidePortraitContainerCss}>
|
|
499
519
|
<div className={headerDekStyleList().join(' ')}>
|
|
520
|
+
{Kicker && <Heading level={4} text={Kicker} className={kickerStyleList().join(' ')} />}
|
|
521
|
+
|
|
500
522
|
<Heading
|
|
501
523
|
level={1}
|
|
502
524
|
text={Title}
|
package/package.json
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
width: 100%;
|
|
91
91
|
margin: @s24 auto 0 auto;
|
|
92
92
|
|
|
93
|
-
@media
|
|
93
|
+
@media (max-width: 960px) {
|
|
94
94
|
margin-left: @s16;
|
|
95
95
|
margin-right: @s16;
|
|
96
96
|
width: auto;
|
|
@@ -295,6 +295,14 @@
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
+
.textAlignCenterKicker {
|
|
299
|
+
text-align: center;
|
|
300
|
+
|
|
301
|
+
@media (max-width: 960px) {
|
|
302
|
+
text-align: left;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
298
306
|
.whiteTextBlackBg {
|
|
299
307
|
color: @white;
|
|
300
308
|
background-color: rgba(0, 0, 0, 0.54);
|
|
@@ -522,4 +530,19 @@
|
|
|
522
530
|
min-height: unset;
|
|
523
531
|
min-width: unset;
|
|
524
532
|
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.kicker {
|
|
536
|
+
margin: 0;
|
|
537
|
+
margin-bottom: calc(-1*1rem);
|
|
538
|
+
padding: 0;
|
|
539
|
+
|
|
540
|
+
@media (max-width: 960px) {
|
|
541
|
+
padding: 0 @s16;
|
|
542
|
+
margin-top: @s8;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.kickerSmallVisual {
|
|
547
|
+
margin-top: 0.5rem;
|
|
525
548
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
height: calc(var(--img-bottom-padding-fraction)*var(--small-visual-max-width));
|
|
81
81
|
max-width: var(--small-visual-max-width);
|
|
82
82
|
width: calc(100vw - 32px);
|
|
83
|
-
margin:
|
|
83
|
+
margin: auto;
|
|
84
84
|
|
|
85
85
|
@media @mobile {
|
|
86
86
|
max-height: calc(var(--img-bottom-padding-fraction)*var(--small-visual-max-width));
|