You are here

tabledrag.css in Drupal 10

Styles for tabledrag.

File

core/themes/olivero/css/components/tabledrag.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. * Styles for tabledrag.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. .draggable:hover {
  20. background-color: var(--color--gray-100);
  21. }
  22. .draggable.drag {
  23. background-color: var(--color--gray-100);
  24. }
  25. .draggable.drag-previous {
  26. background-color: var(--color--gray-95);
  27. }
  28. .drag-previous a {
  29. color: var(--color-text-neutral-medium); /* Ensure proper contrast. */
  30. }
  31. a.tabledrag-handle,
  32. .touchevents a.tabledrag-handle {
  33. width: 2.25rem;
  34. height: 2.25rem;
  35. }
  36. [dir="ltr"] .draggable a.tabledrag-handle {
  37. margin-left: 0;
  38. }
  39. [dir="rtl"] .draggable a.tabledrag-handle {
  40. margin-right: 0;
  41. }
  42. a.tabledrag-handle .handle {
  43. width: var(--sp2);
  44. height: var(--sp2);
  45. margin: 0;
  46. background-position: 50% 5px;
  47. }
  48. .touchevents a.tabledrag-handle .handle {
  49. height: var(--sp2);
  50. background-position: 50% 5px;
  51. }
  52. [dir="ltr"] .touchevents .draggable td {
  53. padding-left: 0;
  54. }
  55. [dir="rtl"] .touchevents .draggable td {
  56. padding-right: 0;
  57. }
  58. [dir="ltr"] .touchevents .draggable td {
  59. padding-right: var(--sp0-5);
  60. }
  61. [dir="rtl"] .touchevents .draggable td {
  62. padding-left: var(--sp0-5);
  63. }
  64. .touchevents .draggable td {
  65. padding-top: var(--sp0-5);
  66. padding-bottom: var(--sp0-5);
  67. }
  68. .touchevents .draggable .menu-item__link {
  69. padding: 0;
  70. }