tabledrag.css

Same filename in this branch
  1. 10 core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  2. 10 core/themes/olivero/css/components/tabledrag.css
  3. 10 core/themes/claro/css/components/tabledrag.css
  4. 10 core/themes/starterkit_theme/css/components/tabledrag.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  2. 9 core/themes/olivero/css/components/tabledrag.css
  3. 9 core/themes/seven/css/classy/components/tabledrag.css
  4. 9 core/themes/claro/css/components/tabledrag.css
  5. 9 core/themes/bartik/css/classy/components/tabledrag.css
  6. 9 core/themes/starterkit_theme/css/components/tabledrag.css
  7. 9 core/themes/classy/css/components/tabledrag.css
  8. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  9. 8.9.x core/themes/seven/css/classy/components/tabledrag.css
  10. 8.9.x core/themes/claro/css/components/tabledrag.css
  11. 8.9.x core/themes/bartik/css/classy/components/tabledrag.css
  12. 8.9.x core/themes/classy/css/components/tabledrag.css
  13. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  14. 11.x core/misc/dialog/off-canvas/css/tabledrag.css
  15. 11.x core/themes/olivero/css/components/tabledrag.css
  16. 11.x core/themes/claro/css/components/tabledrag.css
  17. 11.x core/themes/starterkit_theme/css/components/tabledrag.css

Table drag styling for off-canvas dialog.

@internal

See also

tabledrag.js

File

core/misc/dialog/off-canvas/css/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. * Table drag styling for off-canvas dialog.
  10. *
  11. * @see tabledrag.js
  12. *
  13. * @internal
  14. */
  15. /* The draggable element. */
  16. #drupal-off-canvas-wrapper .draggable:hover,
  17. #drupal-off-canvas-wrapper .draggable:focus-within {
  18. background-color: var(--off-canvas-background-color-light);
  19. }
  20. /* Appears when the row is being dragged. */
  21. #drupal-off-canvas-wrapper .draggable.drag {
  22. cursor: move;
  23. background-color: var(--off-canvas-background-color-dark);
  24. }
  25. #drupal-off-canvas-wrapper td {
  26. transition: background-color 0.3s ease;
  27. /* We have to horizontally align all descendent nodes including text nodes
  28. * that do not have wrapper elements. Since we use flex to do this, we need
  29. * try to keep it vertically centered, so we have to give it a minimum height
  30. * to match the rest of the table cells. */
  31. }
  32. #drupal-off-canvas-wrapper td:first-child {
  33. display: flex;
  34. align-items: center;
  35. min-height: 3.125rem;
  36. gap: var(--off-canvas-table-cell-padding);
  37. }
  38. #drupal-off-canvas-wrapper td abbr {
  39. margin-inline: 0 0.3125rem;
  40. -webkit-text-decoration: none;
  41. text-decoration: none;
  42. }
  43. #drupal-off-canvas-wrapper .tabledrag-handle {
  44. flex-shrink: 0;
  45. }
  46. #drupal-off-canvas-wrapper .tabledrag-handle::after {
  47. display: block;
  48. width: 1.25rem;
  49. height: 1.25rem;
  50. margin: 0;
  51. padding: 0;
  52. content: "";
  53. cursor: move;
  54. background-color: transparent;
  55. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3e%3cpath fill='%23bebebe' d='M14.904 7.753l-2.373-2.372c-.291-.292-.529-.193-.529.22v1.399h-3v-3h1.398c.414 0 .512-.239.221-.53l-2.371-2.372c-.137-.136-.36-.136-.497 0l-2.372 2.372c-.292.292-.193.53.22.53h1.399v3h-3v-1.369c0-.413-.239-.511-.53-.22l-2.372 2.372c-.136.136-.136.359 0 .494l2.372 2.372c.291.292.53.192.53-.219v-1.43h3v3h-1.4c-.413 0-.511.238-.22.529l2.374 2.373c.137.137.36.137.495 0l2.373-2.373c.29-.291.19-.529-.222-.529h-1.398v-3h3v1.4c0 .412.238.511.529.219l2.373-2.371c.137-.137.137-.359 0-.495z'/%3e%3c/svg%3e");
  56. background-repeat: no-repeat;
  57. background-position: center;
  58. }
  59. @media (forced-colors: active) {
  60. #drupal-off-canvas-wrapper .tabledrag-handle::after {
  61. background: linktext;
  62. mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3e%3cpath fill='%23bebebe' d='M14.904 7.753l-2.373-2.372c-.291-.292-.529-.193-.529.22v1.399h-3v-3h1.398c.414 0 .512-.239.221-.53l-2.371-2.372c-.137-.136-.36-.136-.497 0l-2.372 2.372c-.292.292-.193.53.22.53h1.399v3h-3v-1.369c0-.413-.239-.511-.53-.22l-2.372 2.372c-.136.136-.136.359 0 .494l2.372 2.372c.291.292.53.192.53-.219v-1.43h3v3h-1.4c-.413 0-.511.238-.22.529l2.374 2.373c.137.137.36.137.495 0l2.373-2.373c.29-.291.19-.529-.222-.529h-1.398v-3h3v1.4c0 .412.238.511.529.219l2.373-2.371c.137-.137.137-.359 0-.495z'/%3e%3c/svg%3e");
  63. mask-repeat: no-repeat;
  64. mask-position: center;
  65. }
  66. }
  67. /* Make the "row weight" as small as possible. */
  68. #drupal-off-canvas-wrapper .tabledrag-hide select {
  69. all: revert;
  70. }
  71. #drupal-off-canvas-wrapper .tabledrag-changed-warning {
  72. margin-bottom: var(--off-canvas-vertical-spacing-unit);
  73. font-size: 0.875rem;
  74. }
  75. #drupal-off-canvas-wrapper .tabledrag-toggle-weight-wrapper {
  76. padding-top: 0.625rem;
  77. text-align: end;
  78. }
  79. #drupal-off-canvas-wrapper .indentation {
  80. width: 0.3125rem;
  81. }
  82. .touchevents #drupal-off-canvas-wrapper .draggable td {
  83. padding: 0 0.625rem;
  84. }
  85. .touchevents #drupal-off-canvas-wrapper .draggable .menu-item__link {
  86. display: inline-block;
  87. padding: 0.625rem 0;
  88. }
  89. .touchevents #drupal-off-canvas-wrapper a.tabledrag-handle {
  90. width: 2.5rem;
  91. height: 2.75rem;
  92. }

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