tablesort.css

The actual sort link.

File

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

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * The actual sort link.
  10. */
  11. .sortable-heading {
  12. padding: 0 var(--space-m);
  13. & > a {
  14. display: block;
  15. padding-block: var(--space-xs);
  16. padding-inline: 0 1.5rem;
  17. -webkit-text-decoration: none;
  18. text-decoration: none;
  19. color: inherit;
  20. &:focus,
  21. &:hover {
  22. -webkit-text-decoration: none;
  23. text-decoration: none;
  24. &::before {
  25. border-color: inherit;
  26. }
  27. &::after {
  28. opacity: 1;
  29. }
  30. }
  31. &::before {
  32. position: absolute;
  33. z-index: 0;
  34. inset-block-start: 0;
  35. inset-inline-end: 1rem;
  36. inset-block-end: 0;
  37. inset-inline-start: 1rem;
  38. display: block;
  39. content: "";
  40. border-bottom: 0.125rem solid transparent;
  41. }
  42. &::after {
  43. position: absolute;
  44. inset-block-start: 50%;
  45. inset-inline-end: 1rem;
  46. width: 0.875rem;
  47. height: 1rem;
  48. margin-block-start: -0.5rem;
  49. content: "";
  50. opacity: 0.5;
  51. background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
  52. background-size: contain;
  53. [dir="rtl"]
  54. }
  55. @media (forced-colors: active) {
  56. opacity: 1;
  57. background: linktext;
  58. mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23000f33'/%3e%3c/svg%3e") no-repeat 50% 50%;
  59. }
  60. }
  61. }
  62. &.is-active > a {
  63. color: var(--color-absolutezero);
  64. &::before {
  65. border-bottom: 0.1875rem solid var(--color-absolutezero);
  66. }
  67. &::after {
  68. content: none;
  69. }
  70. }
  71. }

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