table.css

Same filename in this branch
  1. main core/themes/olivero/css/components/table.css
  2. main core/modules/ckeditor5/css/table.css
Same filename and directory in other branches
  1. 10 core/misc/dialog/off-canvas/css/table.css
  2. 10 core/themes/olivero/css/components/table.css
  3. 11.x core/misc/dialog/off-canvas/css/table.css
  4. 11.x core/themes/olivero/css/components/table.css
  5. 11.x core/modules/ckeditor5/css/table.css
  6. 10 core/modules/ckeditor5/css/table.css
  7. 9 core/themes/olivero/css/components/table.css
  8. 9 core/themes/bartik/css/components/table.css
  9. 8.9.x core/themes/bartik/css/components/table.css

Styling for tables in the off-canvas dialog.

@internal

File

core/misc/dialog/off-canvas/css/table.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. * Styling for tables in the off-canvas dialog.
  10. *
  11. * @internal
  12. */
  13. #drupal-off-canvas-wrapper {
  14. --off-canvas-table-cell-padding: 2px;
  15. --off-canvas-first-cell-padding-start: calc(var(--off-canvas-padding) / 2);
  16. & table {
  17. width: calc(100% + 2 * var(--off-canvas-padding));
  18. margin: var(--off-canvas-vertical-spacing-unit) calc(-1 * var(--off-canvas-padding));
  19. }
  20. & tr {
  21. border-bottom: 1px solid var(--off-canvas-border-color);
  22. }
  23. & td,
  24. & th {
  25. padding: var(--off-canvas-table-cell-padding);
  26. text-align: start;
  27. vertical-align: middle;
  28. &:first-child {
  29. padding-inline-start: var(--off-canvas-first-cell-padding-start);
  30. }
  31. &:not(:last-child) td {
  32. border-bottom: solid 1px var(--off-canvas-border-color);
  33. }
  34. }
  35. }

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