table.pcss.css

Same filename in other branches
  1. 10 core/misc/dialog/off-canvas/css/table.pcss.css
  2. 10 core/themes/olivero/css/components/table.pcss.css
  3. 11.x core/misc/dialog/off-canvas/css/table.pcss.css
  4. 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/variables.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--gray-10);
  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--gray-10);
  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--gray-0);
  49. border-block-end: 2px solid var(--color--blue-50);
  50. font-family: var(--font-sans);
  51. font-size: 14px;
  52. line-height: var(--sp);
  53. /**
  54. * Fixes for styles injected by CKEditor
  55. */
  56. &.text-align-left {
  57. text-align: start;
  58. }
  59. &.text-align-right {
  60. text-align: end;
  61. }
  62. &.text-align-center {
  63. text-align: center;
  64. }
  65. &.text-align-justify {
  66. text-align: justify;
  67. }
  68. }
  69. & td {
  70. white-space: normal;
  71. border-block-end: 2px solid var(--color--gray-40);
  72. }
  73. & th.checkbox,
  74. & td.checkbox {
  75. text-align: center;
  76. }
  77. }
  78. .draggable-table {
  79. width: 100%;
  80. }
  81. .draggable-table .form-item {
  82. margin-top: 0;
  83. }
  84. .tablesort {
  85. vertical-align: middle;
  86. }
  87. .sticky-header {
  88. z-index: 0;
  89. margin: 0;
  90. border-block-end: 4px solid var(--color--blue-50);
  91. }
  92. /* Properly align VBO checkboxes. */
  93. .views-field-node-bulk-form .form-item {
  94. margin: 0;
  95. }

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