ui.dynatree.css 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /*******************************************************************************
  2. * Tree container border: 1px dotted gray;
  3. */
  4. div.ui-dynatree-container
  5. {
  6. font-family: 微软雅黑,宋体;
  7. font-size: 12px; /* font size should not be too big */
  8. white-space: nowrap;
  9. padding: 10px;
  10. background-color: white;
  11. }
  12. /* Style, when control is disabled */
  13. .ui-dynatree-disabled div.ui-dynatree-container
  14. {
  15. opacity: 0.5;
  16. /* filter: alpha(opacity=50); /* Yields a css warning */
  17. background-color: silver;
  18. }
  19. /*******************************************************************************
  20. * Vertical line image
  21. */
  22. div.ui-dynatree-container img
  23. {
  24. width: 16px;
  25. height: 16px;
  26. margin-left: 3px;
  27. vertical-align: top;
  28. }
  29. /*******************************************************************************
  30. * Common icon definitions
  31. */
  32. span.ui-dynatree-empty,
  33. span.ui-dynatree-vline,
  34. span.ui-dynatree-connector,
  35. span.ui-dynatree-expander,
  36. span.ui-dynatree-icon,
  37. span.ui-dynatree-checkbox
  38. {
  39. width: 18px;
  40. height: 18px;
  41. display: -moz-inline-box; /* @ FF 1+2 */
  42. display: inline-block; /* Required, to make a span sizeable */
  43. vertical-align: top;
  44. background-repeat: no-repeat;
  45. background-position: left;
  46. }
  47. span.ui-dynatree-empty,
  48. span.ui-dynatree-vline,
  49. span.ui-dynatree-connector,
  50. span.ui-dynatree-expander
  51. {
  52. width: 6px;
  53. }
  54. /*******************************************************************************
  55. * Lines and connectors
  56. */
  57. span.ui-dynatree-empty
  58. {
  59. }
  60. span.ui-dynatree-vline
  61. {
  62. }
  63. span.ui-dynatree-connector
  64. {
  65. }
  66. .ui-dynatree-lastsib span.ui-dynatree-connector
  67. {
  68. }
  69. /*******************************************************************************
  70. * Expander icon
  71. */
  72. span.ui-dynatree-expander
  73. {
  74. background-image: url("collapsed.gif");
  75. background-position: -5 0;
  76. }
  77. span.ui-dynatree-expander:hover
  78. {
  79. background-image: url("collapsed_hover.gif");
  80. }
  81. .ui-dynatree-lastsib span.ui-dynatree-expander
  82. {
  83. }
  84. .ui-dynatree-lazy span.ui-dynatree-expander
  85. {
  86. }
  87. .ui-dynatree-lazy.ui-dynatree-lastsib span.ui-dynatree-expander
  88. {
  89. }
  90. .ui-dynatree-expanded span.ui-dynatree-expander
  91. {
  92. background-image: url("expanded.gif");
  93. }
  94. .ui-dynatree-expanded span.ui-dynatree-expander:hover
  95. {
  96. background-image: url("expanded_hover.gif");
  97. }
  98. .ui-dynatree-expanded.ui-dynatree-lastsib span.ui-dynatree-expander
  99. {
  100. }
  101. /*******************************************************************************
  102. * Checkbox icon
  103. */
  104. span.ui-dynatree-checkbox
  105. {
  106. margin-left: 3px;
  107. background-image: url("cbUnchecked.gif");
  108. }
  109. span.ui-dynatree-checkbox:hover
  110. {
  111. background-image: url("cbUnchecked_hover.gif");
  112. }
  113. .ui-dynatree-partsel span.ui-dynatree-checkbox
  114. {
  115. background-image: url("cbIntermediate.gif");
  116. }
  117. .ui-dynatree-partsel span.ui-dynatree-checkbox:hover
  118. {
  119. background-image: url("cbIntermediate_hover.gif");
  120. }
  121. .ui-dynatree-selected span.ui-dynatree-checkbox
  122. {
  123. background-image: url("cbChecked.gif");
  124. }
  125. .ui-dynatree-selected span.ui-dynatree-checkbox:hover
  126. {
  127. background-image: url("cbChecked_hover.gif");
  128. }
  129. /*******************************************************************************
  130. * Radiobutton icon
  131. * This is a customization, that may be activated by overriding the 'checkbox'
  132. * class name as 'ui-dynatree-radio' in the tree options.
  133. */
  134. span.ui-dynatree-radio
  135. {
  136. margin-left: 3px;
  137. background-image: url("rbUnchecked.gif");
  138. }
  139. span.ui-dynatree-radio:hover
  140. {
  141. background-image: url("rbUnchecked_hover.gif");
  142. }
  143. .ui-dynatree-partsel span.ui-dynatree-radio
  144. {
  145. background-image: url("rbIntermediate.gif");
  146. }
  147. .ui-dynatree-partsel span.ui-dynatree-radio:hover
  148. {
  149. background-image: url("rbIntermediate_hover.gif");
  150. }
  151. .ui-dynatree-selected span.ui-dynatree-radio
  152. {
  153. background-image: url("rbChecked.gif");
  154. }
  155. .ui-dynatree-selected span.ui-dynatree-radio:hover
  156. {
  157. background-image: url("rbChecked_hover.gif");
  158. }
  159. /*******************************************************************************
  160. * Node type icon
  161. */
  162. span.ui-dynatree-icon
  163. {
  164. margin-left: 3px;
  165. /* margin-right: 3px; */
  166. background-image: url("document.gif");
  167. }
  168. .ui-dynatree-folder span.ui-dynatree-icon
  169. {
  170. background-image: url("folder.gif");
  171. }
  172. .ui-dynatree-folder.ui-dynatree-expanded span.ui-dynatree-icon
  173. {
  174. }
  175. /* Status node icons */
  176. .ui-dynatree-statusnode-wait span.ui-dynatree-icon
  177. {
  178. background-image: url("ltWait.gif");
  179. }
  180. .ui-dynatree-statusnode-error span.ui-dynatree-icon
  181. {
  182. background-image: url("ltError.gif");
  183. }
  184. /*******************************************************************************
  185. * Node titles
  186. */
  187. /* Remove blue color and underline from title links */
  188. div.ui-dynatree-container a
  189. {
  190. color: black; /* inherit doesn't work on IE */
  191. text-decoration: none;
  192. vertical-align: top;
  193. margin: 0px;
  194. margin-left: 3px;
  195. /* Set transparent border to prevent jumping when active node gets a border
  196. (we can do this, because this theme doesn't use vertical lines)
  197. */
  198. border: 1px solid white; /* Note: 'transparent' would not work in IE6 */
  199. }
  200. div.ui-dynatree-container a:hover
  201. {
  202. text-decoration: underline;
  203. }
  204. span.ui-dynatree-document a,
  205. span.ui-dynatree-folder a
  206. {
  207. display: inline-block; /* Better alignment, when title contains <br> */
  208. padding-left: 3px;
  209. padding-right: 3px; /* Otherwise italic font will be accross borders */
  210. }
  211. span.ui-dynatree-folder a
  212. {
  213. }
  214. div.ui-dynatree-container a:focus,
  215. span.ui-dynatree-focused a:link /* @IE */
  216. {
  217. background-color: #EFEBDE; /* gray */
  218. }
  219. span.ui-dynatree-has-children a
  220. {
  221. }
  222. span.ui-dynatree-expanded a
  223. {
  224. }
  225. span.ui-dynatree-selected a
  226. {
  227. color: green;
  228. }
  229. span.ui-dynatree-active a
  230. {
  231. border: 1px solid #99DEFD;
  232. background-color: #D8F0FA;
  233. /* color: white !important; /* @ IE6 */
  234. }
  235. /*******************************************************************************
  236. * Custom node classes
  237. */
  238. span.custom1 a
  239. {
  240. background-color: #ffffbb;
  241. color: maroon;
  242. }
  243. span.custom1 span.ui-dynatree-icon
  244. {
  245. background-image: url("doc_with_children.gif");
  246. }
  247. span.custom2 a
  248. {
  249. font-weight: bold;
  250. background-color: silver;
  251. color: navy;
  252. }
  253. span.custom2 span.ui-dynatree-icon
  254. {
  255. background-image: url("folder_page.gif");
  256. }