_utility.scss 575 B

12345678910111213141516171819
  1. //Utility classes for Block styles/Patterns:
  2. //Apply to Image block when we don't want margin bottom before caption
  3. .image-no-margin {
  4. margin: 0;
  5. & * { //Removes any whitespace created by child elements (a div on the editor, and an image or link on the frontend)
  6. vertical-align: bottom;
  7. }
  8. }
  9. //Removes padding on Column block when it has a background color
  10. .has-background-no-padding.wp-block-columns.has-background {
  11. padding: 0;
  12. }
  13. // For when we do not want the vertical block gap. Needed until we have per-block margin controls.
  14. .mt-0 {
  15. margin-top: 0 !important;
  16. }