tree.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. .tree {
  2. margin: 0;
  3. padding: 0;
  4. list-style-type: none;
  5. }
  6. .tree li {
  7. white-space: nowrap;
  8. }
  9. .tree li ul {
  10. list-style-type: none;
  11. margin: 0;
  12. padding: 0;
  13. }
  14. .tree-node {
  15. height: 18px;
  16. white-space: nowrap;
  17. cursor: pointer;
  18. }
  19. .tree-hit {
  20. cursor: pointer;
  21. }
  22. .tree-expanded,
  23. .tree-collapsed,
  24. .tree-folder,
  25. .tree-file,
  26. .tree-checkbox,
  27. .tree-indent {
  28. display: inline-block;
  29. width: 16px;
  30. height: 18px;
  31. vertical-align: top;
  32. overflow: hidden;
  33. }
  34. .tree-expanded {
  35. background: url('images/tree_icons.png') no-repeat -18px 0px;
  36. }
  37. .tree-expanded-hover {
  38. background: url('images/tree_icons.png') no-repeat -50px 0px;
  39. }
  40. .tree-collapsed {
  41. background: url('images/tree_icons.png') no-repeat 0px 0px;
  42. }
  43. .tree-collapsed-hover {
  44. background: url('images/tree_icons.png') no-repeat -32px 0px;
  45. }
  46. .tree-lines .tree-expanded,
  47. .tree-lines .tree-root-first .tree-expanded {
  48. background: url('images/tree_icons.png') no-repeat -144px 0;
  49. }
  50. .tree-lines .tree-collapsed,
  51. .tree-lines .tree-root-first .tree-collapsed {
  52. background: url('images/tree_icons.png') no-repeat -128px 0;
  53. }
  54. .tree-lines .tree-node-last .tree-expanded,
  55. .tree-lines .tree-root-one .tree-expanded {
  56. background: url('images/tree_icons.png') no-repeat -80px 0;
  57. }
  58. .tree-lines .tree-node-last .tree-collapsed,
  59. .tree-lines .tree-root-one .tree-collapsed {
  60. background: url('images/tree_icons.png') no-repeat -64px 0;
  61. }
  62. .tree-line {
  63. background: url('images/tree_icons.png') no-repeat -176px 0;
  64. }
  65. .tree-join {
  66. background: url('images/tree_icons.png') no-repeat -192px 0;
  67. }
  68. .tree-joinbottom {
  69. background: url('images/tree_icons.png') no-repeat -160px 0;
  70. }
  71. .tree-folder {
  72. background: url('images/tree_icons.png') no-repeat -208px 0;
  73. }
  74. .tree-folder-open {
  75. background: url('images/tree_icons.png') no-repeat -224px 0;
  76. }
  77. .tree-file {
  78. background: url('images/tree_icons.png') no-repeat -240px 0;
  79. }
  80. .tree-loading {
  81. background: url('images/loading.gif') no-repeat center center;
  82. }
  83. .tree-checkbox0 {
  84. background: url('images/tree_icons.png') no-repeat -208px -18px;
  85. }
  86. .tree-checkbox1 {
  87. background: url('images/tree_icons.png') no-repeat -224px -18px;
  88. }
  89. .tree-checkbox2 {
  90. background: url('images/tree_icons.png') no-repeat -240px -18px;
  91. }
  92. .tree-title {
  93. font-size: 12px;
  94. display: inline-block;
  95. text-decoration: none;
  96. vertical-align: top;
  97. white-space: nowrap;
  98. padding: 0 2px;
  99. height: 18px;
  100. line-height: 18px;
  101. }
  102. .tree-node-proxy {
  103. font-size: 12px;
  104. line-height: 20px;
  105. padding: 0 2px 0 20px;
  106. border-width: 1px;
  107. border-style: solid;
  108. z-index: 9900000;
  109. }
  110. .tree-dnd-icon {
  111. display: inline-block;
  112. position: absolute;
  113. width: 16px;
  114. height: 18px;
  115. left: 2px;
  116. top: 50%;
  117. margin-top: -9px;
  118. }
  119. .tree-dnd-yes {
  120. background: url('images/tree_icons.png') no-repeat -256px 0;
  121. }
  122. .tree-dnd-no {
  123. background: url('images/tree_icons.png') no-repeat -256px -18px;
  124. }
  125. .tree-node-top {
  126. border-top: 1px dotted red;
  127. }
  128. .tree-node-bottom {
  129. border-bottom: 1px dotted red;
  130. }
  131. .tree-node-append .tree-title {
  132. border: 1px dotted red;
  133. }
  134. .tree-editor {
  135. border: 1px solid #abafb8;
  136. font-size: 12px;
  137. line-height: 16px;
  138. padding: 0 4px;
  139. margin: 0;
  140. width: 80px;
  141. outline-style: none;
  142. vertical-align: top;
  143. position: absolute;
  144. top: 0;
  145. }
  146. .tree-node-proxy {
  147. background-color: #fafafa;
  148. color: #404040;
  149. border-color: #abafb8;
  150. }
  151. .tree-node-hover {
  152. background: #E6E6E6;
  153. color: #404040;
  154. }
  155. .tree-node-selected {
  156. background: #84909c;
  157. color: #fff;
  158. }
  159. .tree-node-hidden {
  160. display: none;
  161. }