sfc-utils 1.4.18 → 1.4.20
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/topper2.mjs
CHANGED
|
@@ -48,8 +48,8 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
48
48
|
fullScreenVerticalCss(),
|
|
49
49
|
// Add style override for center-center position (if applicable)
|
|
50
50
|
fullScreenCenterCenterCss(),
|
|
51
|
-
// Add styling for header-deck container background
|
|
52
|
-
|
|
51
|
+
// Add styling for header-deck container text and background color
|
|
52
|
+
fullScreenHedDekContainerCss()
|
|
53
53
|
];
|
|
54
54
|
case "side-by-side":
|
|
55
55
|
return [
|
|
@@ -87,6 +87,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
/** get additional positioning css for full screen center-center header-deck container **/
|
|
90
91
|
const fullScreenCenterCenterCss = () => {
|
|
91
92
|
return (
|
|
92
93
|
HeaderDek_Horizontal_Position === "center" &&
|
|
@@ -94,6 +95,16 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
94
95
|
) ? topperStyles.headerDekCenterCenter : "";
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
/** get css for full screen header-deck container text and background color **/
|
|
99
|
+
const fullScreenHedDekContainerCss = () => {
|
|
100
|
+
switch (Inverted_Colors) {
|
|
101
|
+
case "black-text-white-bg": return topperStyles.blackTextWhiteBg;
|
|
102
|
+
case "white-text-black-bg": return topperStyles.whiteTextBlackBg;
|
|
103
|
+
case "black-text-no-bg": return topperStyles.blackTextNoBg;
|
|
104
|
+
case "white-text-no-bg": return topperStyles.whiteTextNoBg;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
97
108
|
const headerStyleList = () => {
|
|
98
109
|
let defaultStyles = [];
|
|
99
110
|
switch (Topper_Style) {
|
|
@@ -105,7 +116,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
105
116
|
defaultStyles = ["left"];
|
|
106
117
|
break;
|
|
107
118
|
case "full-screen":
|
|
108
|
-
defaultStyles = [topperStyles.hedFullScreen, fullScreenTextAlignCss()];
|
|
119
|
+
defaultStyles = [topperStyles.hedFullScreen, fullScreenTextAlignCss(), textDecorationCss()];
|
|
109
120
|
break;
|
|
110
121
|
case "side-by-side":
|
|
111
122
|
case "side-by-side-portrait":
|
|
@@ -130,7 +141,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
130
141
|
case "no-visual":
|
|
131
142
|
return ["deck left"];
|
|
132
143
|
case "full-screen":
|
|
133
|
-
return ["deck", topperStyles.deckFullScreen, fullScreenTextAlignCss()];
|
|
144
|
+
return ["deck", topperStyles.deckFullScreen, fullScreenTextAlignCss(), textDecorationCss()];
|
|
134
145
|
case "side-by-side":
|
|
135
146
|
case "side-by-side-portrait":
|
|
136
147
|
return ["deck left"];
|
|
@@ -148,6 +159,10 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
148
159
|
}
|
|
149
160
|
}
|
|
150
161
|
|
|
162
|
+
/** Add styling for drop shadow on white text for full-screen toppers */
|
|
163
|
+
const textDecorationCss = () => {
|
|
164
|
+
return (Inverted_Colors === "white-text-no-bg") ? topperStyles.dropshadow : "";
|
|
165
|
+
}
|
|
151
166
|
/** Add styling for text color on topper slideshow captions. Note that the credits
|
|
152
167
|
* are grey when the caption is black and white when the captions are white. */
|
|
153
168
|
const sideBySideCapCredColorCss = () => {
|
package/package.json
CHANGED
|
@@ -301,6 +301,22 @@
|
|
|
301
301
|
background-color: rgba(255, 255, 255, 0.54);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
.blackTextNoBg {
|
|
305
|
+
color: @black;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.whiteTextNoBg {
|
|
309
|
+
color: @white;
|
|
310
|
+
|
|
311
|
+
@media @tablet {
|
|
312
|
+
color: @black;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.dropshadow {
|
|
317
|
+
text-shadow: 1px 1px 10px rgba(0, 0, 0, .4)
|
|
318
|
+
}
|
|
319
|
+
|
|
304
320
|
.hideWhenTablet {
|
|
305
321
|
@media @tablet {
|
|
306
322
|
display: none;
|