table.css

Same filename in this branch
  1. 9 core/themes/bartik/css/components/table.css
Same filename in other branches
  1. 8.9.x core/themes/bartik/css/components/table.css
  2. 10 core/misc/dialog/off-canvas/css/table.css
  3. 10 core/themes/olivero/css/components/table.css
  4. 10 core/modules/ckeditor5/css/table.css
  5. 11.x core/misc/dialog/off-canvas/css/table.css
  6. 11.x core/themes/olivero/css/components/table.css
  7. 11.x core/modules/ckeditor5/css/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. .forum table,
  12. .text-content table,
  13. .views-table,
  14. .draggable-table {
  15. margin-top: 2.25rem;
  16. margin-bottom: 2.25rem;
  17. border-spacing: 0;
  18. color: #313637;
  19. border: 0;
  20. border-collapse: collapse;
  21. font-family: metropolis, sans-serif;
  22. font-size: 1rem;
  23. line-height: 1.6875rem;
  24. }
  25. [dir="ltr"] .forum table caption,
  26. [dir="ltr"] .text-content table caption,
  27. [dir="ltr"] .views-table caption,
  28. [dir="ltr"] .draggable-table caption {
  29. text-align: left;
  30. }
  31. [dir="rtl"] .forum table caption,
  32. [dir="rtl"] .text-content table caption,
  33. [dir="rtl"] .views-table caption,
  34. [dir="rtl"] .draggable-table caption {
  35. text-align: right;
  36. }
  37. .forum table caption,
  38. .text-content table caption,
  39. .views-table caption,
  40. .draggable-table caption {
  41. margin-bottom: 1.125rem;
  42. color: #313637;
  43. font-family: Lora, georgia, serif;
  44. font-size: 0.875rem;
  45. font-style: italic;
  46. line-height: 1.125rem;
  47. }
  48. .forum table tr:last-child td,
  49. .text-content table tr:last-child td,
  50. .views-table tr:last-child td,
  51. .draggable-table tr:last-child td {
  52. border-bottom: 0;
  53. }
  54. [dir="ltr"] .forum table td,
  55. [dir="ltr"] .text-content table td,
  56. [dir="ltr"] .views-table td,
  57. [dir="ltr"] .draggable-table td,
  58. [dir="ltr"] .forum table th,
  59. [dir="ltr"] .text-content table th,
  60. [dir="ltr"] .views-table th,
  61. [dir="ltr"] .draggable-table th {
  62. padding-left: 0;
  63. }
  64. [dir="rtl"] .forum table td,
  65. [dir="rtl"] .text-content table td,
  66. [dir="rtl"] .views-table td,
  67. [dir="rtl"] .draggable-table td,
  68. [dir="rtl"] .forum table th,
  69. [dir="rtl"] .text-content table th,
  70. [dir="rtl"] .views-table th,
  71. [dir="rtl"] .draggable-table th {
  72. padding-right: 0;
  73. }
  74. [dir="ltr"] .forum table td,
  75. [dir="ltr"] .text-content table td,
  76. [dir="ltr"] .views-table td,
  77. [dir="ltr"] .draggable-table td,
  78. [dir="ltr"] .forum table th,
  79. [dir="ltr"] .text-content table th,
  80. [dir="ltr"] .views-table th,
  81. [dir="ltr"] .draggable-table th {
  82. padding-right: 1.125rem;
  83. }
  84. [dir="rtl"] .forum table td,
  85. [dir="rtl"] .text-content table td,
  86. [dir="rtl"] .views-table td,
  87. [dir="rtl"] .draggable-table td,
  88. [dir="rtl"] .forum table th,
  89. [dir="rtl"] .text-content table th,
  90. [dir="rtl"] .views-table th,
  91. [dir="rtl"] .draggable-table th {
  92. padding-left: 1.125rem;
  93. }
  94. .forum table td,
  95. .text-content table td,
  96. .views-table td,
  97. .draggable-table td,
  98. .forum table th,
  99. .text-content table th,
  100. .views-table th,
  101. .draggable-table th {
  102. padding-top: 1.125rem;
  103. padding-bottom: 1.125rem;
  104. vertical-align: top;
  105. }
  106. [dir="ltr"] .forum table th,
  107. [dir="ltr"] .text-content table th,
  108. [dir="ltr"] .views-table th,
  109. [dir="ltr"] .draggable-table th {
  110. margin-left: 0;
  111. }
  112. [dir="rtl"] .forum table th,
  113. [dir="rtl"] .text-content table th,
  114. [dir="rtl"] .views-table th,
  115. [dir="rtl"] .draggable-table th {
  116. margin-right: 0;
  117. }
  118. [dir="ltr"] .forum table th,
  119. [dir="ltr"] .text-content table th,
  120. [dir="ltr"] .views-table th,
  121. [dir="ltr"] .draggable-table th {
  122. margin-right: 0;
  123. }
  124. [dir="rtl"] .forum table th,
  125. [dir="rtl"] .text-content table th,
  126. [dir="rtl"] .views-table th,
  127. [dir="rtl"] .draggable-table th {
  128. margin-left: 0;
  129. }
  130. [dir="ltr"] .forum table th,
  131. [dir="ltr"] .text-content table th,
  132. [dir="ltr"] .views-table th,
  133. [dir="ltr"] .draggable-table th {
  134. text-align: left;
  135. }
  136. [dir="rtl"] .forum table th,
  137. [dir="rtl"] .text-content table th,
  138. [dir="rtl"] .views-table th,
  139. [dir="rtl"] .draggable-table th {
  140. text-align: right;
  141. }
  142. .forum table th,
  143. .text-content table th,
  144. .views-table th,
  145. .draggable-table th {
  146. margin-top: 0;
  147. margin-bottom: 0;
  148. letter-spacing: 0.02em;
  149. color: #0d1214;
  150. border-bottom: 2px solid #2494db;
  151. font-family: metropolis, sans-serif;
  152. font-size: 0.875rem;
  153. line-height: 1.125rem;
  154. /**
  155. * Fixes for styles injected by CKEditor
  156. */
  157. }
  158. [dir="ltr"] .forum table th.text-align-left,
  159. [dir="ltr"] .text-content table th.text-align-left,
  160. [dir="ltr"] .views-table th.text-align-left,
  161. [dir="ltr"] .draggable-table th.text-align-left {
  162. text-align: left;
  163. }
  164. [dir="rtl"] .forum table th.text-align-left,
  165. [dir="rtl"] .text-content table th.text-align-left,
  166. [dir="rtl"] .views-table th.text-align-left,
  167. [dir="rtl"] .draggable-table th.text-align-left {
  168. text-align: right;
  169. }
  170. [dir="ltr"] .forum table th.text-align-right,
  171. [dir="ltr"] .text-content table th.text-align-right,
  172. [dir="ltr"] .views-table th.text-align-right,
  173. [dir="ltr"] .draggable-table th.text-align-right {
  174. text-align: right;
  175. }
  176. [dir="rtl"] .forum table th.text-align-right,
  177. [dir="rtl"] .text-content table th.text-align-right,
  178. [dir="rtl"] .views-table th.text-align-right,
  179. [dir="rtl"] .draggable-table th.text-align-right {
  180. text-align: left;
  181. }
  182. .forum table th.text-align-center,
  183. .text-content table th.text-align-center,
  184. .views-table th.text-align-center,
  185. .draggable-table th.text-align-center {
  186. text-align: center;
  187. }
  188. .forum table th.text-align-justify,
  189. .text-content table th.text-align-justify,
  190. .views-table th.text-align-justify,
  191. .draggable-table th.text-align-justify {
  192. text-align: justify;
  193. }
  194. .forum table td,
  195. .text-content table td,
  196. .views-table td,
  197. .draggable-table td {
  198. white-space: normal;
  199. border-bottom: 2px solid #98abb9;
  200. }
  201. .forum table th.checkbox,
  202. .text-content table th.checkbox,
  203. .views-table th.checkbox,
  204. .draggable-table th.checkbox,
  205. .forum table td.checkbox,
  206. .text-content table td.checkbox,
  207. .views-table td.checkbox,
  208. .draggable-table td.checkbox {
  209. text-align: center;
  210. }
  211. .draggable-table {
  212. width: 100%;
  213. }
  214. .draggable-table .form-item {
  215. margin-top: 0;
  216. }
  217. .tablesort {
  218. vertical-align: middle;
  219. }
  220. .sticky-header {
  221. z-index: 0;
  222. margin: 0;
  223. border-bottom: 0.25rem solid #2494db;
  224. }
  225. /* Properly align VBO checkboxes. */
  226. .views-field-node-bulk-form .form-item {
  227. margin: 0;
  228. }

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