Skip to content
Source
Sign inSign up
TanStack/table
Open History to see the last commit

styles.css

383 lines4.8 KB

1html {
2 font-family: sans-serif;
3 font-size: 14px;
4}
5​
6table {
7 border: 1px solid lightgray;
8 border-collapse: collapse;
9 border-spacing: 0;
11​
12tbody {
13 border-bottom: 1px solid lightgray;
15​
16th {
17 border-bottom: 1px solid lightgray;
18 border-right: 1px solid lightgray;
19 padding: 2px 4px;
21​
22tfoot {
23 color: gray;
25​
26tfoot th {
27 font-weight: normal;
29​
30.pagination-actions {
31 margin: 10px;
32 display: flex;
33 gap: 10px;
35​
36/* Demo layout utilities for plain example styling. */
37.demo-root {
38 padding: 0.5rem;
40​
41.spacer-xs {
42 height: 0.25rem;
44​
45.spacer-sm {
46 height: 0.5rem;
48​
49.spacer-md {
50 height: 1rem;
52​
53.controls,
54.button-row,
55.inline-controls,
56.pin-actions,
57.filter-row,
58.form-actions {
59 display: flex;
60 align-items: center;
62​
63.button-row {
64 flex-wrap: wrap;
65 gap: 0.5rem;
67​
68.controls {
69 gap: 0.5rem;
71​
72.inline-controls,
73.pin-actions {
74 gap: 0.25rem;
76​
77.pin-actions {
78 justify-content: center;
80​
81.filter-row {
82 gap: 0.5rem;
84​
85.form-actions {
86 gap: 1rem;
87 margin-bottom: 1rem;
89​
90.split-tables {
91 display: flex;
92 gap: 1rem;
94​
95.table-row-group {
96 display: flex;
97 border-collapse: collapse;
98 border-spacing: 0;
100​
101.vertical-options {
102 display: flex;
103 flex-direction: column;
104 gap: 0.5rem;
105 align-items: center;
107​
108.column-toggle-panel {
109 display: inline-block;
110 border: 1px solid #000;
111 border-radius: 0.25rem;
112 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
114​
115.column-toggle-panel-header {
116 border-bottom: 1px solid #000;
117 padding: 0 0.25rem;
119​
120.column-toggle-row,
121.selection-cell {
122 padding: 0 0.25rem;
124​
125.selection-cell {
126 display: block;
128​
129.demo-button,
130.pin-button,
131.compact-input,
132.filter-input,
133.filter-select,
134.page-size-input,
135.text-input,
136.number-input,
137.wide-action-button,
138.primary-action,
139.secondary-action,
140.success-action {
141 border: 1px solid currentColor;
142 border-radius: 0.25rem;
144​
145.demo-button {
146 padding: 0.5rem;
148​
149.demo-button-sm {
150 padding: 0.25rem;
152​
153.demo-button-spaced {
154 margin-bottom: 0.5rem;
156​
157.pin-button {
158 padding: 0 0.5rem;
160​
161.outlined-table {
162 border: 2px solid #000;
163 border-collapse: collapse;
164 border-spacing: 0;
166​
167.outlined-control {
168 border-color: #000;
170​
171.nowrap {
172 white-space: nowrap;
174​
175.demo-note {
176 margin-bottom: 0.5rem;
177 font-size: 0.875rem;
179​
180.section-title {
181 font-size: 1.25rem;
183​
184.scroll-container {
185 overflow-x: auto;
187​
188.page-size-input {
189 width: 4rem;
190 padding: 0.25rem;
192​
193.number-input {
194 width: 5rem;
195 padding: 0 0.25rem;
197​
198.filter-input,
199.filter-select {
200 width: 6rem;
201 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
203​
204.filter-select {
205 width: 9rem;
207​
208.text-input {
209 width: 100%;
210 padding: 0 0.25rem;
212​
213.compact-input {
214 padding: 0 0.25rem;
216​
217.wide-action-button {
218 width: 16rem;
220​
221.summary-panel {
222 border: 1px solid currentColor;
223 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
224 padding: 0.5rem;
226​
227.sortable-header,
228.sortable {
229 cursor: pointer;
230 user-select: none;
232​
233.primary-action,
234.success-action,
235.secondary-action {
236 color: #fff;
238​
239.primary-action {
240 background: #3b82f6;
242​
243.success-action {
244 background: #22c55e;
246​
247.secondary-action {
248 background: #6b7280;
250​
251.submit-button:disabled {
252 opacity: 0.5;
254​
255.error-text {
256 color: #ef4444;
257 font-size: 0.75rem;
259​
260.success-text {
261 color: #16a34a;
263​
264.warning-text {
265 color: #ca8a04;
267​
268.muted-text {
269 color: #9ca3af;
271​
272.label-offset {
273 margin-left: 0.5rem;
275​
276.cell-padding {
277 padding: 0.25rem;
279​
280.table-spacer {
281 margin-bottom: 0.5rem;
282 border-collapse: collapse;
283 border-spacing: 0;
285​
286.warning-panel {
287 margin-bottom: 1rem;
288 border: 1px solid #facc15;
289 border-radius: 0.25rem;
290 background: #fef9c3;
291 padding: 0.5rem;
293​
294.code-block {
295 overflow: auto;
296 border-radius: 0.25rem;
297 background: #f3f4f6;
298 padding: 0.5rem;
299 font-size: 0.75rem;
301​
302.router-root {
303 display: flex;
304 flex-direction: column;
305 gap: 0.5rem;
306 padding: 0.5rem;
308​
309.page-title {
310 margin-bottom: 0.25rem;
311 font-size: 1.5rem;
312 font-weight: 600;
314​
315.disabled-button:disabled {
316 color: #6b7280;
317 cursor: not-allowed;
319​
320.pagination-controls {
321 margin-block: 0.5rem;
323​
324.column-size-input {
325 width: 6rem;
326 margin-left: 0.5rem;
327 border: 1px solid currentColor;
328 border-radius: 0.25rem;
329 padding: 0.25rem;
331​
332.form-status {
333 display: flex;
334 gap: 1rem;
335 font-size: 0.875rem;
337​
338.centered-button-row {
339 display: flex;
340 flex-wrap: wrap;
341 justify-content: center;
342 gap: 0.5rem;
344​
345.split-gap {
346 gap: 1rem;
348​
349.demo-link {
350 color: #2563eb;
351 text-decoration: underline;
353​
354.capitalized-text {
355 text-transform: capitalize;
357​
358.centered-text {
359 text-align: center;
361​
362.centered-strong-text {
363 text-align: center;
364 font-weight: 600;
366​
367.virtualized-title {
368 text-align: center;
369 font-size: 1.875rem;
370 font-weight: 700;
372​
373/* Lays the header group examples side by side when the viewport allows it. */
374.example-grid {
375 display: flex;
376 flex-wrap: wrap;
377 align-items: flex-start;
378 gap: 1rem 1.5rem;
380​
381.example-panel {
382 flex: 0 1 auto;