eleTree.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /* #region tree */
  2. .eleTree{
  3. position: relative;
  4. }
  5. .eleTree-hide{
  6. display: none;
  7. }
  8. .eleTree-loadData{
  9. width: 100%;
  10. height: 100%;
  11. position: absolute;
  12. z-index: 1;
  13. top: 0px;
  14. }
  15. .eleTree-loadData .layui-icon{
  16. position: absolute;
  17. left: 50%;
  18. top: 50%;
  19. transform: translateX(-50%) translateY(-50%);
  20. }
  21. .eleTree-node-content{
  22. cursor: pointer;
  23. height: 26px;
  24. line-height: 1.3;
  25. }
  26. .eleTree-node-content:hover,
  27. .eleTree-node-content.eleTree-node-content-active{
  28. background-color: #eee;
  29. }
  30. .eleTree-node-content-icon .layui-icon{
  31. padding: 6px 3px;
  32. color: #c0c4cc;
  33. font-size: 12px;
  34. display: inline-block;
  35. transform: rotate(0deg);
  36. transition: transform .3s ease-in-out;
  37. }
  38. .eleTree-node-content-icon .layui-icon.icon-rotate{
  39. transform: rotate(90deg);
  40. }
  41. .eleTree-node-content .layui-form-checkbox[lay-skin=primary] i{
  42. width: 13px;
  43. height: 14px;
  44. line-height: 1.3;
  45. }
  46. .eleTree-node-content-label{
  47. padding-left: 5px;
  48. }
  49. .eleTree-node-content-input{
  50. width: 80px;
  51. border: 1px solid #e6e6e6;
  52. outline: 0;
  53. padding: 3px 5px;
  54. font-size: 12px;
  55. }
  56. /* checkbox第三种状态 */
  57. input.eleTree-hideen[type=checkbox]{
  58. display: none;
  59. }
  60. .eleTree-checkbox {
  61. height: auto!important;
  62. line-height: normal!important;
  63. min-height: 12px;
  64. border: none!important;
  65. margin-right: 0;
  66. padding-left: 18px;
  67. position: relative;
  68. display: inline-block;
  69. }
  70. .eleTree-checkbox i {
  71. left: 0;
  72. border: 1px solid #d2d2d2;
  73. font-size: 12px;
  74. border-radius: 2px;
  75. background-color: #fff;
  76. -webkit-transition: .1s linear;
  77. transition: .1s linear;
  78. position: absolute;
  79. top: 0;
  80. color: #fff;
  81. cursor: pointer;
  82. text-align: center;
  83. width: 13px;
  84. height: 14px;
  85. line-height: 1.3;
  86. }
  87. .eleTree-checkbox i:hover {
  88. border-color: #5FB878;
  89. }
  90. .eleTree-checkbox-checked i {
  91. border-color: #5FB878;
  92. background-color: #5FB878;
  93. color: #fff;
  94. }
  95. .eleTree-checkbox-line:after{
  96. content: "";
  97. position: relative;
  98. width: 8px;
  99. height: 1px;
  100. background-color: #fff;
  101. display: inline-block;
  102. top: -4px;
  103. }
  104. .eleTree-checkbox.eleTree-checkbox-disabled i{
  105. cursor: not-allowed;
  106. background-color: #f2f6fc;
  107. border-color: #dcdfe6;
  108. color: #c2c2c2;
  109. }
  110. .eleTree-checkbox.eleTree-checkbox-disabled i.eleTree-checkbox-line:after{
  111. background-color: #c2c2c2;
  112. }
  113. .eleTree-checkbox.eleTree-checkbox-disabled i:hover{
  114. border-color: #dcdfe6;
  115. }
  116. #tree-menu{
  117. margin: 0;
  118. padding: 2px;
  119. position: absolute;
  120. background: #f5f5f5;
  121. border: 1px solid #979797;
  122. box-shadow: 2px 2px 2px #999;
  123. display: none;
  124. z-index: 20181205;
  125. }
  126. #tree-menu li>a{
  127. display: block;
  128. padding: 0 1em;
  129. text-decoration: none;
  130. width: auto;
  131. color: #000;
  132. white-space: nowrap;
  133. line-height: 2.4em;
  134. text-shadow: 1px 1px 0 #fff;
  135. border-radius: 1px;
  136. }
  137. #tree-menu li>a:hover{
  138. background-color: #e8eff7;
  139. box-shadow: 0 0 2px #0a6aa1;
  140. }
  141. .tree-menu-bg{
  142. background-color: #ccc;
  143. }
  144. /* #endregion */