tablesort.pcss.css

The actual sort link.

File

core/themes/claro/css/components/tablesort.pcss.css

View source
  1. /**
  2. * @file
  3. * The actual sort link.
  4. */
  5. .sortable-heading {
  6. padding: 0 var(--space-m);
  7. & > a {
  8. display: block;
  9. padding-block: var(--space-xs);
  10. padding-inline: 0 1.5rem;
  11. text-decoration: none;
  12. color: inherit;
  13. &:focus,
  14. &:hover {
  15. text-decoration: none;
  16. &::before {
  17. border-color: inherit;
  18. }
  19. &::after {
  20. opacity: 1;
  21. }
  22. }
  23. &::before {
  24. position: absolute;
  25. z-index: 0;
  26. inset-block-start: 0;
  27. inset-inline-end: 1rem;
  28. inset-block-end: 0;
  29. inset-inline-start: 1rem;
  30. display: block;
  31. content: "";
  32. border-bottom: 0.125rem solid transparent;
  33. }
  34. &::after {
  35. position: absolute;
  36. inset-block-start: 50%;
  37. inset-inline-end: 1rem;
  38. width: 0.875rem;
  39. height: 1rem;
  40. margin-block-start: -0.5rem;
  41. content: "";
  42. opacity: 0.5;
  43. background: url(../../images/icons/000f33/sort--inactive.svg) no-repeat 50% 50%;
  44. background-size: contain;
  45. [dir="rtl"]
  46. }
  47. @media (forced-colors: active) {
  48. opacity: 1;
  49. background: linktext;
  50. mask: url(../../images/icons/000f33/sort--inactive.svg) no-repeat 50% 50%;
  51. }
  52. }
  53. }
  54. &.is-active > a {
  55. color: var(--color-absolutezero);
  56. &::before {
  57. border-bottom: 0.1875rem solid var(--color-absolutezero);
  58. }
  59. &::after {
  60. content: none;
  61. }
  62. }
  63. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.