_treeview.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // Treeview
  2. .treeview {
  3. &.w-20 {
  4. width: 20rem;
  5. }
  6. .rotate {
  7. margin-top: .2rem;
  8. font-size: .8rem;
  9. vertical-align: text-top;
  10. cursor: pointer;
  11. user-select: none;
  12. transition: all .1s linear;
  13. &.down {
  14. transform: rotate(90deg);
  15. }
  16. }
  17. .nested {
  18. display: none;
  19. }
  20. .active {
  21. display: block;
  22. }
  23. ul {
  24. list-style-type: none;
  25. }
  26. .ic-w {
  27. width: 1.3rem;
  28. }
  29. }
  30. .treeview-animated {
  31. &.w-20 {
  32. width: 20rem;
  33. }
  34. ul {
  35. position: relative;
  36. padding-left: 1em;
  37. list-style: none;
  38. }
  39. .treeview-animated-list {
  40. li {
  41. padding: .2em 0 0 .2em;
  42. }
  43. .treeview-animated-items {
  44. .nested {
  45. &::before {
  46. position: absolute;
  47. left: 5px;
  48. display: block;
  49. width: 5px;
  50. height: 100%;
  51. content: "";
  52. background-color: #808080;
  53. }
  54. }
  55. .closed {
  56. display: block;
  57. padding: .2em .2em .2em .4em;
  58. margin-right: 0;
  59. border-top-left-radius: .3em;
  60. border-bottom-left-radius: .3em;
  61. &:hover {
  62. background-color: rgb(140, 185, 255);
  63. }
  64. .fa-angle-right {
  65. font-size: .8rem;
  66. transition: all .1s linear;
  67. &.down {
  68. position: relative;
  69. color: #f8f9fa;
  70. transform: rotate(90deg);
  71. }
  72. }
  73. }
  74. .open {
  75. background-color: rgb(50, 160, 255);
  76. transition: all .1s linear;
  77. &:hover {
  78. color: #f8f9fa;
  79. background-color: rgb(50, 160, 255);
  80. }
  81. span {
  82. color: #f8f9fa;
  83. }
  84. }
  85. }
  86. .treeview-animated-element {
  87. padding: .2em .2em .2em .6em;
  88. cursor: pointer;
  89. border-top-left-radius: 4px;
  90. border-bottom-left-radius: 4px;
  91. transition: all .1s linear;
  92. &:hover {
  93. background-color: rgb(140, 185, 255);
  94. }
  95. &.opened {
  96. color: #f8f9fa;
  97. background-color: rgb(50, 160, 255);
  98. &:hover {
  99. color: #f8f9fa;
  100. background-color: rgb(50, 160, 255);
  101. }
  102. }
  103. }
  104. }
  105. }
  106. .treeview-colorful {
  107. font-size: 16px;
  108. font-weight: 400;
  109. background: rgba(224, 127, 178, .2);
  110. &.w-20 {
  111. width: 20rem;
  112. }
  113. hr {
  114. border-color: #a2127a;
  115. }
  116. h6 {
  117. font-size: 1.4em;
  118. font-weight: 500;
  119. color: #a2127a;
  120. }
  121. ul {
  122. position: relative;
  123. padding-left: 0;
  124. list-style: none;
  125. }
  126. .treeview-colorful-list {
  127. ul {
  128. padding-left: 1em;
  129. margin-top: .1em;
  130. background: rgba(224, 127, 178, .2);
  131. }
  132. }
  133. .treeview-colorful-element {
  134. padding: .2em .2em .2em 1em;
  135. cursor: pointer;
  136. border: 2px solid transparent;
  137. border-right: 0 solid transparent;
  138. transition: all .1s linear;
  139. &:hover {
  140. background-color: #e07fb2;
  141. }
  142. &.opened {
  143. color: #ffac47;
  144. background-color: #a2127a;
  145. border: 2px solid #ffac47;
  146. border-right: 0 solid transparent;
  147. &:hover {
  148. color: #ffac47;
  149. background-color: #a2127a;
  150. }
  151. }
  152. }
  153. .treeview-colorful-items-header {
  154. display: block;
  155. padding: .4em;
  156. margin-right: 0;
  157. border-bottom: 2px solid transparent;
  158. transition: all .1s linear;
  159. &:hover {
  160. background-color: #e07fb2;
  161. }
  162. &.open {
  163. background-color: #a2127a;
  164. border-bottom: 2px solid #ffac47;
  165. transition: all .1s linear;
  166. span {
  167. color: #ffac47;
  168. }
  169. &:hover {
  170. color: #ffac47;
  171. background-color: #a2127a;
  172. }
  173. div:hover {
  174. background-color: #a2127a;
  175. }
  176. }
  177. .fa-angle-right {
  178. font-size: .8rem;
  179. transition: all .2s linear;
  180. }
  181. .fas {
  182. position: relative;
  183. color: #ffac47;
  184. transition: all .2s linear;
  185. transform: rotate(90deg);
  186. }
  187. .fa-minus-circle {
  188. position: relative;
  189. color: #ffac47;
  190. transition: all .2s linear;
  191. transform: rotate(180deg);
  192. }
  193. }
  194. }