tabledrag.css

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  2. 11.x core/themes/olivero/css/components/tabledrag.css
  3. 11.x core/themes/claro/css/components/tabledrag.css
  4. 11.x 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. 10 core/profiles/demo_umami/themes/umami/css/classy/components/tabledrag.css
  14. 10 core/misc/dialog/off-canvas/css/tabledrag.css
  15. 10 core/themes/olivero/css/components/tabledrag.css
  16. 10 core/themes/claro/css/components/tabledrag.css
  17. 10 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. -webkit-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-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");
  64. -webkit-mask-repeat: no-repeat;
  65. mask-repeat: no-repeat;
  66. -webkit-mask-position: center;
  67. mask-position: center;
  68. }
  69. }
  70. /* Make the "row weight" as small as possible. */
  71. #drupal-off-canvas-wrapper .tabledrag-hide select {
  72. all: revert;
  73. }
  74. #drupal-off-canvas-wrapper .tabledrag-changed-warning {
  75. margin-bottom: var(--off-canvas-vertical-spacing-unit);
  76. font-size: 0.875rem;
  77. }
  78. #drupal-off-canvas-wrapper .tabledrag-toggle-weight-wrapper {
  79. padding-top: 0.625rem;
  80. text-align: end;
  81. }
  82. #drupal-off-canvas-wrapper .indentation {
  83. width: 0.3125rem;
  84. }
  85. .touchevents #drupal-off-canvas-wrapper .draggable td {
  86. padding: 0 0.625rem;
  87. }
  88. .touchevents #drupal-off-canvas-wrapper .draggable .menu-item__link {
  89. display: inline-block;
  90. padding: 0.625rem 0;
  91. }
  92. .touchevents #drupal-off-canvas-wrapper a.tabledrag-handle {
  93. width: 2.5rem;
  94. height: 2.75rem;
  95. }

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