Skip to content

Commit 695a9c3

Browse files
committed
Reduce body card elevation to match UI & prevent shadow cut off
1 parent 46d7b6e commit 695a9c3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/core/email/templates/base.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@ export const EmailTemplate = ({
5151
<Style
5252
inline
5353
children={`
54+
.body {
55+
/* prevents card shadow being cut off */
56+
padding: 8px;
57+
/* add more just to look more symmetrical with branding header */
58+
padding-bottom: 48px;
59+
}
5460
.card-shadow {
55-
-webkit-box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
56-
-moz-box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
57-
box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12);
61+
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
62+
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
63+
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
5864
}
5965
.button-shadow td {
6066
-webkit-box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
@@ -83,7 +89,7 @@ export const Theme = () => (
8389
<Font name="sofia-pro" href="https://use.typekit.net/qrd6jxb.css" />
8490
<Attributes>
8591
<All fontFamily="sofia-pro, sans-serif" fontSize="16px" />
86-
<Body width={600} backgroundColor="#fafafa">
92+
<Body width={600} backgroundColor="#fafafa" cssClass="body">
8793
{[]}
8894
</Body>
8995
<Section backgroundColor="#ffffff">{}</Section>

0 commit comments

Comments
 (0)