root / tei / css / datatables_jui.css @ 2
Historique | Voir | Annoter | Télécharger (8,4 ko)
1 |
/*
|
---|---|
2 |
* File: demo_table_jui.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 "example_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 |
/*
|
31 |
* jQuery UI specific styling
|
32 |
*/
|
33 |
|
34 |
.paging_two_button .ui-button { |
35 |
float: left; |
36 |
cursor: pointer; |
37 |
* cursor: hand; |
38 |
} |
39 |
|
40 |
.paging_full_numbers .ui-button { |
41 |
padding: 2px 6px; |
42 |
margin: 0; |
43 |
cursor: pointer; |
44 |
* cursor: hand; |
45 |
} |
46 |
|
47 |
.ui-buttonset .ui-button { |
48 |
margin-right: -0.1em !important; |
49 |
} |
50 |
|
51 |
.paging_full_numbers {
|
52 |
width: 350px !important; |
53 |
} |
54 |
|
55 |
.ui-toolbar {
|
56 |
padding: 5px; |
57 |
} |
58 |
|
59 |
.dataTables_paginate {
|
60 |
width: auto; |
61 |
} |
62 |
|
63 |
.dataTables_info {
|
64 |
padding-top: 3px; |
65 |
} |
66 |
|
67 |
table.display thead th { |
68 |
padding: 3px 0px 3px 10px; |
69 |
cursor: pointer; |
70 |
* cursor: hand; |
71 |
} |
72 |
|
73 |
|
74 |
/*
|
75 |
* Sort arrow icon positioning
|
76 |
*/
|
77 |
table.display thead th div.DataTables_sort_wrapper { |
78 |
position: relative; |
79 |
padding-right: 20px; |
80 |
padding-right: 20px; |
81 |
} |
82 |
|
83 |
table.display thead th div.DataTables_sort_wrapper span { |
84 |
position: absolute; |
85 |
top: 50%; |
86 |
margin-top: -8px; |
87 |
right: 0; |
88 |
} |
89 |
|
90 |
|
91 |
|
92 |
|
93 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
94 |
*
|
95 |
* Everything below this line is the same as demo_table.css. This file is
|
96 |
* required for 'cleanliness' of the markup
|
97 |
*
|
98 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
99 |
|
100 |
|
101 |
|
102 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
103 |
* DataTables features
|
104 |
*/
|
105 |
|
106 |
.dataTables_wrapper {
|
107 |
position: relative; |
108 |
min-height: 302px; |
109 |
_height: 302px; |
110 |
clear: both; |
111 |
} |
112 |
|
113 |
.dataTables_processing {
|
114 |
position: absolute; |
115 |
top: 0px; |
116 |
left: 50%; |
117 |
width: 250px; |
118 |
margin-left: -125px; |
119 |
border: 1px solid #ddd; |
120 |
text-align: center; |
121 |
color: #999; |
122 |
font-size: 11px; |
123 |
padding: 2px 0; |
124 |
} |
125 |
|
126 |
.dataTables_length {
|
127 |
width: 40%; |
128 |
float: left; |
129 |
} |
130 |
|
131 |
.dataTables_filter {
|
132 |
width: 50%; |
133 |
float: right; |
134 |
text-align: right; |
135 |
} |
136 |
|
137 |
.dataTables_info {
|
138 |
width: 50%; |
139 |
float: left; |
140 |
} |
141 |
|
142 |
.dataTables_paginate {
|
143 |
float: right; |
144 |
text-align: right; |
145 |
} |
146 |
|
147 |
/* Pagination nested */
|
148 |
.paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next { |
149 |
height: 19px; |
150 |
width: 19px; |
151 |
margin-left: 3px; |
152 |
float: left; |
153 |
} |
154 |
|
155 |
.paginate_disabled_previous {
|
156 |
background-image: url('../img/back_disabled.jpg'); |
157 |
} |
158 |
|
159 |
.paginate_enabled_previous {
|
160 |
background-image: url('../img/back_enabled.jpg'); |
161 |
} |
162 |
|
163 |
.paginate_disabled_next {
|
164 |
background-image: url('../img/forward_disabled.jpg'); |
165 |
} |
166 |
|
167 |
.paginate_enabled_next {
|
168 |
background-image: url('../img/forward_enabled.jpg'); |
169 |
} |
170 |
|
171 |
|
172 |
|
173 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
174 |
* DataTables display
|
175 |
*/
|
176 |
table.display { |
177 |
margin: 0 auto; |
178 |
width: 100%; |
179 |
clear: both; |
180 |
border-collapse: collapse; |
181 |
} |
182 |
|
183 |
table.display tfoot th { |
184 |
padding: 3px 0px 3px 10px; |
185 |
font-weight: bold; |
186 |
font-weight: normal; |
187 |
} |
188 |
|
189 |
table.display tr.heading2 td { |
190 |
border-bottom: 1px solid #aaa; |
191 |
} |
192 |
|
193 |
table.display td { |
194 |
padding: 3px 10px; |
195 |
} |
196 |
|
197 |
table.display td.center { |
198 |
text-align: center; |
199 |
} |
200 |
|
201 |
|
202 |
|
203 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
204 |
* DataTables sorting
|
205 |
*/
|
206 |
|
207 |
.sorting_asc {
|
208 |
background: url('../img/sort_asc.jpg') no-repeat center right; |
209 |
} |
210 |
|
211 |
.sorting_desc {
|
212 |
background: url('../img/sort_desc.jpg') no-repeat center right; |
213 |
} |
214 |
|
215 |
.sorting {
|
216 |
background: url('../img/sort_both.jpg') no-repeat center right; |
217 |
} |
218 |
|
219 |
|
220 |
|
221 |
|
222 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
223 |
* DataTables row classes
|
224 |
*/
|
225 |
table.display tr.odd.gradeA { |
226 |
background-color: #ddffdd; |
227 |
} |
228 |
|
229 |
table.display tr.even.gradeA { |
230 |
background-color: #eeffee; |
231 |
} |
232 |
|
233 |
|
234 |
|
235 |
|
236 |
table.display tr.odd.gradeA { |
237 |
background-color: #ddffdd; |
238 |
} |
239 |
|
240 |
table.display tr.even.gradeA { |
241 |
background-color: #eeffee; |
242 |
} |
243 |
|
244 |
table.display tr.odd.gradeC { |
245 |
background-color: #ddddff; |
246 |
} |
247 |
|
248 |
table.display tr.even.gradeC { |
249 |
background-color: #eeeeff; |
250 |
} |
251 |
|
252 |
table.display tr.odd.gradeX { |
253 |
background-color: #ffdddd; |
254 |
} |
255 |
|
256 |
table.display tr.even.gradeX { |
257 |
background-color: #ffeeee; |
258 |
} |
259 |
|
260 |
table.display tr.odd.gradeU { |
261 |
background-color: #ddd; |
262 |
} |
263 |
|
264 |
table.display tr.even.gradeU { |
265 |
background-color: #eee; |
266 |
} |
267 |
|
268 |
|
269 |
tr.odd { |
270 |
background-color: #E2E4FF; |
271 |
} |
272 |
|
273 |
tr.even { |
274 |
background-color: white; |
275 |
} |
276 |
|
277 |
|
278 |
|
279 |
|
280 |
|
281 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
282 |
* Misc
|
283 |
*/
|
284 |
.dataTables_scroll {
|
285 |
clear: both; |
286 |
} |
287 |
|
288 |
.top, .bottom { |
289 |
padding: 15px; |
290 |
background-color: #F5F5F5; |
291 |
border: 1px solid #CCCCCC; |
292 |
} |
293 |
|
294 |
.top .dataTables_info { |
295 |
float: none; |
296 |
} |
297 |
|
298 |
.clear {
|
299 |
clear: both; |
300 |
} |
301 |
|
302 |
.dataTables_empty {
|
303 |
text-align: center; |
304 |
} |
305 |
|
306 |
tfoot input { |
307 |
margin: 0.5em 0; |
308 |
width: 100%; |
309 |
color: #444; |
310 |
} |
311 |
|
312 |
tfoot input.search_init { |
313 |
color: #999; |
314 |
} |
315 |
|
316 |
td.group { |
317 |
background-color: #d1cfd0; |
318 |
border-bottom: 2px solid #A19B9E; |
319 |
border-top: 2px solid #A19B9E; |
320 |
} |
321 |
|
322 |
td.details { |
323 |
background-color: #d1cfd0; |
324 |
border: 2px solid #A19B9E; |
325 |
} |
326 |
|
327 |
|
328 |
.example_alt_pagination div.dataTables_info { |
329 |
width: 40%; |
330 |
} |
331 |
|
332 |
.paging_full_numbers span.paginate_button, |
333 |
.paging_full_numbers span.paginate_active { |
334 |
border: 1px solid #aaa; |
335 |
-webkit-border-radius: 5px; |
336 |
-moz-border-radius: 5px; |
337 |
padding: 2px 5px; |
338 |
margin: 0 3px; |
339 |
cursor: pointer; |
340 |
*cursor: hand; |
341 |
} |
342 |
|
343 |
.paging_full_numbers span.paginate_button { |
344 |
background-color: #ddd; |
345 |
} |
346 |
|
347 |
.paging_full_numbers span.paginate_button:hover { |
348 |
background-color: #ccc; |
349 |
} |
350 |
|
351 |
.paging_full_numbers span.paginate_active { |
352 |
background-color: #99B3FF; |
353 |
} |
354 |
|
355 |
table.display tr.even.row_selected td { |
356 |
background-color: #B0BED9; |
357 |
} |
358 |
|
359 |
table.display tr.odd.row_selected td { |
360 |
background-color: #9FAFD1; |
361 |
} |
362 |
|
363 |
|
364 |
/*
|
365 |
* Sorting classes for columns
|
366 |
*/
|
367 |
/* For the standard odd/even */
|
368 |
tr.odd td.sorting_1 { |
369 |
background-color: #D3D6FF; |
370 |
} |
371 |
|
372 |
tr.odd td.sorting_2 { |
373 |
background-color: #DADCFF; |
374 |
} |
375 |
|
376 |
tr.odd td.sorting_3 { |
377 |
background-color: #E0E2FF; |
378 |
} |
379 |
|
380 |
tr.even td.sorting_1 { |
381 |
background-color: #EAEBFF; |
382 |
} |
383 |
|
384 |
tr.even td.sorting_2 { |
385 |
background-color: #F2F3FF; |
386 |
} |
387 |
|
388 |
tr.even td.sorting_3 { |
389 |
background-color: #F9F9FF; |
390 |
} |
391 |
|
392 |
|
393 |
/* For the Conditional-CSS grading rows */
|
394 |
/*
|
395 |
Colour calculations (based off the main row colours)
|
396 |
Level 1:
|
397 |
dd > c4
|
398 |
ee > d5
|
399 |
Level 2:
|
400 |
dd > d1
|
401 |
ee > e2
|
402 |
*/
|
403 |
tr.odd.gradeA td.sorting_1 { |
404 |
background-color: #c4ffc4; |
405 |
} |
406 |
|
407 |
tr.odd.gradeA td.sorting_2 { |
408 |
background-color: #d1ffd1; |
409 |
} |
410 |
|
411 |
tr.odd.gradeA td.sorting_3 { |
412 |
background-color: #d1ffd1; |
413 |
} |
414 |
|
415 |
tr.even.gradeA td.sorting_1 { |
416 |
background-color: #d5ffd5; |
417 |
} |
418 |
|
419 |
tr.even.gradeA td.sorting_2 { |
420 |
background-color: #e2ffe2; |
421 |
} |
422 |
|
423 |
tr.even.gradeA td.sorting_3 { |
424 |
background-color: #e2ffe2; |
425 |
} |
426 |
|
427 |
tr.odd.gradeC td.sorting_1 { |
428 |
background-color: #c4c4ff; |
429 |
} |
430 |
|
431 |
tr.odd.gradeC td.sorting_2 { |
432 |
background-color: #d1d1ff; |
433 |
} |
434 |
|
435 |
tr.odd.gradeC td.sorting_3 { |
436 |
background-color: #d1d1ff; |
437 |
} |
438 |
|
439 |
tr.even.gradeC td.sorting_1 { |
440 |
background-color: #d5d5ff; |
441 |
} |
442 |
|
443 |
tr.even.gradeC td.sorting_2 { |
444 |
background-color: #e2e2ff; |
445 |
} |
446 |
|
447 |
tr.even.gradeC td.sorting_3 { |
448 |
background-color: #e2e2ff; |
449 |
} |
450 |
|
451 |
tr.odd.gradeX td.sorting_1 { |
452 |
background-color: #ffc4c4; |
453 |
} |
454 |
|
455 |
tr.odd.gradeX td.sorting_2 { |
456 |
background-color: #ffd1d1; |
457 |
} |
458 |
|
459 |
tr.odd.gradeX td.sorting_3 { |
460 |
background-color: #ffd1d1; |
461 |
} |
462 |
|
463 |
tr.even.gradeX td.sorting_1 { |
464 |
background-color: #ffd5d5; |
465 |
} |
466 |
|
467 |
tr.even.gradeX td.sorting_2 { |
468 |
background-color: #ffe2e2; |
469 |
} |
470 |
|
471 |
tr.even.gradeX td.sorting_3 { |
472 |
background-color: #ffe2e2; |
473 |
} |
474 |
|
475 |
tr.odd.gradeU td.sorting_1 { |
476 |
background-color: #c4c4c4; |
477 |
} |
478 |
|
479 |
tr.odd.gradeU td.sorting_2 { |
480 |
background-color: #d1d1d1; |
481 |
} |
482 |
|
483 |
tr.odd.gradeU td.sorting_3 { |
484 |
background-color: #d1d1d1; |
485 |
} |
486 |
|
487 |
tr.even.gradeU td.sorting_1 { |
488 |
background-color: #d5d5d5; |
489 |
} |
490 |
|
491 |
tr.even.gradeU td.sorting_2 { |
492 |
background-color: #e2e2e2; |
493 |
} |
494 |
|
495 |
tr.even.gradeU td.sorting_3 { |
496 |
background-color: #e2e2e2; |
497 |
} |
498 |
|
499 |
|
500 |
/*
|
501 |
* Row highlighting table
|
502 |
*/
|
503 |
.ex_highlight #tableau tbody tr.even:hover, #tableau tbody tr.even td.highlighted { |
504 |
background-color: #ECFFB3; |
505 |
} |
506 |
|
507 |
.ex_highlight #tableau tbody tr.odd:hover, #tableau tbody tr.odd td.highlighted { |
508 |
background-color: #E6FF99; |
509 |
} |