dataTable.css 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  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 "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. * images/dataTable/ - relative to this CSS file.
  27. */
  28. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  29. * DataTables features
  30. */
  31. .dataTables_wrapper {
  32. position: relative;
  33. min-height: 302px;
  34. clear: both;
  35. _height: 302px;
  36. zoom: 1; /* Feeling sorry for IE */
  37. }
  38. .dataTables_processing {
  39. position: absolute;
  40. top: 50%;
  41. left: 50%;
  42. width: 250px;
  43. height: 30px;
  44. margin-left: -125px;
  45. margin-top: -15px;
  46. padding: 14px 0 2px 0;
  47. border: 1px solid #ddd;
  48. text-align: center;
  49. color: #999;
  50. font-size: 14px;
  51. background-color: white;
  52. }
  53. .dataTables_length {
  54. width: 40%;
  55. float: left;
  56. }
  57. .dataTables_filter {
  58. width: 50%;
  59. float: right;
  60. text-align: right;
  61. }
  62. .dataTables_info {
  63. width: 60%;
  64. float: left;
  65. }
  66. .dataTables_paginate {
  67. width: 44px;
  68. * width: 50px;
  69. float: right;
  70. text-align: right;
  71. }
  72. /* Pagination nested */
  73. .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
  74. height: 19px;
  75. width: 19px;
  76. margin-left: 3px;
  77. float: left;
  78. }
  79. .paginate_disabled_previous {
  80. background-image: url('images/dataTale/back_disabled.jpg');
  81. }
  82. .paginate_enabled_previous {
  83. background-image: url('images/dataTable/back_enabled.jpg');
  84. }
  85. .paginate_disabled_next {
  86. background-image: url('images/dataTable/forward_disabled.jpg');
  87. }
  88. .paginate_enabled_next {
  89. background-image: url('images/dataTable/forward_enabled.jpg');
  90. }
  91. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  92. * DataTables display
  93. */
  94. table.display {
  95. margin: 0 auto;
  96. clear: both;
  97. width: 100%;
  98. /* Note Firefox 3.5 and before have a bug with border-collapse
  99. * ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
  100. * border-spacing: 0; is one possible option. Conditional-css.com is
  101. * useful for this kind of thing
  102. *
  103. * Further note IE 6/7 has problems when calculating widths with border width.
  104. * It subtracts one px relative to the other browsers from the first column, and
  105. * adds one to the end...
  106. *
  107. * If you want that effect I'd suggest setting a border-top/left on th/td's and
  108. * then filling in the gaps with other borders.
  109. */
  110. }
  111. table.display thead th {
  112. padding: 3px 18px 3px 10px;
  113. border-bottom: 1px solid black;
  114. font-weight: bold;
  115. cursor: pointer;
  116. * cursor: hand;
  117. }
  118. table.display tfoot th {
  119. padding: 3px 18px 3px 10px;
  120. border-top: 1px solid black;
  121. font-weight: bold;
  122. }
  123. table.display tr.heading2 td {
  124. border-bottom: 1px solid #aaa;
  125. }
  126. table.display td {
  127. padding: 3px 10px;
  128. }
  129. table.display td.center {
  130. text-align: center;
  131. }
  132. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  133. * DataTables sorting
  134. */
  135. .sorting_asc {
  136. background: url('images/dataTable/sort_asc.png') no-repeat center right;
  137. }
  138. .sorting_desc {
  139. background: url('images/dataTable/sort_desc.png') no-repeat center right;
  140. }
  141. .sorting {
  142. background: url('images/dataTable/sort_both.png') no-repeat center right;
  143. }
  144. .sorting_asc_disabled {
  145. background: url('images/dataTable/sort_asc_disabled.png') no-repeat center right;
  146. }
  147. .sorting_desc_disabled {
  148. background: url('images/dataTable/sort_desc_disabled.png') no-repeat center right;
  149. }
  150. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  151. * DataTables row classes
  152. */
  153. table.display tr.odd.gradeA {
  154. background-color: #ddffdd;
  155. }
  156. table.display tr.even.gradeA {
  157. background-color: #eeffee;
  158. }
  159. table.display tr.odd.gradeC {
  160. background-color: #ddddff;
  161. }
  162. table.display tr.even.gradeC {
  163. background-color: #eeeeff;
  164. }
  165. table.display tr.odd.gradeX {
  166. background-color: #ffdddd;
  167. }
  168. table.display tr.even.gradeX {
  169. background-color: #ffeeee;
  170. }
  171. table.display tr.odd.gradeU {
  172. background-color: #ddd;
  173. }
  174. table.display tr.even.gradeU {
  175. background-color: #eee;
  176. }
  177. tr.odd {
  178. background-color: #E2E4FF;
  179. }
  180. tr.even {
  181. background-color: white;
  182. }
  183. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  184. * Misc
  185. */
  186. .dataTables_scroll {
  187. clear: both;
  188. }
  189. .dataTables_scrollBody {
  190. *margin-top: -1px;
  191. }
  192. .top, .bottom {
  193. padding: 15px;
  194. background-color: #F5F5F5;
  195. border: 1px solid #CCCCCC;
  196. }
  197. .top .dataTables_info {
  198. float: none;
  199. }
  200. .clear {
  201. clear: both;
  202. }
  203. .dataTables_empty {
  204. text-align: center;
  205. }
  206. tfoot input {
  207. margin: 0.5em 0;
  208. width: 100%;
  209. color: #444;
  210. }
  211. tfoot input.search_init {
  212. color: #999;
  213. }
  214. td.group {
  215. background-color: #d1cfd0;
  216. border-bottom: 2px solid #A19B9E;
  217. border-top: 2px solid #A19B9E;
  218. }
  219. td.details {
  220. background-color: #d1cfd0;
  221. border: 2px solid #A19B9E;
  222. }
  223. .example_alt_pagination div.dataTables_info {
  224. width: 40%;
  225. }
  226. .paging_full_numbers {
  227. width: 400px;
  228. height: 22px;
  229. line-height: 22px;
  230. }
  231. .paging_full_numbers span.paginate_button,
  232. .paging_full_numbers span.paginate_active {
  233. border: 1px solid #aaa;
  234. -webkit-border-radius: 5px;
  235. -moz-border-radius: 5px;
  236. padding: 2px 5px;
  237. margin: 0 3px;
  238. cursor: pointer;
  239. *cursor: hand;
  240. }
  241. .paging_full_numbers span.paginate_button {
  242. background-color: #ddd;
  243. }
  244. .paging_full_numbers span.paginate_button:hover {
  245. background-color: #ccc;
  246. }
  247. .paging_full_numbers span.paginate_active {
  248. background-color: #99B3FF;
  249. }
  250. table.display tr.even.row_selected td {
  251. background-color: #B0BED9;
  252. }
  253. table.display tr.odd.row_selected td {
  254. background-color: #9FAFD1;
  255. }
  256. /*
  257. * Sorting classes for columns
  258. */
  259. /* For the standard odd/even */
  260. tr.odd td.sorting_1 {
  261. background-color: #D3D6FF;
  262. }
  263. tr.odd td.sorting_2 {
  264. background-color: #DADCFF;
  265. }
  266. tr.odd td.sorting_3 {
  267. background-color: #E0E2FF;
  268. }
  269. tr.even td.sorting_1 {
  270. background-color: #EAEBFF;
  271. }
  272. tr.even td.sorting_2 {
  273. background-color: #F2F3FF;
  274. }
  275. tr.even td.sorting_3 {
  276. background-color: #F9F9FF;
  277. }
  278. /* For the Conditional-CSS grading rows */
  279. /*
  280. Colour calculations (based off the main row colours)
  281. Level 1:
  282. dd > c4
  283. ee > d5
  284. Level 2:
  285. dd > d1
  286. ee > e2
  287. */
  288. tr.odd.gradeA td.sorting_1 {
  289. background-color: #c4ffc4;
  290. }
  291. tr.odd.gradeA td.sorting_2 {
  292. background-color: #d1ffd1;
  293. }
  294. tr.odd.gradeA td.sorting_3 {
  295. background-color: #d1ffd1;
  296. }
  297. tr.even.gradeA td.sorting_1 {
  298. background-color: #d5ffd5;
  299. }
  300. tr.even.gradeA td.sorting_2 {
  301. background-color: #e2ffe2;
  302. }
  303. tr.even.gradeA td.sorting_3 {
  304. background-color: #e2ffe2;
  305. }
  306. tr.odd.gradeC td.sorting_1 {
  307. background-color: #c4c4ff;
  308. }
  309. tr.odd.gradeC td.sorting_2 {
  310. background-color: #d1d1ff;
  311. }
  312. tr.odd.gradeC td.sorting_3 {
  313. background-color: #d1d1ff;
  314. }
  315. tr.even.gradeC td.sorting_1 {
  316. background-color: #d5d5ff;
  317. }
  318. tr.even.gradeC td.sorting_2 {
  319. background-color: #e2e2ff;
  320. }
  321. tr.even.gradeC td.sorting_3 {
  322. background-color: #e2e2ff;
  323. }
  324. tr.odd.gradeX td.sorting_1 {
  325. background-color: #ffc4c4;
  326. }
  327. tr.odd.gradeX td.sorting_2 {
  328. background-color: #ffd1d1;
  329. }
  330. tr.odd.gradeX td.sorting_3 {
  331. background-color: #ffd1d1;
  332. }
  333. tr.even.gradeX td.sorting_1 {
  334. background-color: #ffd5d5;
  335. }
  336. tr.even.gradeX td.sorting_2 {
  337. background-color: #ffe2e2;
  338. }
  339. tr.even.gradeX td.sorting_3 {
  340. background-color: #ffe2e2;
  341. }
  342. tr.odd.gradeU td.sorting_1 {
  343. background-color: #c4c4c4;
  344. }
  345. tr.odd.gradeU td.sorting_2 {
  346. background-color: #d1d1d1;
  347. }
  348. tr.odd.gradeU td.sorting_3 {
  349. background-color: #d1d1d1;
  350. }
  351. tr.even.gradeU td.sorting_1 {
  352. background-color: #d5d5d5;
  353. }
  354. tr.even.gradeU td.sorting_2 {
  355. background-color: #e2e2e2;
  356. }
  357. tr.even.gradeU td.sorting_3 {
  358. background-color: #e2e2e2;
  359. }
  360. /*
  361. * Row highlighting example
  362. */
  363. .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
  364. background-color: #ECFFB3;
  365. }
  366. .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
  367. background-color: #E6FF99;
  368. }
  369. .ex_highlight_row #example tr.even:hover {
  370. background-color: #ECFFB3;
  371. }
  372. .ex_highlight_row #example tr.even:hover td.sorting_1 {
  373. background-color: #DDFF75;
  374. }
  375. .ex_highlight_row #example tr.even:hover td.sorting_2 {
  376. background-color: #E7FF9E;
  377. }
  378. .ex_highlight_row #example tr.even:hover td.sorting_3 {
  379. background-color: #E2FF89;
  380. }
  381. .ex_highlight_row #example tr.odd:hover {
  382. background-color: #E6FF99;
  383. }
  384. .ex_highlight_row #example tr.odd:hover td.sorting_1 {
  385. background-color: #D6FF5C;
  386. }
  387. .ex_highlight_row #example tr.odd:hover td.sorting_2 {
  388. background-color: #E0FF84;
  389. }
  390. .ex_highlight_row #example tr.odd:hover td.sorting_3 {
  391. background-color: #DBFF70;
  392. }
  393. /*
  394. * KeyTable
  395. */
  396. table.KeyTable td {
  397. border: 3px solid transparent;
  398. }
  399. table.KeyTable td.focus {
  400. border: 3px solid #3366FF;
  401. }
  402. table.display tr.gradeA {
  403. background-color: #eeffee;
  404. }
  405. table.display tr.gradeC {
  406. background-color: #ddddff;
  407. }
  408. table.display tr.gradeX {
  409. background-color: #ffdddd;
  410. }
  411. table.display tr.gradeU {
  412. background-color: #ddd;
  413. }
  414. div.box {
  415. height: 100px;
  416. padding: 10px;
  417. overflow: auto;
  418. border: 1px solid #8080FF;
  419. background-color: #E5E5FF;
  420. }