tablesort-indicator.pcss.css

Same filename in other branches
  1. 9 core/themes/claro/css/components/tablesort-indicator.pcss.css
  2. 10 core/themes/claro/css/components/tablesort-indicator.pcss.css
  3. 11.x core/themes/claro/css/components/tablesort-indicator.pcss.css

Tablesort indicator styles.

File

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

View source
  1. /**
  2. * @file
  3. * Tablesort indicator styles.
  4. */
  5. .tablesort {
  6. position: absolute;
  7. top: 50%;
  8. right: 1rem;
  9. width: 0.875rem; /* 14px */
  10. height: 1rem; /* 16px */
  11. margin-top: -0.5rem; /* -8px */
  12. opacity: 0.5;
  13. background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1.75,0.25v1.5h10.5v-1.5z m0,3v1.5h7.5v-1.5z m0,3v1.5h4.5v-1.5z' fill='%23222330'/%3E%3C/svg%3E") no-repeat 0 50%;
  14. background-size: auto;
  15. }
  16. /* stylelint-disable-next-line selector-type-no-unknown */
  17. _:-ms-fullscreen, /* Only IE 11 */
  18. .tablesort {
  19. position: static;
  20. float: right;
  21. margin-top: 0.125rem; /* 2px */
  22. margin-right: -1.5rem; /* -24px */
  23. }
  24. [dir="rtl"] .tablesort {
  25. right: auto;
  26. left: 1rem; /* 16px */
  27. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m12.25,0.25v1.5H1.75v-1.5z m0,3v1.5h-7.5v-1.5z m0,3v1.5h-4.5v-1.5z' fill='%23222330'/%3E%3C/svg%3E");
  28. }
  29. /* stylelint-disable-next-line selector-type-no-unknown */
  30. _:-ms-fullscreen, /* Only IE 11 */
  31. [dir="rtl"] .tablesort {
  32. float: left;
  33. margin-right: 0;
  34. margin-left: -1.5rem; /* -24px */
  35. }
  36. .tablesort--asc,
  37. [dir="rtl"] .tablesort--asc {
  38. opacity: 1;
  39. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 10 12'%3E%3Cpath d='M 5 0.43945312 L 0.71875 4.71875 L 1.78125 5.78125 L 4.25 3.3125 L 4.25 11.25 L 5.75 11.25 L 5.75 3.3125 L 8.21875 5.78125 L 9.28125 4.71875 L 5 0.43945312 z' fill='%23004adc'/%3E%3C/svg%3E");
  40. }
  41. .tablesort--desc,
  42. [dir="rtl"] .tablesort--desc {
  43. opacity: 1;
  44. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 10 12'%3E%3Cpath d='M 4.25 0.75 L 4.25 8.6875 L 1.78125 6.21875 L 0.71875 7.28125 L 5 11.560547 L 9.28125 7.28125 L 8.21875 6.21875 L 5.75 8.6875 L 5.75 0.75 L 4.25 0.75 z' fill='%23004adc'/%3E%3C/svg%3E");
  45. }

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