tree.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. @import '~vue-tree-halower/dist/halower-tree.min.css';
  2. @import '~@resources/scss/base/bootstrap-extended/include';
  3. // Overrides user variable
  4. @import '~@resources/scss/base/components/include';
  5. .tree-container {
  6. .tag-box-container {
  7. .tag {
  8. background-color: transparent;
  9. .rmNode {
  10. color: $danger;
  11. background-color: rgba($danger, 0.15);
  12. line-height: 1.1;
  13. }
  14. }
  15. }
  16. .tree-box {
  17. position: relative;
  18. z-index: 5;
  19. background-color: white;
  20. padding: 10px;
  21. box-shadow: $box-shadow;
  22. input {
  23. margin-bottom: 1rem;
  24. height: 2.5rem;
  25. }
  26. }
  27. }
  28. .halo-tree {
  29. &,
  30. .first-node {
  31. padding-left: 0;
  32. }
  33. // Align `-` node's below vertical line
  34. li::before {
  35. left: -11px;
  36. }
  37. .tree-node-el {
  38. display: contents;
  39. }
  40. .tree-expand {
  41. background: content-box;
  42. cursor: pointer;
  43. display: inline-flex;
  44. align-items: center;
  45. justify-content: center;
  46. line-height: 1;
  47. }
  48. .halo-tree {
  49. li {
  50. padding-left: 26px;
  51. }
  52. }
  53. ul {
  54. padding-left: 17px !important;
  55. }
  56. > li.first-node.only-node::after {
  57. z-index: -10;
  58. }
  59. .box-halfchecked:after {
  60. top: -1px;
  61. }
  62. .inputCheck {
  63. top: 2px;
  64. &.box-checked:after {
  65. top: -1px;
  66. }
  67. }
  68. .node-selected {
  69. background-color: #f8f8f8;
  70. }
  71. .node-title {
  72. &:hover {
  73. background-color: #f8f8f8;
  74. }
  75. padding: 3px 6px;
  76. margin: 0 4px;
  77. }
  78. // Button Colors
  79. button.btn-async,
  80. button.btn-delete {
  81. padding: 0.2rem 0.5rem;
  82. border-radius: 4px;
  83. font-size: 12px;
  84. }
  85. button.btn-async {
  86. background: rgba($warning, 0.15);
  87. }
  88. button.btn-delete {
  89. background: rgba($danger, 0.15);
  90. }
  91. }
  92. .dark-layout {
  93. .tree-container,
  94. .tree-container .tree-box,
  95. .tag-box .tag {
  96. border-color: $theme-dark-border-color;
  97. }
  98. .tree-container {
  99. .tree-box {
  100. background-color: $theme-dark-body-bg;
  101. input {
  102. background-color: $theme-dark-input-bg;
  103. border-color: $theme-dark-input-disabled-border-color;
  104. }
  105. }
  106. .tag-box {
  107. .tag {
  108. background-color: $theme-dark-body-bg !important;
  109. }
  110. }
  111. }
  112. .halo-tree {
  113. .node-title:hover {
  114. background-color: transparent;
  115. }
  116. .node-title {
  117. &.node-selected {
  118. background-color: $theme-dark-body-bg;
  119. border-color: $theme-dark-border-color;
  120. }
  121. }
  122. }
  123. }