annotate examples/browser/web/css/data_table.css @ 770:c54bc2ffbf92 tip

update tags
author convert-repo
date Fri, 16 Dec 2011 11:34:01 +0000
parents 901803e1305f
children
rev   line source
mas01mj@640 1 /*
mas01mj@640 2 * File: demo_table.css
mas01mj@640 3 * CVS: $Id$
mas01mj@640 4 * Description: CSS descriptions for DataTables demo pages
mas01mj@640 5 * Author: Allan Jardine
mas01mj@640 6 * Created: Tue May 12 06:47:22 BST 2009
mas01mj@640 7 * Modified: $Date$ by $Author$
mas01mj@640 8 * Language: CSS
mas01mj@640 9 * Project: DataTables
mas01mj@640 10 *
mas01mj@640 11 * Copyright 2009 Allan Jardine. All Rights Reserved.
mas01mj@640 12 *
mas01mj@640 13 * ***************************************************************************
mas01mj@640 14 * DESCRIPTION
mas01mj@640 15 *
mas01mj@640 16 * The styles given here are suitable for the demos that are used with the standard DataTables
mas01mj@640 17 * distribution (see www.datatables.net). You will most likely wish to modify these styles to
mas01mj@640 18 * meet the layout requirements of your site.
mas01mj@640 19 *
mas01mj@640 20 * Common issues:
mas01mj@640 21 * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
mas01mj@640 22 * no conflict between the two pagination types. If you want to use full_numbers pagination
mas01mj@640 23 * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
mas01mj@640 24 * modify that selector.
mas01mj@640 25 * Note that the path used for Images is relative. All images are by default located in
mas01mj@640 26 * ../images/ - relative to this CSS file.
mas01mj@640 27 */
mas01mj@640 28
mas01mj@640 29 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
mas01mj@640 30 * DataTables features
mas01mj@640 31 */
mas01mj@640 32
mas01mj@640 33 .dataTables_wrapper {
mas01mj@640 34 position: relative;
mas01mj@640 35 min-height: 302px;
mas01mj@640 36 _height: 302px;
mas01mj@640 37 clear: both;
mas01mj@640 38 }
mas01mj@640 39
mas01mj@640 40 .dataTables_processing {
mas01mj@640 41 position: absolute;
mas01mj@640 42 top: 0px;
mas01mj@640 43 left: 50%;
mas01mj@640 44 width: 250px;
mas01mj@640 45 margin-left: -125px;
mas01mj@640 46 border: 1px solid #ddd;
mas01mj@640 47 text-align: center;
mas01mj@640 48 color: #999;
mas01mj@640 49 font-size: 11px;
mas01mj@640 50 padding: 2px 0;
mas01mj@640 51 }
mas01mj@640 52
mas01mj@640 53 .dataTables_length {
mas01mj@640 54 width: 40%;
mas01mj@640 55 float: left;
mas01mj@640 56 }
mas01mj@640 57
mas01mj@640 58 .dataTables_filter {
mas01mj@640 59 width: 50%;
mas01mj@640 60 float: right;
mas01mj@640 61 text-align: right;
mas01mj@640 62 }
mas01mj@640 63
mas01mj@640 64 .dataTables_info {
mas01mj@640 65 width: 60%;
mas01mj@640 66 float: left;
mas01mj@640 67 }
mas01mj@640 68
mas01mj@640 69 .dataTables_paginate {
mas01mj@640 70 width: 44px;
mas01mj@640 71 * width: 50px;
mas01mj@640 72 float: right;
mas01mj@640 73 text-align: right;
mas01mj@640 74 }
mas01mj@640 75
mas01mj@640 76 /* Pagination nested */
mas01mj@640 77 .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
mas01mj@640 78 height: 19px;
mas01mj@640 79 width: 19px;
mas01mj@640 80 margin-left: 3px;
mas01mj@640 81 float: left;
mas01mj@640 82 }
mas01mj@640 83
mas01mj@640 84 .paginate_disabled_previous {
mas01mj@640 85 background-image: url('../img/back_disabled.jpg');
mas01mj@640 86 }
mas01mj@640 87
mas01mj@640 88 .paginate_enabled_previous {
mas01mj@640 89 background-image: url('../img/back_enabled.jpg');
mas01mj@640 90 }
mas01mj@640 91
mas01mj@640 92 .paginate_disabled_next {
mas01mj@640 93 background-image: url('../img/forward_disabled.jpg');
mas01mj@640 94 }
mas01mj@640 95
mas01mj@640 96 .paginate_enabled_next {
mas01mj@640 97 background-image: url('../img/forward_enabled.jpg');
mas01mj@640 98 }
mas01mj@640 99
mas01mj@640 100
mas01mj@640 101
mas01mj@640 102 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
mas01mj@640 103 * DataTables display
mas01mj@640 104 */
mas01mj@640 105 table.display {
mas01mj@640 106 margin: 0 auto;
mas01mj@640 107 width: 100%;
mas01mj@640 108 clear: both;
mas01mj@640 109 }
mas01mj@640 110
mas01mj@640 111 table.display thead th {
mas01mj@640 112 padding: 3px 18px 3px 10px;
mas01mj@640 113 border-bottom: 1px solid black;
mas01mj@640 114 font-weight: bold;
mas01mj@640 115 cursor: pointer;
mas01mj@640 116 * cursor: hand;
mas01mj@640 117 }
mas01mj@640 118
mas01mj@640 119 table.display tfoot th {
mas01mj@640 120 padding: 3px 10px;
mas01mj@640 121 border-top: 1px solid black;
mas01mj@640 122 font-weight: bold;
mas01mj@640 123 }
mas01mj@640 124
mas01mj@640 125 table.display tr.heading2 td {
mas01mj@640 126 border-bottom: 1px solid #aaa;
mas01mj@640 127 }
mas01mj@640 128
mas01mj@640 129 table.display td {
mas01mj@640 130 padding: 3px 10px;
mas01mj@640 131 }
mas01mj@640 132
mas01mj@640 133 table.display td.center {
mas01mj@640 134 text-align: center;
mas01mj@640 135 }
mas01mj@640 136
mas01mj@640 137
mas01mj@640 138
mas01mj@640 139 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
mas01mj@640 140 * DataTables sorting
mas01mj@640 141 */
mas01mj@640 142
mas01mj@640 143 .sorting_asc {
mas01mj@640 144 background: url('../img/sort_asc.jpg') no-repeat center right;
mas01mj@640 145 }
mas01mj@640 146
mas01mj@640 147 .sorting_desc {
mas01mj@640 148 background: url('../img/sort_desc.jpg') no-repeat center right;
mas01mj@640 149 }
mas01mj@640 150
mas01mj@640 151 .sorting {
mas01mj@640 152 background: url('../img/sort_both.jpg') no-repeat center right;
mas01mj@640 153 }
mas01mj@640 154
mas01mj@640 155
mas01mj@640 156
mas01mj@640 157
mas01mj@640 158 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
mas01mj@640 159 * DataTables row classes
mas01mj@640 160 */
mas01mj@640 161 table.display tr.odd.gradeA {
mas01mj@640 162 background-color: #ddffdd;
mas01mj@640 163 }
mas01mj@640 164
mas01mj@640 165 table.display tr.even.gradeA {
mas01mj@640 166 background-color: #eeffee;
mas01mj@640 167 }
mas01mj@640 168
mas01mj@640 169
mas01mj@640 170
mas01mj@640 171
mas01mj@640 172 table.display tr.odd.gradeA {
mas01mj@640 173 background-color: #ddffdd;
mas01mj@640 174 }
mas01mj@640 175
mas01mj@640 176 table.display tr.even.gradeA {
mas01mj@640 177 background-color: #eeffee;
mas01mj@640 178 }
mas01mj@640 179
mas01mj@640 180 table.display tr.odd.gradeC {
mas01mj@640 181 background-color: #ddddff;
mas01mj@640 182 }
mas01mj@640 183
mas01mj@640 184 table.display tr.even.gradeC {
mas01mj@640 185 background-color: #eeeeff;
mas01mj@640 186 }
mas01mj@640 187
mas01mj@640 188 table.display tr.odd.gradeX {
mas01mj@640 189 background-color: #ffdddd;
mas01mj@640 190 }
mas01mj@640 191
mas01mj@640 192 table.display tr.even.gradeX {
mas01mj@640 193 background-color: #ffeeee;
mas01mj@640 194 }
mas01mj@640 195
mas01mj@640 196 table.display tr.odd.gradeU {
mas01mj@640 197 background-color: #ddd;
mas01mj@640 198 }
mas01mj@640 199
mas01mj@640 200 table.display tr.even.gradeU {
mas01mj@640 201 background-color: #eee;
mas01mj@640 202 }
mas01mj@640 203
mas01mj@640 204
mas01mj@640 205 tr.odd {
mas01mj@640 206 background-color: #E2E4FF;
mas01mj@640 207 }
mas01mj@640 208
mas01mj@640 209 tr.even {
mas01mj@640 210 background-color: white;
mas01mj@640 211 }
mas01mj@640 212
mas01mj@640 213
mas01mj@640 214
mas01mj@640 215
mas01mj@640 216
mas01mj@640 217 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
mas01mj@640 218 * Misc
mas01mj@640 219 */
mas01mj@640 220 .top, .bottom {
mas01mj@640 221 padding: 15px;
mas01mj@640 222 background-color: #F5F5F5;
mas01mj@640 223 border: 1px solid #CCCCCC;
mas01mj@640 224 }
mas01mj@640 225
mas01mj@640 226 .top .dataTables_info {
mas01mj@640 227 float: none;
mas01mj@640 228 }
mas01mj@640 229
mas01mj@640 230 .clear {
mas01mj@640 231 clear: both;
mas01mj@640 232 }
mas01mj@640 233
mas01mj@640 234 .dataTables_empty {
mas01mj@640 235 text-align: center;
mas01mj@640 236 }
mas01mj@640 237
mas01mj@640 238 tfoot input {
mas01mj@640 239 margin: 0.5em 0;
mas01mj@640 240 width: 100%;
mas01mj@640 241 color: #444;
mas01mj@640 242 }
mas01mj@640 243
mas01mj@640 244 tfoot input.search_init {
mas01mj@640 245 color: #999;
mas01mj@640 246 }
mas01mj@640 247
mas01mj@640 248 td.group {
mas01mj@640 249 background-color: #d1cfd0;
mas01mj@640 250 border-bottom: 2px solid #A19B9E;
mas01mj@640 251 border-top: 2px solid #A19B9E;
mas01mj@640 252 }
mas01mj@640 253
mas01mj@640 254 td.details {
mas01mj@640 255 background-color: #d1cfd0;
mas01mj@640 256 border: 2px solid #A19B9E;
mas01mj@640 257 }
mas01mj@640 258
mas01mj@640 259
mas01mj@640 260 .example_alt_pagination div.dataTables_info {
mas01mj@640 261 width: 40%;
mas01mj@640 262 }
mas01mj@640 263
mas01mj@640 264 .paging_full_numbers {
mas01mj@640 265 width: 400px;
mas01mj@640 266 height: 22px;
mas01mj@640 267 line-height: 22px;
mas01mj@640 268 }
mas01mj@640 269
mas01mj@640 270 .paging_full_numbers span.paginate_button,
mas01mj@640 271 .paging_full_numbers span.paginate_active {
mas01mj@640 272 border: 1px solid #aaa;
mas01mj@640 273 -webkit-border-radius: 5px;
mas01mj@640 274 -moz-border-radius: 5px;
mas01mj@640 275 padding: 2px 5px;
mas01mj@640 276 margin: 0 3px;
mas01mj@640 277 cursor: pointer;
mas01mj@640 278 *cursor: hand;
mas01mj@640 279 }
mas01mj@640 280
mas01mj@640 281 .paging_full_numbers span.paginate_button {
mas01mj@640 282 background-color: #ddd;
mas01mj@640 283 }
mas01mj@640 284
mas01mj@640 285 .paging_full_numbers span.paginate_button:hover {
mas01mj@640 286 background-color: #ccc;
mas01mj@640 287 }
mas01mj@640 288
mas01mj@640 289 .paging_full_numbers span.paginate_active {
mas01mj@640 290 background-color: #99B3FF;
mas01mj@640 291 }
mas01mj@640 292
mas01mj@640 293 table.display tr.even.row_selected td {
mas01mj@640 294 background-color: #B0BED9;
mas01mj@640 295 }
mas01mj@640 296
mas01mj@640 297 table.display tr.odd.row_selected td {
mas01mj@640 298 background-color: #9FAFD1;
mas01mj@640 299 }
mas01mj@640 300
mas01mj@640 301
mas01mj@640 302 /*
mas01mj@640 303 * Sorting classes for columns
mas01mj@640 304 */
mas01mj@640 305 /* For the standard odd/even */
mas01mj@640 306 tr.odd td.sorting_1 {
mas01mj@640 307 background-color: #D3D6FF;
mas01mj@640 308 }
mas01mj@640 309
mas01mj@640 310 tr.odd td.sorting_2 {
mas01mj@640 311 background-color: #DADCFF;
mas01mj@640 312 }
mas01mj@640 313
mas01mj@640 314 tr.odd td.sorting_3 {
mas01mj@640 315 background-color: #E0E2FF;
mas01mj@640 316 }
mas01mj@640 317
mas01mj@640 318 tr.even td.sorting_1 {
mas01mj@640 319 background-color: #EAEBFF;
mas01mj@640 320 }
mas01mj@640 321
mas01mj@640 322 tr.even td.sorting_2 {
mas01mj@640 323 background-color: #F2F3FF;
mas01mj@640 324 }
mas01mj@640 325
mas01mj@640 326 tr.even td.sorting_3 {
mas01mj@640 327 background-color: #F9F9FF;
mas01mj@640 328 }
mas01mj@640 329
mas01mj@640 330
mas01mj@640 331 /* For the Conditional-CSS grading rows */
mas01mj@640 332 /*
mas01mj@640 333 Colour calculations (based off the main row colours)
mas01mj@640 334 Level 1:
mas01mj@640 335 dd > c4
mas01mj@640 336 ee > d5
mas01mj@640 337 Level 2:
mas01mj@640 338 dd > d1
mas01mj@640 339 ee > e2
mas01mj@640 340 */
mas01mj@640 341 tr.odd.gradeA td.sorting_1 {
mas01mj@640 342 background-color: #c4ffc4;
mas01mj@640 343 }
mas01mj@640 344
mas01mj@640 345 tr.odd.gradeA td.sorting_2 {
mas01mj@640 346 background-color: #d1ffd1;
mas01mj@640 347 }
mas01mj@640 348
mas01mj@640 349 tr.odd.gradeA td.sorting_3 {
mas01mj@640 350 background-color: #d1ffd1;
mas01mj@640 351 }
mas01mj@640 352
mas01mj@640 353 tr.even.gradeA td.sorting_1 {
mas01mj@640 354 background-color: #d5ffd5;
mas01mj@640 355 }
mas01mj@640 356
mas01mj@640 357 tr.even.gradeA td.sorting_2 {
mas01mj@640 358 background-color: #e2ffe2;
mas01mj@640 359 }
mas01mj@640 360
mas01mj@640 361 tr.even.gradeA td.sorting_3 {
mas01mj@640 362 background-color: #e2ffe2;
mas01mj@640 363 }
mas01mj@640 364
mas01mj@640 365 tr.odd.gradeC td.sorting_1 {
mas01mj@640 366 background-color: #c4c4ff;
mas01mj@640 367 }
mas01mj@640 368
mas01mj@640 369 tr.odd.gradeC td.sorting_2 {
mas01mj@640 370 background-color: #d1d1ff;
mas01mj@640 371 }
mas01mj@640 372
mas01mj@640 373 tr.odd.gradeC td.sorting_3 {
mas01mj@640 374 background-color: #d1d1ff;
mas01mj@640 375 }
mas01mj@640 376
mas01mj@640 377 tr.even.gradeC td.sorting_1 {
mas01mj@640 378 background-color: #d5d5ff;
mas01mj@640 379 }
mas01mj@640 380
mas01mj@640 381 tr.even.gradeC td.sorting_2 {
mas01mj@640 382 background-color: #e2e2ff;
mas01mj@640 383 }
mas01mj@640 384
mas01mj@640 385 tr.even.gradeC td.sorting_3 {
mas01mj@640 386 background-color: #e2e2ff;
mas01mj@640 387 }
mas01mj@640 388
mas01mj@640 389 tr.odd.gradeX td.sorting_1 {
mas01mj@640 390 background-color: #ffc4c4;
mas01mj@640 391 }
mas01mj@640 392
mas01mj@640 393 tr.odd.gradeX td.sorting_2 {
mas01mj@640 394 background-color: #ffd1d1;
mas01mj@640 395 }
mas01mj@640 396
mas01mj@640 397 tr.odd.gradeX td.sorting_3 {
mas01mj@640 398 background-color: #ffd1d1;
mas01mj@640 399 }
mas01mj@640 400
mas01mj@640 401 tr.even.gradeX td.sorting_1 {
mas01mj@640 402 background-color: #ffd5d5;
mas01mj@640 403 }
mas01mj@640 404
mas01mj@640 405 tr.even.gradeX td.sorting_2 {
mas01mj@640 406 background-color: #ffe2e2;
mas01mj@640 407 }
mas01mj@640 408
mas01mj@640 409 tr.even.gradeX td.sorting_3 {
mas01mj@640 410 background-color: #ffe2e2;
mas01mj@640 411 }
mas01mj@640 412
mas01mj@640 413 tr.odd.gradeU td.sorting_1 {
mas01mj@640 414 background-color: #c4c4c4;
mas01mj@640 415 }
mas01mj@640 416
mas01mj@640 417 tr.odd.gradeU td.sorting_2 {
mas01mj@640 418 background-color: #d1d1d1;
mas01mj@640 419 }
mas01mj@640 420
mas01mj@640 421 tr.odd.gradeU td.sorting_3 {
mas01mj@640 422 background-color: #d1d1d1;
mas01mj@640 423 }
mas01mj@640 424
mas01mj@640 425 tr.even.gradeU td.sorting_1 {
mas01mj@640 426 background-color: #d5d5d5;
mas01mj@640 427 }
mas01mj@640 428
mas01mj@640 429 tr.even.gradeU td.sorting_2 {
mas01mj@640 430 background-color: #e2e2e2;
mas01mj@640 431 }
mas01mj@640 432
mas01mj@640 433 tr.even.gradeU td.sorting_3 {
mas01mj@640 434 background-color: #e2e2e2;
mas01mj@640 435 }
mas01mj@640 436
mas01mj@640 437
mas01mj@640 438 /*
mas01mj@640 439 * Row highlighting example
mas01mj@640 440 */
mas01mj@640 441 .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
mas01mj@640 442 background-color: #ECFFB3;
mas01mj@640 443 }
mas01mj@640 444
mas01mj@640 445 .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
mas01mj@640 446 background-color: #E6FF99;
mas01mj@640 447 }