root / tei / css / datatables_table.css @ 2
Historique | Voir | Annoter | Télécharger (9,44 ko)
1 |
/*
|
---|---|
2 |
* File: demo_table.css
|
3 |
* CVS: $Id$
|
4 |
* Description: CSS descriptions for DataTables demo pages
|
5 |
* Author: Allan Jardine
|
6 |
* Created: Tue May 12 06:47:22 BST 2009
|
7 |
* Modified: $Date$ by $Author$
|
8 |
* Language: CSS
|
9 |
* Project: DataTables
|
10 |
*
|
11 |
* Copyright 2009 Allan Jardine. All Rights Reserved.
|
12 |
*
|
13 |
* ***************************************************************************
|
14 |
* DESCRIPTION
|
15 |
*
|
16 |
* The styles given here are suitable for the demos that are used with the standard DataTables
|
17 |
* distribution (see www.datatables.net). You will most likely wish to modify these styles to
|
18 |
* meet the layout requirements of your site.
|
19 |
*
|
20 |
* Common issues:
|
21 |
* 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
|
22 |
* no conflict between the two pagination types. If you want to use full_numbers pagination
|
23 |
* ensure that you either have "tableau_alt_pagination" as a body class name, or better yet,
|
24 |
* modify that selector.
|
25 |
* Note that the path used for Images is relative. All images are by default located in
|
26 |
* ../img/ - relative to this CSS file.
|
27 |
*/
|
28 |
|
29 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
30 |
* DataTables features
|
31 |
*/
|
32 |
|
33 |
|
34 |
.dataTables_wrapper {
|
35 |
position: relative; |
36 |
min-height: 302px; |
37 |
clear: both; |
38 |
_height: 302px; |
39 |
zoom: 1; /* Feeling sorry for IE */ |
40 |
} |
41 |
|
42 |
.dataTables_processing {
|
43 |
position: absolute; |
44 |
top: 50%; |
45 |
left: 50%; |
46 |
width: 250px; |
47 |
height: 30px; |
48 |
margin-left: -125px; |
49 |
margin-top: -15px; |
50 |
padding: 14px 0 2px 0; |
51 |
border: 1px solid #ddd; |
52 |
text-align: center; |
53 |
color: #999; |
54 |
font-size: 14px; |
55 |
background-color: white; |
56 |
} |
57 |
|
58 |
.dataTables_length {
|
59 |
width: 40%; |
60 |
float: left; |
61 |
} |
62 |
|
63 |
.dataTables_filter {
|
64 |
width: 50%; |
65 |
float: right; |
66 |
text-align: right; |
67 |
} |
68 |
|
69 |
.dataTables_info {
|
70 |
width: 60%; |
71 |
float: left; |
72 |
} |
73 |
|
74 |
.dataTables_paginate {
|
75 |
width: 44px; |
76 |
* width: 50px; |
77 |
float: right; |
78 |
text-align: right; |
79 |
} |
80 |
|
81 |
/* Pagination nested */
|
82 |
.paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next { |
83 |
height: 19px; |
84 |
width: 19px; |
85 |
margin-left: 3px; |
86 |
float: left; |
87 |
} |
88 |
|
89 |
.paginate_disabled_previous {
|
90 |
background-image: url('../img/back_disabled.jpg'); |
91 |
} |
92 |
|
93 |
.paginate_enabled_previous {
|
94 |
background-image: url('../img/back_enabled.jpg'); |
95 |
} |
96 |
|
97 |
.paginate_disabled_next {
|
98 |
background-image: url('../img/forward_disabled.jpg'); |
99 |
} |
100 |
|
101 |
.paginate_enabled_next {
|
102 |
background-image: url('../img/forward_enabled.jpg'); |
103 |
} |
104 |
|
105 |
|
106 |
|
107 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
108 |
* DataTables display
|
109 |
*/
|
110 |
table.display { |
111 |
margin: 0 auto; |
112 |
clear: both; |
113 |
width: auto; |
114 |
|
115 |
/* Note Firefox 3.5 and before have a bug with border-collapse
|
116 |
* ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
|
117 |
* border-spacing: 0; is one possible option. Conditional-css.com is
|
118 |
* useful for this kind of thing
|
119 |
*
|
120 |
* Further note IE 6/7 has problems when calculating widths with border width.
|
121 |
* It subtracts one px relative to the other browsers from the first column, and
|
122 |
* adds one to the end...
|
123 |
*
|
124 |
* If you want that effect I'd suggest setting a border-top/left on th/td's and
|
125 |
* then filling in the gaps with other borders.
|
126 |
*/
|
127 |
} |
128 |
|
129 |
table.display thead th { |
130 |
width:auto; |
131 |
padding: 5px; |
132 |
border-bottom: 1px solid black; |
133 |
font-weight: bold; |
134 |
cursor: pointer; |
135 |
* cursor: hand; |
136 |
} |
137 |
|
138 |
table.display tfoot th { |
139 |
width:auto; |
140 |
padding: 5px; |
141 |
border-top: 1px solid black; |
142 |
font-weight: bold; |
143 |
} |
144 |
|
145 |
table.display tr.heading2 td { |
146 |
width:auto; |
147 |
border-bottom: 1px solid #aaa; |
148 |
} |
149 |
|
150 |
table.display td { |
151 |
width:auto; |
152 |
padding: 5px; |
153 |
} |
154 |
|
155 |
table.display td.center { |
156 |
width:80px; |
157 |
text-align: center; |
158 |
} |
159 |
|
160 |
|
161 |
|
162 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
163 |
* DataTables sorting
|
164 |
*/
|
165 |
|
166 |
.sorting_asc {
|
167 |
background: url('../img/sort_asc.png') no-repeat center right; |
168 |
} |
169 |
|
170 |
.sorting_desc {
|
171 |
background: url('../img/sort_desc.png') no-repeat center right; |
172 |
} |
173 |
|
174 |
.sorting {
|
175 |
background: url('../img/sort_both.png') no-repeat center right; |
176 |
} |
177 |
|
178 |
.sorting_asc_disabled {
|
179 |
background: url('../img/sort_asc_disabled.png') no-repeat center right; |
180 |
} |
181 |
|
182 |
.sorting_desc_disabled {
|
183 |
background: url('../img/sort_desc_disabled.png') no-repeat center right; |
184 |
} |
185 |
|
186 |
|
187 |
|
188 |
|
189 |
|
190 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
191 |
* DataTables row classes
|
192 |
*/
|
193 |
table.display tr.odd.gradeA { |
194 |
background-color: #ddffdd; |
195 |
} |
196 |
|
197 |
table.display tr.even.gradeA { |
198 |
background-color: #eeffee; |
199 |
} |
200 |
|
201 |
table.display tr.odd.gradeC { |
202 |
background-color: #ddddff; |
203 |
} |
204 |
|
205 |
table.display tr.even.gradeC { |
206 |
background-color: #eeeeff; |
207 |
} |
208 |
|
209 |
table.display tr.odd.gradeX { |
210 |
background-color: #ddd; |
211 |
} |
212 |
|
213 |
table.display tr.even.gradeX { |
214 |
background-color: #eee; |
215 |
} |
216 |
|
217 |
table.display tr.odd.gradeU { |
218 |
background-color: #ddd; |
219 |
} |
220 |
|
221 |
table.display tr.even.gradeU { |
222 |
background-color: #eee; |
223 |
} |
224 |
|
225 |
|
226 |
tr.odd { |
227 |
background-color: #E2E4FF; |
228 |
} |
229 |
|
230 |
tr.even { |
231 |
background-color: white; |
232 |
} |
233 |
|
234 |
|
235 |
|
236 |
|
237 |
|
238 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
239 |
* Misc
|
240 |
*/
|
241 |
.dataTables_scroll {
|
242 |
clear: both; |
243 |
} |
244 |
|
245 |
.dataTables_scrollBody {
|
246 |
*margin-top: -1px; |
247 |
} |
248 |
|
249 |
.top, .bottom { |
250 |
padding: 15px; |
251 |
background-color: #F5F5F5; |
252 |
border: 1px solid #CCCCCC; |
253 |
} |
254 |
|
255 |
.top .dataTables_info { |
256 |
float: none; |
257 |
} |
258 |
|
259 |
.clear {
|
260 |
clear: both; |
261 |
} |
262 |
|
263 |
.dataTables_empty {
|
264 |
text-align: center; |
265 |
} |
266 |
|
267 |
tfoot input { |
268 |
margin: 0.5em 0; |
269 |
width: 100%; |
270 |
color: #444; |
271 |
} |
272 |
|
273 |
tfoot input.search_init { |
274 |
color: #999; |
275 |
} |
276 |
|
277 |
td.group { |
278 |
background-color: #d1cfd0; |
279 |
border-bottom: 2px solid #A19B9E; |
280 |
border-top: 2px solid #A19B9E; |
281 |
} |
282 |
|
283 |
td.details { |
284 |
background-color: #d1cfd0; |
285 |
border: 2px solid #A19B9E; |
286 |
} |
287 |
|
288 |
|
289 |
.tableau_alt_pagination div.dataTables_info { |
290 |
width: 40%; |
291 |
} |
292 |
|
293 |
.paging_full_numbers {
|
294 |
width: 400px; |
295 |
height: 22px; |
296 |
line-height: 22px; |
297 |
} |
298 |
|
299 |
.paging_full_numbers span.paginate_button, |
300 |
.paging_full_numbers span.paginate_active { |
301 |
border: 1px solid #aaa; |
302 |
-webkit-border-radius: 5px; |
303 |
-moz-border-radius: 5px; |
304 |
padding: 2px 5px; |
305 |
margin: 0 3px; |
306 |
cursor: pointer; |
307 |
*cursor: hand; |
308 |
} |
309 |
|
310 |
.paging_full_numbers span.paginate_button { |
311 |
background-color: #ddd; |
312 |
} |
313 |
|
314 |
.paging_full_numbers span.paginate_button:hover { |
315 |
background-color: #ccc; |
316 |
} |
317 |
|
318 |
.paging_full_numbers span.paginate_active { |
319 |
background-color: #99B3FF; |
320 |
} |
321 |
|
322 |
table.display tr.even.row_selected td { |
323 |
background-color: #B0BED9; |
324 |
} |
325 |
|
326 |
table.display tr.odd.row_selected td { |
327 |
background-color: #9FAFD1; |
328 |
} |
329 |
|
330 |
|
331 |
/*
|
332 |
* Sorting classes for columns
|
333 |
*/
|
334 |
/* For the standard odd/even */
|
335 |
tr.odd td.sorting_1 { |
336 |
background-color: #D3D6FF; |
337 |
} |
338 |
|
339 |
tr.odd td.sorting_2 { |
340 |
background-color: #DADCFF; |
341 |
} |
342 |
|
343 |
tr.odd td.sorting_3 { |
344 |
background-color: #E0E2FF; |
345 |
} |
346 |
|
347 |
tr.even td.sorting_1 { |
348 |
background-color: #EAEBFF; |
349 |
} |
350 |
|
351 |
tr.even td.sorting_2 { |
352 |
background-color: #F2F3FF; |
353 |
} |
354 |
|
355 |
tr.even td.sorting_3 { |
356 |
background-color: #F9F9FF; |
357 |
} |
358 |
|
359 |
|
360 |
/* For the Conditional-CSS grading rows */
|
361 |
/*
|
362 |
Colour calculations (based off the main row colours)
|
363 |
Level 1:
|
364 |
dd > c4
|
365 |
ee > d5
|
366 |
Level 2:
|
367 |
dd > d1
|
368 |
ee > e2
|
369 |
*/
|
370 |
tr.odd.gradeA td.sorting_1 { |
371 |
background-color: #c4ffc4; |
372 |
} |
373 |
|
374 |
tr.odd.gradeA td.sorting_2 { |
375 |
background-color: #d1ffd1; |
376 |
} |
377 |
|
378 |
tr.odd.gradeA td.sorting_3 { |
379 |
background-color: #d1ffd1; |
380 |
} |
381 |
|
382 |
tr.even.gradeA td.sorting_1 { |
383 |
background-color: #d5ffd5; |
384 |
} |
385 |
|
386 |
tr.even.gradeA td.sorting_2 { |
387 |
background-color: #e2ffe2; |
388 |
} |
389 |
|
390 |
tr.even.gradeA td.sorting_3 { |
391 |
background-color: #e2ffe2; |
392 |
} |
393 |
|
394 |
tr.odd.gradeC td.sorting_1 { |
395 |
background-color: #c4c4ff; |
396 |
} |
397 |
|
398 |
tr.odd.gradeC td.sorting_2 { |
399 |
background-color: #d1d1ff; |
400 |
} |
401 |
|
402 |
tr.odd.gradeC td.sorting_3 { |
403 |
background-color: #d1d1ff; |
404 |
} |
405 |
|
406 |
tr.even.gradeC td.sorting_1 { |
407 |
background-color: #d5d5ff; |
408 |
} |
409 |
|
410 |
tr.even.gradeC td.sorting_2 { |
411 |
background-color: #e2e2ff; |
412 |
} |
413 |
|
414 |
tr.even.gradeC td.sorting_3 { |
415 |
background-color: #e2e2ff; |
416 |
} |
417 |
|
418 |
tr.odd.gradeX td.sorting_1 { |
419 |
background-color: #ddd; |
420 |
} |
421 |
|
422 |
tr.odd.gradeX td.sorting_2 { |
423 |
background-color: #ddd; |
424 |
} |
425 |
|
426 |
tr.odd.gradeX td.sorting_3 { |
427 |
background-color: #ddd; |
428 |
} |
429 |
|
430 |
tr.even.gradeX td.sorting_1 { |
431 |
background-color: #eee; |
432 |
} |
433 |
|
434 |
tr.even.gradeX td.sorting_2 { |
435 |
background-color: #eee; |
436 |
} |
437 |
|
438 |
tr.even.gradeX td.sorting_3 { |
439 |
background-color: #eee; |
440 |
} |
441 |
|
442 |
tr.odd.gradeU td.sorting_1 { |
443 |
background-color: #c4c4c4; |
444 |
} |
445 |
|
446 |
tr.odd.gradeU td.sorting_2 { |
447 |
background-color: #d1d1d1; |
448 |
} |
449 |
|
450 |
tr.odd.gradeU td.sorting_3 { |
451 |
background-color: #d1d1d1; |
452 |
} |
453 |
|
454 |
tr.even.gradeU td.sorting_1 { |
455 |
background-color: #d5d5d5; |
456 |
} |
457 |
|
458 |
tr.even.gradeU td.sorting_2 { |
459 |
background-color: #e2e2e2; |
460 |
} |
461 |
|
462 |
tr.even.gradeU td.sorting_3 { |
463 |
background-color: #e2e2e2; |
464 |
} |
465 |
|
466 |
|
467 |
/*
|
468 |
* Row highlighting tableau
|
469 |
*/
|
470 |
.ex_highlight #tableau tbody tr.even:hover, #tableau tbody tr.even td.highlighted { |
471 |
background-color: #ECFFB3; |
472 |
} |
473 |
|
474 |
.ex_highlight #tableau tbody tr.odd:hover, #tableau tbody tr.odd td.highlighted { |
475 |
background-color: #E6FF99; |
476 |
} |
477 |
|
478 |
.ex_highlight_row #tableau tr.even:hover { |
479 |
background-color: #ECFFB3; |
480 |
} |
481 |
|
482 |
.ex_highlight_row #tableau tr.even:hover td.sorting_1 { |
483 |
background-color: #DDFF75; |
484 |
} |
485 |
|
486 |
.ex_highlight_row #tableau tr.even:hover td.sorting_2 { |
487 |
background-color: #E7FF9E; |
488 |
} |
489 |
|
490 |
.ex_highlight_row #tableau tr.even:hover td.sorting_3 { |
491 |
background-color: #E2FF89; |
492 |
} |
493 |
|
494 |
.ex_highlight_row #tableau tr.odd:hover { |
495 |
background-color: #E6FF99; |
496 |
} |
497 |
|
498 |
.ex_highlight_row #tableau tr.odd:hover td.sorting_1 { |
499 |
background-color: #D6FF5C; |
500 |
} |
501 |
|
502 |
.ex_highlight_row #tableau tr.odd:hover td.sorting_2 { |
503 |
background-color: #E0FF84; |
504 |
} |
505 |
|
506 |
.ex_highlight_row #tableau tr.odd:hover td.sorting_3 { |
507 |
background-color: #DBFF70; |
508 |
} |
509 |
|
510 |
|
511 |
/*
|
512 |
* KeyTable
|
513 |
*/
|
514 |
table.KeyTable td { |
515 |
border: 3px solid transparent; |
516 |
} |
517 |
|
518 |
table.KeyTable td.focus { |
519 |
border: 3px solid #3366FF; |
520 |
} |
521 |
|
522 |
table.display tr.gradeA { |
523 |
background-color: #eeffee; |
524 |
} |
525 |
|
526 |
table.display tr.gradeC { |
527 |
background-color: #ddddff; |
528 |
} |
529 |
|
530 |
table.display tr.gradeX { |
531 |
background-color: #ddd; |
532 |
} |
533 |
|
534 |
table.display tr.gradeU { |
535 |
background-color: #ddd; |
536 |
} |
537 |
|
538 |
div.box { |
539 |
height: 100px; |
540 |
padding: 10px; |
541 |
overflow: auto; |
542 |
border: 1px solid #8080FF; |
543 |
background-color: #E5E5FF; |
544 |
} |