Bläddra i källkod

Remove generic has-background padding. (#4743)

Jeff Ong 3 år sedan
förälder
incheckning
c7291cd78d
2 ändrade filer med 1 tillägg och 20 borttagningar
  1. 0 8
      blockbase/assets/ponyfill.css
  2. 1 12
      blockbase/sass/base/_utility.scss

+ 0 - 8
blockbase/assets/ponyfill.css

@@ -244,14 +244,6 @@ p {
 	padding: 0;
 	padding: 0;
 }
 }
 
 
-.has-background:not(.wp-block-separator) {
-	padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
-}
-
-.has-background :last-child {
-	margin-bottom: 0;
-}
-
 /**
 /**
  * Elements
  * Elements
  * - Styles for basic HTML elemants
  * - Styles for basic HTML elemants

+ 1 - 12
blockbase/sass/base/_utility.scss

@@ -11,15 +11,4 @@
 //Removes padding on Column block when it has a background color
 //Removes padding on Column block when it has a background color
 .has-background-no-padding.wp-block-columns.has-background {
 .has-background-no-padding.wp-block-columns.has-background {
 	padding: 0;
 	padding: 0;
-}
-
-// Needed until we have a solution for https://github.com/WordPress/gutenberg/issues/34588.
-.has-background {
-	&:not(.wp-block-separator){
-		padding: var(--wp--custom--gap--vertical) var(--wp--custom--gap--horizontal);
-	}
-
-	:last-child {
-		margin-bottom: 0;
-	}
-}
+}