فهرست منبع

Update varia to limit the margins on child blocks inside columns in template parts

apeatling 5 سال پیش
والد
کامیت
8c7cb932ec
4فایلهای تغییر یافته به همراه23 افزوده شده و 1 حذف شده
  1. 7 0
      varia/sass/full-site-editing/_editor.scss
  2. 8 1
      varia/sass/full-site-editing/_imports.scss
  3. 4 0
      varia/style-editor.css
  4. 4 0
      varia/style.css

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

@@ -57,6 +57,13 @@
 		width: 100%;
 		width: 100%;
 	}
 	}
 
 
+	// Remove large margins on column children when used in a template part.
+	.wp-block-columns .wp-block-column {
+		& > * {
+			margin: 0 0 5px 0;
+		}
+	}
+
 	@import '../components/header/site-main-navigation';
 	@import '../components/header/site-main-navigation';
 
 
 	.main-navigation {
 	.main-navigation {

+ 8 - 1
varia/sass/full-site-editing/_imports.scss

@@ -30,6 +30,13 @@
 			vertical-align: middle;
 			vertical-align: middle;
 		}
 		}
 	}
 	}
+
+	// Remove large margins on column children when used in a template part.
+	.wp-block-columns .wp-block-column {
+		& > * {
+			margin: 0 0 5px 0;
+		}
+	}
 }
 }
 
 
 .fse-header > *:first-child:not(.alignfull) {
 .fse-header > *:first-child:not(.alignfull) {
@@ -42,7 +49,7 @@
 
 
 .fse-footer {
 .fse-footer {
 	display: block;
 	display: block;
-	
+
 	.site-info {
 	.site-info {
 		margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
 		margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
 		margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
 		margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };

+ 4 - 0
varia/style-editor.css

@@ -1062,6 +1062,10 @@ table th,
 	width: 100%;
 	width: 100%;
 }
 }
 
 
+.fse-template-part .wp-block-columns .wp-block-column > * {
+	margin: 0 0 5px 0;
+}
+
 .fse-template-part .main-navigation {
 .fse-template-part .main-navigation {
 	color: #444444;
 	color: #444444;
 }
 }

+ 4 - 0
varia/style.css

@@ -3767,6 +3767,10 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
 	vertical-align: middle;
 	vertical-align: middle;
 }
 }
 
 
+.fse-template-part .wp-block-columns .wp-block-column > * {
+	margin: 0 0 5px 0;
+}
+
 .fse-header > *:first-child:not(.alignfull) {
 .fse-header > *:first-child:not(.alignfull) {
 	margin-top: 21.312px;
 	margin-top: 21.312px;
 }
 }