Selaa lähdekoodia

Merge pull request #1692 from Automattic/add/varia-fse-block-margins

Varia: Update margins to match in template editor view and main page view
Andy Peatling 5 vuotta sitten
vanhempi
commit
20a5a9ed48
2 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 7 0
      varia/sass/full-site-editing/_editor.scss
  2. 5 1
      varia/style-editor.css

+ 7 - 0
varia/sass/full-site-editing/_editor.scss

@@ -5,6 +5,13 @@
 			margin-right: 0;
 			margin-right: 0;
 		}
 		}
 	}
 	}
+
+	// Match margins for template parts rendered in the page and template part editor view.
+	.block-editor-block-list__block-edit {
+		[data-block] {
+			margin: 12px 0 0 0;
+		}
+	}
 }
 }
 
 
 .template-block {
 .template-block {

+ 5 - 1
varia/style-editor.css

@@ -1020,6 +1020,10 @@ table th,
 	}
 	}
 }
 }
 
 
+.a8c-template-editor .block-editor-block-list__block-edit [data-block] {
+	margin: 12px 0 0 0;
+}
+
 .template-block .fse-template-part {
 .template-block .fse-template-part {
 	padding: 16px;
 	padding: 16px;
 }
 }
@@ -1038,7 +1042,7 @@ table th,
 	display: none;
 	display: none;
 }
 }
 
 
-.template-block .fse-template-part .wp-block-column .block-editor-block-list__layout [data-type='a8c/site-title']:first-child .site-title:not([data-align='full']) {
+.template-block .fse-template-part .wp-block-column .block-editor-block-list__layout [data-type='a8c/site-title']:first-child .site-title {
 	margin-top: 0;
 	margin-top: 0;
 }
 }