_style.scss 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .wp-block-columns {
  2. .wp-block-column {
  3. & > * {
  4. margin-top: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  5. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  6. @include media(mobile) {
  7. margin-top: map-deep-get($config-global, "spacing", "vertical");
  8. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  9. }
  10. &:first-child {
  11. margin-top: 0;
  12. }
  13. &:last-child {
  14. margin-bottom: 0;
  15. }
  16. }
  17. &:last-child {
  18. margin-bottom: 0;
  19. }
  20. }
  21. .wp-block-column:not(:last-child) {
  22. margin-bottom: #{ 0.666 * map-deep-get($config-global, "spacing", "vertical") };
  23. @include media(mobile) {
  24. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  25. }
  26. @include media(laptop) {
  27. /* Resetting margins to match _block-container.scss */
  28. margin-bottom: 0;
  29. }
  30. }
  31. /**
  32. * Block Options
  33. */
  34. &.alignfull {
  35. padding-left: #{map-deep-get($config-global, "spacing", "horizontal")};
  36. padding-right: #{map-deep-get($config-global, "spacing", "horizontal")};
  37. &:not(:first-child) {
  38. margin-top: map-deep-get($config-global, "spacing", "vertical");
  39. }
  40. &:not(:last-child) {
  41. margin-bottom: map-deep-get($config-global, "spacing", "vertical");
  42. }
  43. }
  44. }