dataTable.css 9.9 KB

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