table.pcss.css

Same filename in this branch
  1. 10 core/themes/olivero/css/components/table.pcss.css
Same filename in other branches
  1. 9 core/themes/olivero/css/components/table.pcss.css
  2. 11.x core/misc/dialog/off-canvas/css/table.pcss.css
  3. 11.x core/themes/olivero/css/components/table.pcss.css

Styling for tables in the off-canvas dialog.

@internal

File

core/misc/dialog/off-canvas/css/table.pcss.css

View source
  1. /**
  2. * @file
  3. * Styling for tables in the off-canvas dialog.
  4. *
  5. * @internal
  6. */
  7. #drupal-off-canvas-wrapper {
  8. --off-canvas-table-cell-padding: 2px;
  9. --off-canvas-first-cell-padding-start: calc(var(--off-canvas-padding) / 2);
  10. & table {
  11. width: calc(100% + 2 * var(--off-canvas-padding));
  12. margin: var(--off-canvas-vertical-spacing-unit) calc(-1 * var(--off-canvas-padding));
  13. }
  14. & tr {
  15. border-bottom: 1px solid var(--off-canvas-border-color);
  16. }
  17. & td,
  18. & th {
  19. padding: var(--off-canvas-table-cell-padding);
  20. text-align: start;
  21. vertical-align: middle;
  22. &:first-child {
  23. padding-inline-start: var(--off-canvas-first-cell-padding-start);
  24. }
  25. &:not(:last-child) td {
  26. border-bottom: solid 1px var(--off-canvas-border-color);
  27. }
  28. }
  29. }

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