_editor.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @import '../structure/responsive-logic';
  2. body {
  3. --wp--typography--line-height: var(--global--line-height-body);
  4. color: var(--global--color-foreground);
  5. background-color: var(--global--color-background);
  6. font-family: var(--global--font-secondary);
  7. font-size: var(--global--font-size-root);
  8. font-weight: normal;
  9. -moz-osx-font-smoothing: grayscale;
  10. -webkit-font-smoothing: antialiased;
  11. }
  12. // Set font size of title block the same as body.
  13. .editor-post-title__block {
  14. font-size: var(--global--font-size-root);
  15. }
  16. // Links styles
  17. .wp-block a {
  18. border-bottom: 1px solid var(--global--color-secondary);
  19. color: var( --wp--style--color--link, var(--global--color-primary) );
  20. text-decoration: none;
  21. &:hover,
  22. &:focus {
  23. color: var(--global--color-primary-hover);
  24. }
  25. &:active {
  26. color: var( --wp--style--color--link, var(--global--color-primary) );
  27. }
  28. // If a custom link color has been assigned,
  29. // switch the color of the bottom border too.
  30. .has-link-color & {
  31. border-bottom: 1px solid var(--wp--style--color--link);
  32. }
  33. }
  34. // Enforce the custom link color even if a custom background color has been set.
  35. // The extra specificity here is required to override the background color styles.
  36. .has-background:not(.has-background-background-color) {
  37. // Target both current level and nested block.
  38. .has-link-color a,
  39. &.has-link-color a {
  40. color: var( --wp--style--color--link, var(--global--color-primary) );
  41. }
  42. }
  43. button,
  44. a {
  45. cursor: pointer;
  46. }