diff --git a/includes/class-newspack-newsletters-renderer.php b/includes/class-newspack-newsletters-renderer.php index fe6745847..d5949704e 100644 --- a/includes/class-newspack-newsletters-renderer.php +++ b/includes/class-newspack-newsletters-renderer.php @@ -152,6 +152,11 @@ function ( $key ) use ( &$attrs ) { $attrs['full-width'] = 'full-width'; unset( $attrs['align'] ); } + + if ( isset( $attrs['full-width'] ) && 'full-width' == $attrs['full-width'] && isset( $attrs['background-color'] ) ) { + $attrs['padding'] = '20px 0'; + } + return $attrs; } @@ -190,7 +195,7 @@ private static function render_mjml_component( $block, $is_in_column = false, $i // Default attributes for the column which will envelop the component. $column_attrs = array_merge( array( - 'padding' => '16px', + 'padding' => '20px', ) ); @@ -298,6 +303,8 @@ private static function render_mjml_component( $block, $is_in_column = false, $i $default_button_attrs = array( 'padding' => '0', + 'inner-padding' => '12px 24px', + 'line-height' => '1.8', 'href' => $anchor->getAttribute( 'href' ), 'border-radius' => $border_radius . 'px', 'font-size' => '18px', diff --git a/includes/email-template.mjml.php b/includes/email-template.mjml.php index 56123eef5..b498a01b0 100644 --- a/includes/email-template.mjml.php +++ b/includes/email-template.mjml.php @@ -78,7 +78,12 @@ /* Has Background */ .mj-column-has-width .has-background, .mj-column-per-50 .has-background { - padding: 16px; + padding: 20px; + } + + /* Mailchimp Footer */ + #canspamBarWrapper { + border: 0 !important; } diff --git a/src/components/template-modal/screens/template-picker/index.js b/src/components/template-modal/screens/template-picker/index.js index 6a978c8c8..2c975b724 100644 --- a/src/components/template-modal/screens/template-picker/index.js +++ b/src/components/template-modal/screens/template-picker/index.js @@ -50,7 +50,7 @@ export default ( { onInsertTemplate, templates } ) => {
{ title }
@@ -62,7 +62,7 @@ export default ( { onInsertTemplate, templates } ) => {
{ blockPreview && blockPreview.length > 0 ? ( - + ) : (

{ __( 'Select a layout to preview.', 'newspack-newsletters' ) }

) } diff --git a/src/components/template-modal/style.scss b/src/components/template-modal/style.scss index e707b8bc2..37dd03476 100644 --- a/src/components/template-modal/style.scss +++ b/src/components/template-modal/style.scss @@ -246,7 +246,7 @@ &__container { align-self: flex-start; margin: 0 auto; - max-width: 568px; + max-width: 560px; } } } diff --git a/src/editor/blocks/posts-inserter/index.js b/src/editor/blocks/posts-inserter/index.js index 03b13f4d1..1f716f501 100644 --- a/src/editor/blocks/posts-inserter/index.js +++ b/src/editor/blocks/posts-inserter/index.js @@ -123,7 +123,7 @@ const PostsInserterBlock = ( { { __( 'Posts Inserter', 'newspack-newsletters' ) }
- +