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

styles.css

373 lines4.6 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​
30tr {
31 border-bottom: 1px solid lightgray;
33​
34button:disabled {
35 opacity: 0.5;
37​
38/* Demo layout utilities for plain example styling. */
39.demo-root {
40 padding: 0.5rem;
42​
43.spacer-xs {
44 height: 0.25rem;
46​
47.spacer-sm {
48 height: 0.5rem;
50​
51.spacer-md {
52 height: 1rem;
54​
55.controls,
56.button-row,
57.inline-controls,
58.pin-actions,
59.filter-row,
60.form-actions {
61 display: flex;
62 align-items: center;
64​
65.button-row {
66 flex-wrap: wrap;
67 gap: 0.5rem;
69​
70.controls {
71 gap: 0.5rem;
73​
74.inline-controls,
75.pin-actions {
76 gap: 0.25rem;
78​
79.pin-actions {
80 justify-content: center;
82​
83.filter-row {
84 gap: 0.5rem;
86​
87.form-actions {
88 gap: 1rem;
89 margin-bottom: 1rem;
91​
92.split-tables {
93 display: flex;
94 gap: 1rem;
96​
97.table-row-group {
98 display: flex;
99 border-collapse: collapse;
100 border-spacing: 0;
102​
103.vertical-options {
104 display: flex;
105 flex-direction: column;
106 gap: 0.5rem;
107 align-items: center;
109​
110.column-toggle-panel {
111 display: inline-block;
112 border: 1px solid #000;
113 border-radius: 0.25rem;
114 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
116​
117.column-toggle-panel-header {
118 border-bottom: 1px solid #000;
119 padding: 0 0.25rem;
121​
122.column-toggle-row,
123.selection-cell {
124 padding: 0 0.25rem;
126​
127.selection-cell {
128 display: block;
130​
131.demo-button,
132.pin-button,
133.compact-input,
134.filter-input,
135.filter-select,
136.page-size-input,
137.text-input,
138.number-input,
139.wide-action-button,
140.primary-action,
141.secondary-action,
142.success-action {
143 border: 1px solid currentColor;
144 border-radius: 0.25rem;
146​
147.demo-button {
148 padding: 0.5rem;
150​
151.demo-button-sm {
152 padding: 0.25rem;
154​
155.demo-button-spaced {
156 margin-bottom: 0.5rem;
158​
159.pin-button {
160 padding: 0 0.5rem;
162​
163.outlined-table {
164 border: 2px solid #000;
165 border-collapse: collapse;
166 border-spacing: 0;
168​
169.outlined-control {
170 border-color: #000;
172​
173.nowrap {
174 white-space: nowrap;
176​
177.demo-note {
178 margin-bottom: 0.5rem;
179 font-size: 0.875rem;
181​
182.section-title {
183 font-size: 1.25rem;
185​
186.scroll-container {
187 overflow-x: auto;
189​
190.page-size-input {
191 width: 4rem;
192 padding: 0.25rem;
194​
195.number-input {
196 width: 5rem;
197 padding: 0 0.25rem;
199​
200.filter-input,
201.filter-select {
202 width: 6rem;
203 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
205​
206.filter-select {
207 width: 9rem;
209​
210.text-input {
211 width: 100%;
212 padding: 0 0.25rem;
214​
215.compact-input {
216 padding: 0 0.25rem;
218​
219.wide-action-button {
220 width: 16rem;
222​
223.summary-panel {
224 border: 1px solid currentColor;
225 box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
226 padding: 0.5rem;
228​
229.sortable-header,
230.sortable {
231 cursor: pointer;
232 user-select: none;
234​
235.primary-action,
236.success-action,
237.secondary-action {
238 color: #fff;
240​
241.primary-action {
242 background: #3b82f6;
244​
245.success-action {
246 background: #22c55e;
248​
249.secondary-action {
250 background: #6b7280;
252​
253.submit-button:disabled {
254 opacity: 0.5;
256​
257.error-text {
258 color: #ef4444;
259 font-size: 0.75rem;
261​
262.success-text {
263 color: #16a34a;
265​
266.warning-text {
267 color: #ca8a04;
269​
270.muted-text {
271 color: #9ca3af;
273​
274.label-offset {
275 margin-left: 0.5rem;
277​
278.cell-padding {
279 padding: 0.25rem;
281​
282.table-spacer {
283 margin-bottom: 0.5rem;
284 border-collapse: collapse;
285 border-spacing: 0;
287​
288.warning-panel {
289 margin-bottom: 1rem;
290 border: 1px solid #facc15;
291 border-radius: 0.25rem;
292 background: #fef9c3;
293 padding: 0.5rem;
295​
296.code-block {
297 overflow: auto;
298 border-radius: 0.25rem;
299 background: #f3f4f6;
300 padding: 0.5rem;
301 font-size: 0.75rem;
303​
304.router-root {
305 display: flex;
306 flex-direction: column;
307 gap: 0.5rem;
308 padding: 0.5rem;
310​
311.page-title {
312 margin-bottom: 0.25rem;
313 font-size: 1.5rem;
314 font-weight: 600;
316​
317.disabled-button:disabled {
318 color: #6b7280;
319 cursor: not-allowed;
321​
322.pagination-controls {
323 margin-block: 0.5rem;
325​
326.column-size-input {
327 width: 6rem;
328 margin-left: 0.5rem;
329 border: 1px solid currentColor;
330 border-radius: 0.25rem;
331 padding: 0.25rem;
333​
334.form-status {
335 display: flex;
336 gap: 1rem;
337 font-size: 0.875rem;
339​
340.centered-button-row {
341 display: flex;
342 flex-wrap: wrap;
343 justify-content: center;
344 gap: 0.5rem;
346​
347.split-gap {
348 gap: 1rem;
350​
351.demo-link {
352 color: #2563eb;
353 text-decoration: underline;
355​
356.capitalized-text {
357 text-transform: capitalize;
359​
360.centered-text {
361 text-align: center;
363​
364.centered-strong-text {
365 text-align: center;
366 font-weight: 600;
368​
369.virtualized-title {
370 text-align: center;
371 font-size: 1.875rem;
372 font-weight: 700;