浏览代码

Merge pull request #3017 from Automattic/try/seedlet-more-specific-spacing-overrides

Try: Make spacing overrides more specific in Seedlet
Ben Dwyer 4 年之前
父节点
当前提交
17c04ef5e0
共有 2 个文件被更改,包括 0 次插入17 次删除
  1. 0 8
      seedlet/assets/css/style-editor.css
  2. 0 9
      seedlet/assets/sass/blocks/utilities/_editor.scss

+ 0 - 8
seedlet/assets/css/style-editor.css

@@ -1506,14 +1506,6 @@ pre.wp-block-verse {
 	margin-bottom: var(--global--spacing-vertical);
 }
 
-[data-block] [data-block]:first-child {
-	margin-top: 0;
-}
-
-[data-block] [data-block]:nth-last-child(2) {
-	margin-bottom: 0;
-}
-
 /*
  * Custom gradients
 */

+ 0 - 9
seedlet/assets/sass/blocks/utilities/_editor.scss

@@ -149,15 +149,6 @@
 [data-block] {
 	margin-top: var(--global--spacing-vertical);
 	margin-bottom: var(--global--spacing-vertical);
-
-	[data-block]:first-child {
-		margin-top: 0;
-	}
-
-	// Needs to be the second-last child to avoid applying this to the appender.
-	[data-block]:nth-last-child(2) {
-		margin-bottom: 0;
-	}
 }
 
 /*