_editor.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .wp-block-cover,
  2. .wp-block-cover-image {
  3. background-color: #{map-deep-get($config-cover, "color", "background")};
  4. color: #{map-deep-get($config-cover, "color", "foreground")};
  5. min-height: #{map-deep-get($config-cover, "height")};
  6. margin-top: inherit;
  7. margin-bottom: inherit;
  8. &.has-background-dim {
  9. background-color: #{map-deep-get($config-cover, "color", "background")};
  10. color: #{map-deep-get($config-cover, "color", "foreground")};
  11. }
  12. .wp-block-cover-image-text,
  13. .wp-block-cover-text,
  14. .block-editor-block-list__block {
  15. color: currentColor;
  16. }
  17. /* Treating H2 separately to account for legacy /core styles */
  18. h2 {
  19. font-size: (strip-unit(map-deep-get($config-heading, "font", "size", "h2")) + 0);
  20. letter-spacing: #{map-deep-get($config-heading, "font", "letter-spacing", "h2")};
  21. line-height: #{map-deep-get($config-heading, "font", "line-height", "h2")};
  22. padding: 0;
  23. max-width: inherit; // undo opinionated styles
  24. text-align: inherit;
  25. &.has-text-align-left {
  26. text-align: left;
  27. }
  28. &.has-text-align-center {
  29. text-align: center;
  30. }
  31. &.has-text-align-right {
  32. text-align: right;
  33. }
  34. }
  35. }