angular.treeview.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. div[data-angular-treeview] {
  2. /* prevent user selection */
  3. -moz-user-select: -moz-none;
  4. -khtml-user-select: none;
  5. -webkit-user-select: none;
  6. -ms-user-select: none;
  7. user-select: none;
  8. /* default */
  9. font-family: Tahoma;
  10. font-size:13px;
  11. color: #555;
  12. text-decoration: none;
  13. }
  14. div[data-tree-model] ul {
  15. margin: 0;
  16. padding: 0;
  17. list-style: none;
  18. border: none;
  19. overflow: hidden;
  20. cursor: pointer;
  21. }
  22. div[data-tree-model] li {
  23. position: relative;
  24. width: 202px;
  25. /*padding: 0 0 0 15px;*/
  26. }
  27. div[data-tree-model] li b i{
  28. font-size: 22px;
  29. float: right;
  30. padding-right: 10px;
  31. margin-top: 5px;
  32. color: #999;
  33. }
  34. div.treeView>ul>li>div>ul>li>div>ul>li b i{
  35. display: none;
  36. }
  37. div.treeView>ul>li:nth-child(2)>div>ul>li>b i,div.treeView>ul>li:nth-child(4)>div>ul>li>b i,div.treeView>ul>li:nth-child(5)>div>ul>li>b i{
  38. display: none;
  39. }
  40. div.treeView>ul>li:first-child>.expanded{
  41. background: url("../img/icon_02.png") no-repeat 0 center;
  42. }
  43. div.treeView>ul>li:first-child>.collapsed{
  44. background: url("../img/icon_02.png") no-repeat 0 center;
  45. }
  46. div.treeView>ul>li:nth-child(2)>.expanded{
  47. background: url("../img/icon_03.png") no-repeat 0 center;
  48. }
  49. div.treeView>ul>li:nth-child(2)>.collapsed{
  50. background: url("../img/icon_03.png") no-repeat 0 center;
  51. }
  52. div.treeView>ul>li:nth-child(3)>.expanded{
  53. background: url("../img/icon_04.png") no-repeat 0 center;
  54. }
  55. div.treeView>ul>li:nth-child(3)>.collapsed{
  56. background: url("../img/icon_04.png") no-repeat 0 center;
  57. }
  58. div.treeView>ul>li:nth-child(4)>.expanded{
  59. background: url("../img/icon_05.png") no-repeat 0 center;
  60. }
  61. div.treeView>ul>li:nth-child(4)>.collapsed{
  62. background: url("../img/icon_05.png") no-repeat 0 center;
  63. }
  64. div.treeView>ul>li:nth-child(4)>.normal{
  65. display: inline-block;
  66. width: 24px;
  67. height: 20px;
  68. background: url("../img/icon_05.png") no-repeat 0 center;
  69. }
  70. div.treeView>ul>li:nth-child(5)>.expanded{
  71. background: url("../img/icon_06.png") no-repeat 0 center;
  72. }
  73. div.treeView>ul>li:nth-child(5)>.collapsed{
  74. background: url("../img/icon_06.png") no-repeat 0 center;
  75. }
  76. div.treeView>ul>li>span{
  77. display: inline-block;
  78. padding-left: 36px;
  79. font-size: 14px;
  80. color: #333;
  81. font-weight: bold;
  82. width: 88%;
  83. }
  84. div.treeView>ul>li>span.selected{
  85. padding-left: 36px;
  86. }
  87. div.treeView>ul>li>div>ul>li>span{
  88. font-size: 14px;
  89. font-weight: bold;
  90. color: #666;
  91. width: 76%;
  92. padding-left: 22px;
  93. }
  94. div.treeView>ul>li:nth-child(2)>div>ul>li>span,div.treeView>ul>li:nth-child(4)>div>ul>li>span,div.treeView>ul>li:nth-child(5)>div>ul>li>span{
  95. font-weight: normal;
  96. }
  97. div.treeView>ul>li>div>ul>li>div>ul>li>span{
  98. font-size: 14px;
  99. color: #666;
  100. width: 90%;
  101. padding-left: 40px;
  102. }
  103. div.treeView>ul>li>i{
  104. margin-left: 10px;
  105. position: absolute;
  106. top: 8px;
  107. }
  108. div.treeView>ul>li>div>ul>li>i{
  109. /*margin-left: 22px;*/
  110. }
  111. div.treeView>ul>li>div>ul>li>div>ul>li>i{
  112. /*margin-left: 40px;*/
  113. }
  114. div.treeView>ul>li>div>ul>li>div>ul>li{
  115. /*width: 100%;*/
  116. /*cursor: pointer;*/
  117. }
  118. div.treeView>ul>li>div>ul>li>div>ul>li:hover{
  119. /*background-color: rgba(36,150,241,.2);*/
  120. /*color: #2496f1;*/
  121. }
  122. div[data-tree-model] li>span {
  123. display: inline-block;
  124. height: 36px;
  125. line-height: 36px;
  126. }
  127. div[data-tree-model] li .expanded {
  128. display: inline-block;
  129. padding: 1px 12px;
  130. /*background-image: url("../img/icon_02.png");*/
  131. /*background-repeat: no-repeat;*/
  132. width: 24px;
  133. height: 20px;
  134. }
  135. div[data-tree-model] li .collapsed {
  136. display: inline-block;
  137. padding: 1px 12px;
  138. /*background-image: url("static/img/left/icon_02.png");*/
  139. /*background-repeat: no-repeat;*/
  140. width: 24px;
  141. height: 20px;
  142. }
  143. div[data-tree-model] li .normal {
  144. padding: 1px 10px;
  145. /*background-image: url("static/img/left/icon_02.png");*/
  146. /*background-repeat: no-repeat;*/
  147. }
  148. div[data-tree-model] li i, div[data-tree-model] li span {
  149. cursor: pointer;
  150. }
  151. div[data-tree-model] li .selected {
  152. font-weight: bold;
  153. color: #3f84f6;
  154. /*padding: 1px 5px;*/
  155. }