sfc-utils 1.4.19 → 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.
@@ -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 = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -313,6 +313,10 @@
313
313
  }
314
314
  }
315
315
 
316
+ .dropshadow {
317
+ text-shadow: 1px 1px 10px rgba(0, 0, 0, .4)
318
+ }
319
+
316
320
  .hideWhenTablet {
317
321
  @media @tablet {
318
322
  display: none;