table.pcss.css

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

User generated tables.

File

core/themes/olivero/css/components/table.pcss.css

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

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