demo_table_jui.css 8.8 KB

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