Jelajahi Sumber

Fix group block padding when alignwide in varia

In the same way that the COLUMNS block is already adding padding when
configured as alignwide the GROUP block is now doing the same.
Jason Crist 4 tahun lalu
induk
melakukan
33543a778a
3 mengubah file dengan 16 tambahan dan 0 penghapusan
  1. 6 0
      varia/sass/blocks/group/_style.scss
  2. 5 0
      varia/style-rtl.css
  3. 5 0
      varia/style.css

+ 6 - 0
varia/sass/blocks/group/_style.scss

@@ -30,4 +30,10 @@
 			padding: #{map-deep-get($config-global, "spacing", "vertical")};
 		}
 	}
+
+	&.alignfull {
+		padding-left: #{map-deep-get($config-global, "spacing", "horizontal")};
+		padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
+	}
+
 }

+ 5 - 0
varia/style-rtl.css

@@ -1740,6 +1740,11 @@ button[data-load-more-btn], .button {
 	}
 }
 
+.wp-block-group.alignfull {
+	padding-right: 16px;
+	padding-left: 16px;
+}
+
 h1, .h1,
 h2, .h2,
 h3, .h3,

+ 5 - 0
varia/style.css

@@ -1740,6 +1740,11 @@ button[data-load-more-btn], .button {
 	}
 }
 
+.wp-block-group.alignfull {
+	padding-left: 16px;
+	padding-right: 16px;
+}
+
 h1, .h1,
 h2, .h2,
 h3, .h3,