table.pcss.css

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

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