Browse Source

Restructure the margin/width reset selector (#2358)

Jacopo Tomasone 4 years ago
parent
commit
e1798610fa

+ 1 - 1
seedlet/assets/css/style-editor.css

@@ -768,7 +768,7 @@ div[data-type="core/button"] {
 	padding: var(--global--spacing-vertical);
 	padding: var(--global--spacing-vertical);
 }
 }
 
 
-.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align=full] {
+.wp-block-group .wp-block-group.has-background > .block-editor-block-list__layout > [data-align="full"] {
 	margin: 0;
 	margin: 0;
 	width: 100%;
 	width: 100%;
 }
 }

+ 2 - 2
seedlet/assets/sass/blocks/group/_editor.scss

@@ -4,7 +4,7 @@
 	}
 	}
 }
 }
 
 
-.wp-block[data-type="core/group"] > .editor-block-list__block-edit > div > .wp-block-group.has-background > .wp-block-group__inner-container > .editor-inner-blocks > .editor-block-list__layout > .wp-block[data-align=full] {
+.wp-block-group .wp-block-group.has-background > .block-editor-block-list__layout > [data-align="full"] {
 	margin: 0;
 	margin: 0;
 	width: 100%;
 	width: 100%;
-}
+}