Browse Source

Add a utility class to remove margin top. (#4742)

Jeff Ong 3 years ago
parent
commit
2967740651
2 changed files with 9 additions and 0 deletions
  1. 4 0
      blockbase/assets/ponyfill.css
  2. 5 0
      blockbase/sass/base/_utility.scss

+ 4 - 0
blockbase/assets/ponyfill.css

@@ -244,6 +244,10 @@ p {
 	padding: 0;
 	padding: 0;
 }
 }
 
 
+.mt-0 {
+	margin-top: 0 !important;
+}
+
 /**
 /**
  * Elements
  * Elements
  * - Styles for basic HTML elemants
  * - Styles for basic HTML elemants

+ 5 - 0
blockbase/sass/base/_utility.scss

@@ -11,4 +11,9 @@
 //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;
+}
+
+// For when we do not want the vertical block gap. Needed until we have per-block margin controls.
+.mt-0 {
+	margin-top: 0 !important;
 }
 }