_utility.scss 724 B

1234567891011121314151617181920212223242526
  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. }
  17. // Provided to allow a group to prevent the standard gap from being used between elements
  18. .gapless-group {
  19. > * {
  20. margin-top: 0 !important;
  21. }
  22. }