table.css

Same filename in this branch
  1. main core/misc/dialog/off-canvas/css/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

User generated tables.

File

core/themes/olivero/css/components/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. * User generated tables.
  10. */
  11. .text-content table,
  12. .views-table,
  13. .draggable-table {
  14. margin-block-start: var(--sp2);
  15. margin-block-end: var(--sp2);
  16. border-spacing: 0;
  17. color: var(--color-text-neutral-medium);
  18. border: 0;
  19. border-collapse: collapse;
  20. font-family: var(--font-sans);
  21. font-size: 1rem;
  22. line-height: var(--sp1-5);
  23. & caption {
  24. margin-block-end: var(--sp1);
  25. text-align: start;
  26. color: var(--color-text-neutral-medium);
  27. font-family: var(--font-serif);
  28. font-size: 0.875rem;
  29. font-style: italic;
  30. line-height: var(--sp);
  31. }
  32. & tr {
  33. &:last-child {
  34. & td {
  35. border-block-end: 0;
  36. }
  37. }
  38. }
  39. & td,
  40. & th {
  41. padding-block: var(--sp1);
  42. padding-inline-start: 0;
  43. padding-inline-end: var(--sp1);
  44. vertical-align: top;
  45. }
  46. & th {
  47. margin-block: 0;
  48. margin-inline-start: 0;
  49. margin-inline-end: 0;
  50. text-align: start;
  51. letter-spacing: 0.02em;
  52. color: var(--color-text-neutral-loud);
  53. border-block-end: 2px solid var(--color--primary-50);
  54. font-family: var(--font-sans);
  55. font-size: 0.875rem;
  56. line-height: var(--sp);
  57. }
  58. & td {
  59. white-space: normal;
  60. border-block-end: 2px solid var(--color--gray-65);
  61. }
  62. & th.checkbox,
  63. & td.checkbox {
  64. text-align: center;
  65. }
  66. }
  67. .draggable-table {
  68. width: 100%;
  69. }
  70. .draggable-table .form-item {
  71. margin-top: 0;
  72. }
  73. .text-content table {
  74. & td,
  75. & th {
  76. vertical-align: middle;
  77. }
  78. }
  79. .tablesort {
  80. vertical-align: middle;
  81. }
  82. .sticky-header {
  83. z-index: 0;
  84. margin: 0;
  85. border-block-end: 0.25rem solid var(--color--primary-50);
  86. & thead {
  87. background: var(--color--white);
  88. }
  89. }
  90. /* Properly align VBO checkboxes. */
  91. .views-field-node-bulk-form .form-item {
  92. margin: 0;
  93. }

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