demo_table_jui.css 8.3 KB

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