TableTools.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /*
  2. * File: TableTools.css
  3. * Description: Styles for TableTools 2
  4. * Author: Allan Jardine (www.sprymedia.co.uk)
  5. * Language: Javascript
  6. * License: LGPL / 3 point BSD
  7. * Project: DataTables
  8. *
  9. * Copyright 2010 Allan Jardine, all rights reserved.
  10. *
  11. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  12. *
  13. * CSS name space:
  14. * DTTT DataTables TableTools
  15. *
  16. * Colour dictionary:
  17. * Button border #d0d0d0
  18. * Button border hover #999999
  19. * Hover background #f0f0f0
  20. * Action blue #4b66d9
  21. *
  22. * Style sheet provides:
  23. * CONTAINER TableTools container element and styles applying to all components
  24. * BUTTON_STYLES Action specific button styles
  25. * SELECTING Row selection styles
  26. * COLLECTIONS Drop down list (collection) styles
  27. * PRINTING Print display styles
  28. * MISC Minor misc styles
  29. */
  30. /*
  31. * CONTAINER
  32. * TableTools container element and styles applying to all components
  33. */
  34. div.DTTT_container {
  35. position: relative;
  36. float: left;
  37. margin-bottom: 1em;
  38. }
  39. button.DTTT_button {
  40. position: relative;
  41. float: left;
  42. height: 30px;
  43. margin-right: 3px;
  44. padding: 3px 5px;
  45. border: 1px solid #d0d0d0;
  46. background-color: #fff;
  47. cursor: pointer;
  48. *cursor: hand;
  49. }
  50. button.DTTT_button::-moz-focus-inner {
  51. border: none !important;
  52. padding: 0;
  53. }
  54. /*
  55. * BUTTON_STYLES
  56. * Action specific button styles
  57. */
  58. button.DTTT_button_csv {
  59. padding-right: 30px;
  60. background: url(../images/csv.png) no-repeat center right;
  61. }
  62. button.DTTT_button_csv_hover {
  63. padding-right: 30px;
  64. border: 1px solid #999;
  65. background: #f0f0f0 url(../images/csv_hover.png) no-repeat center right;
  66. }
  67. button.DTTT_button_xls {
  68. padding-right: 30px;
  69. background: url(../images/xls.png) no-repeat center right;
  70. }
  71. button.DTTT_button_xls_hover {
  72. padding-right: 30px;
  73. border: 1px solid #999;
  74. background: #f0f0f0 url(../images/xls_hover.png) no-repeat center right;
  75. }
  76. button.DTTT_button_copy {
  77. padding-right: 30px;
  78. background: url(../images/copy.png) no-repeat center right;
  79. }
  80. button.DTTT_button_copy_hover {
  81. padding-right: 30px;
  82. border: 1px solid #999;
  83. background: #f0f0f0 url(../images/copy_hover.png) no-repeat center right;
  84. }
  85. button.DTTT_button_pdf {
  86. padding-right: 30px;
  87. background: url(../images/pdf.png) no-repeat center right;
  88. }
  89. button.DTTT_button_pdf_hover {
  90. padding-right: 30px;
  91. border: 1px solid #999;
  92. background: #f0f0f0 url(../images/pdf_hover.png) no-repeat center right;
  93. }
  94. button.DTTT_button_print {
  95. padding-right: 30px;
  96. background: url(../images/print.png) no-repeat center right;
  97. }
  98. button.DTTT_button_print_hover {
  99. padding-right: 30px;
  100. border: 1px solid #999;
  101. background: #f0f0f0 url(../images/print_hover.png) no-repeat center right;
  102. }
  103. button.DTTT_button_text {
  104. }
  105. button.DTTT_button_text_hover {
  106. border: 1px solid #999;
  107. background-color: #f0f0f0;
  108. }
  109. button.DTTT_button_collection {
  110. padding-right: 17px;
  111. background: url(../images/collection.png) no-repeat center right;
  112. }
  113. button.DTTT_button_collection_hover {
  114. padding-right: 17px;
  115. border: 1px solid #999;
  116. background: #f0f0f0 url(../images/collection_hover.png) no-repeat center right;
  117. }
  118. /*
  119. * SELECTING
  120. * Row selection styles
  121. */
  122. table.DTTT_selectable tbody tr {
  123. cursor: pointer;
  124. *cursor: hand;
  125. }
  126. tr.DTTT_selected.odd {
  127. background-color: #9FAFD1;
  128. }
  129. tr.DTTT_selected.odd td.sorting_1 {
  130. background-color: #9FAFD1;
  131. }
  132. tr.DTTT_selected.odd td.sorting_2 {
  133. background-color: #9FAFD1;
  134. }
  135. tr.DTTT_selected.odd td.sorting_3 {
  136. background-color: #9FAFD1;
  137. }
  138. tr.DTTT_selected.even {
  139. background-color: #B0BED9;
  140. }
  141. tr.DTTT_selected.even td.sorting_1 {
  142. background-color: #B0BED9;
  143. }
  144. tr.DTTT_selected.even td.sorting_2 {
  145. background-color: #B0BED9;
  146. }
  147. tr.DTTT_selected.even td.sorting_3 {
  148. background-color: #B0BED9;
  149. }
  150. /*
  151. * COLLECTIONS
  152. * Drop down list (collection) styles
  153. */
  154. div.DTTT_collection {
  155. width: 150px;
  156. padding: 3px;
  157. border: 1px solid #ccc;
  158. background-color: #f3f3f3;
  159. overflow: hidden;
  160. z-index: 2002;
  161. }
  162. div.DTTT_collection_background {
  163. background: transparent url(../images/background.png) repeat top left;
  164. z-index: 2001;
  165. }
  166. div.DTTT_collection button.DTTT_button {
  167. float: none;
  168. width: 100%;
  169. margin-bottom: 2px;
  170. background-color: white;
  171. }
  172. /*
  173. * PRINTING
  174. * Print display styles
  175. */
  176. .DTTT_print_info {
  177. position: absolute;
  178. top: 50%;
  179. left: 50%;
  180. width: 400px;
  181. height: 150px;
  182. margin-left: -200px;
  183. margin-top: -75px;
  184. text-align: center;
  185. background-color: #3f3f3f;
  186. color: white;
  187. padding: 10px 30px;
  188. opacity: 0.9;
  189. border-radius: 5px;
  190. -moz-border-radius: 5px;
  191. -webkit-border-radius: 5px;
  192. box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  193. -moz-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  194. -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
  195. }
  196. .DTTT_print_info h6 {
  197. font-weight: normal;
  198. font-size: 28px;
  199. line-height: 28px;
  200. margin: 1em;
  201. }
  202. .DTTT_print_info p {
  203. font-size: 14px;
  204. line-height: 20px;
  205. }
  206. /*
  207. * MISC
  208. * Minor misc styles
  209. */
  210. .DTTT_disabled {
  211. color: #999;
  212. }