_editor.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .wp-block-latest-posts {
  2. padding-left: 0;
  3. & > li > a {
  4. @include font-family( map-deep-get($config-heading, "font", "family") );
  5. font-size: #{map-deep-get($config-heading, "font", "size", "h4")};
  6. font-weight: #{map-deep-get($config-heading, "font", "weight")};
  7. line-height: #{map-deep-get($config-heading, "font", "line-height", "h4")};
  8. }
  9. &:not(.is-grid) > li {
  10. /* Vertical margins logic */
  11. margin-top: #{map-deep-get($config-global, "spacing", "vertical")};
  12. margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
  13. &:first-child {
  14. margin-top: 0;
  15. }
  16. &:last-child {
  17. margin-bottom: 0;
  18. }
  19. }
  20. .wp-block-latest-posts__post-date {
  21. color: #{map-deep-get($config-global, "color", "foreground", "light")};
  22. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  23. line-height: #{map-deep-get($config-global, "font", "line-height", "body")};
  24. [class*="inner-container"] &,
  25. .has-background & {
  26. color: currentColor;
  27. }
  28. }
  29. .wp-block-latest-posts__post-excerpt,
  30. .wp-block-latest-posts__post-full-content {
  31. font-size: #{map-deep-get($config-global, "font", "size", "sm")};
  32. line-height: #{map-deep-get($config-global, "font", "line-height", "body")};
  33. margin: 0;
  34. }
  35. }