_style.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * This is a refactored style sheet
  3. * Currently it is being loaded within ponyfill
  4. * As ponyfill gets refactored, add the necessary styles here.
  5. */
  6. /*
  7. * Button hover styles.
  8. * Necessary until the following issue is resolved in Gutenberg:
  9. * https://github.com/WordPress/gutenberg/issues/27075
  10. */
  11. :is(
  12. .wp-block-search__button,
  13. .wp-block-button__link
  14. ):is(
  15. :hover,
  16. :active,
  17. :focus
  18. ) {
  19. text-decoration: none;
  20. cursor: pointer;
  21. color: var(--wp--custom--button--hover--color--text);
  22. background-color: var(--wp--custom--button--hover--color--background);
  23. border-color: var(--wp--custom--button--hover--border--color);
  24. }
  25. :is(
  26. .wp-block-search__button,
  27. .wp-block-button__link
  28. ):focus {
  29. outline: 1.5px dotted var(--wp--preset--color--foreground);
  30. outline-offset: 3px;
  31. }
  32. :is(
  33. .is-style-outline.wp-block-button,
  34. .is-style-outline.wp-block-button__link
  35. ) {
  36. color: var(--wp--custom--button--outline--color--text, var(--wp--custom--button--border--color) );
  37. }
  38. :is(
  39. .is-style-outline>.wp-block-button__link,
  40. .is-style-outline.wp-block-button__link
  41. ):not(.has-background):hover {
  42. color: var(--wp--custom--button--outline--hover--color--text, var(--wp--custom--button--color--text));
  43. background-color: var(--wp--custom--button--outline--hover--color--background, var(--wp--custom--button--color--background));
  44. }