Remove unnecessary CSS code for global padding
The top and bottom padding seems to be generated properly on the client side. [MAILPOET-6249]
This commit is contained in:
committed by
Jan Lysý
parent
7b6bf1f4b4
commit
1c2078d698
@@ -55,17 +55,8 @@ class SettingsController {
|
||||
$settings['allowedBlockTypes'] = self::ALLOWED_BLOCK_TYPES;
|
||||
// Assets for iframe editor (component styles, scripts, etc.)
|
||||
$settings['__unstableResolvedAssets'] = $this->iframeAssets;
|
||||
|
||||
// Custom editor content styles
|
||||
// body selector is later transformed to .editor-styles-wrapper
|
||||
// setting padding for bottom and top is needed because \WP_Theme_JSON::get_stylesheet() set them only for .wp-site-blocks selector
|
||||
$contentVariables = 'body {';
|
||||
$contentVariables .= 'padding-bottom: var(--wp--style--root--padding-bottom);';
|
||||
$contentVariables .= 'padding-top: var(--wp--style--root--padding-top);';
|
||||
$contentVariables .= '}';
|
||||
$flexEmailLayoutStyles = file_get_contents(__DIR__ . '/flex-email-layout.css');
|
||||
$settings['styles'] = [
|
||||
['css' => $contentVariables],
|
||||
['css' => $flexEmailLayoutStyles],
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user