_base.scss 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Links styles
  2. a {
  3. color: var(--wp--style--color--link, var(--global--color-primary));
  4. text-decoration-color: var(--global--color-secondary);
  5. text-decoration-line: underline;
  6. text-decoration-thickness: 1px;
  7. text-underline-offset: 0.3em;
  8. transition: text-decoration 0.1s ease-out;
  9. &:hover,
  10. &:focus {
  11. text-decoration: none;
  12. }
  13. &:hover {
  14. color: var(--global--color-primary-hover);
  15. }
  16. &:focus {
  17. color: var(--global--color-secondary);
  18. }
  19. &:active {
  20. color: var(--wp--style--color--link, var(--global--color-primary));
  21. }
  22. // If a custom link color has been assigned,
  23. // switch the color of the bottom border too.
  24. .has-link-color & {
  25. text-decoration-color: var(--wp--style--color--link, var(--global--color-primary));
  26. &:hover,
  27. &:focus {
  28. text-decoration: none;
  29. }
  30. }
  31. .has-primary-background-color &:not(.has-link-color):not(.has-text-color) {
  32. color: var(--global--color-background);
  33. }
  34. }
  35. button,
  36. a {
  37. cursor: pointer;
  38. }