tree.css 3.4 KB

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