Merge pull request #22309 from cynepkot/master

Update to email-styles.php to fix the iOS email app layout issue
This commit is contained in:
Mike Jolley 2019-01-21 16:10:56 +00:00 committed by GitHub
commit 6534653f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -40,7 +40,12 @@ $base_lighter_40 = wc_hex_lighter( $base, 40 );
$text_lighter_20 = wc_hex_lighter( $text, 20 );
// !important; is a gmail hack to prevent styles being stripped if it doesn't like something.
// body{padding: 0;} ensures proper scale/positioning of the email in the iOS native email app.
?>
body {
padding: 0;
}
#wrapper {
background-color: <?php echo esc_attr( $bg ); ?>;
margin: 0;