demo_table.css 11 KB

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