sfc-utils 1.4.19 → 1.4.21
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
|
@@ -116,7 +116,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
116
116
|
defaultStyles = ["left"];
|
|
117
117
|
break;
|
|
118
118
|
case "full-screen":
|
|
119
|
-
defaultStyles = [topperStyles.hedFullScreen, fullScreenTextAlignCss()];
|
|
119
|
+
defaultStyles = [topperStyles.hedFullScreen, fullScreenTextAlignCss(), textDecorationCss()];
|
|
120
120
|
break;
|
|
121
121
|
case "side-by-side":
|
|
122
122
|
case "side-by-side-portrait":
|
|
@@ -141,7 +141,7 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
141
141
|
case "no-visual":
|
|
142
142
|
return ["deck left"];
|
|
143
143
|
case "full-screen":
|
|
144
|
-
return ["deck", topperStyles.deckFullScreen, fullScreenTextAlignCss()];
|
|
144
|
+
return ["deck", topperStyles.deckFullScreen, fullScreenTextAlignCss(), textDecorationCss()];
|
|
145
145
|
case "side-by-side":
|
|
146
146
|
case "side-by-side-portrait":
|
|
147
147
|
return ["deck left"];
|
|
@@ -159,6 +159,10 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
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
|
+
}
|
|
162
166
|
/** Add styling for text color on topper slideshow captions. Note that the credits
|
|
163
167
|
* are grey when the caption is black and white when the captions are white. */
|
|
164
168
|
const sideBySideCapCredColorCss = () => {
|
|
@@ -198,6 +202,8 @@ const Topper2 = ({ settings, wcmData, mods }) => {
|
|
|
198
202
|
|
|
199
203
|
/** Converts string from spreadsheet into a list and pads the list if the length is incorrect */
|
|
200
204
|
const convertStringToList = (str, size) => {
|
|
205
|
+
if (!str.includes(";")) return [];
|
|
206
|
+
|
|
201
207
|
var list = str.split(";");
|
|
202
208
|
if (list.length === size) return list;
|
|
203
209
|
|
package/package.json
CHANGED