_links.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. a {
  2. @include text-decoration;
  3. }
  4. .wp-block-post-content p a:not(.wp-block-post-excerpt__more-link) {
  5. text-decoration-line: underline;
  6. &:hover {
  7. text-decoration: none;
  8. background-color: var(--wp--custom--color--primary);
  9. color: var(--wp--custom--color--background);
  10. }
  11. }
  12. .wp-block-post-comments .comment-meta > a,
  13. .wp-block-post-comments .comment-body > p > a,
  14. .wp-block-post-comments .comment-edit-link,
  15. .post-meta a {
  16. text-decoration-line: underline;
  17. &:hover {
  18. text-decoration-line: none;
  19. }
  20. }
  21. //Exceptions for the general underline rule
  22. h1 a,
  23. h2 a,
  24. h3 a,
  25. h4 a,
  26. h5 a,
  27. h6 a,
  28. .wp-block-site-title a,
  29. .wp-block-post-title a{
  30. text-underline-offset: 0.1ex;
  31. }
  32. .wp-block-site-title a,
  33. .wp-block-post-title a,
  34. .wp-block-query-pagination a {
  35. text-decoration-line: none;
  36. &:hover {
  37. text-decoration-line: underline;
  38. }
  39. }
  40. // Select the focus states of all non-wpadmin and screen reader links
  41. .wp-block-search__button,
  42. a:not(.ab-item):not(.screen-reader-shortcut) {
  43. &:active,
  44. &:focus {
  45. outline: 1px dotted var(--wp--custom--color--primary);
  46. outline-offset: 0.1em;
  47. text-decoration: none;
  48. }
  49. }