file-tree.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. aside#file-tree {
  2. .file-tree-inner {
  3. position: absolute;
  4. top: 32px;
  5. bottom: 0;
  6. left: 0;
  7. right: 0;
  8. overflow-y: auto;
  9. &.no-toolbar {
  10. top: 0;
  11. }
  12. }
  13. h3 {
  14. font-size: 1rem;
  15. border-bottom: 1px solid @gray;
  16. padding-bottom: (@line-height-computed / 4);
  17. margin: (@line-height-computed / 2);
  18. }
  19. ul.file-tree-list {
  20. font-size: 0.8rem;
  21. margin: 0;
  22. padding: (@line-height-computed / 4) 0;
  23. overflow-x: hidden;
  24. height: 100%;
  25. ul {
  26. margin-left: (@line-height-computed / 2);
  27. }
  28. li {
  29. line-height: 2.6;
  30. position: relative;
  31. .entity {
  32. user-select: none;
  33. }
  34. .entity-name {
  35. color: @gray-darker;
  36. cursor: pointer;
  37. white-space: nowrap;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. &:hover {
  41. background-color: @gray-lightest;
  42. }
  43. input {
  44. line-height: 1.6;
  45. }
  46. &.droppable-hover {
  47. background-color: fade(@file-tree-droppable-background-color, 60%);
  48. }
  49. }
  50. i.fa {
  51. color: @gray-light;
  52. font-size: 14px;
  53. }
  54. i.fa-folder-open, i.fa-folder {
  55. color: lighten(desaturate(@link-color, 10%), 5%);
  56. font-size: 14px;
  57. }
  58. i.toggle {
  59. width: 24px;
  60. padding: 6px;
  61. font-size: 0.7rem;
  62. color: @gray
  63. }
  64. &.multi-selected {
  65. > .entity > .entity-name {
  66. background-color: lighten(@brand-info, 40%);
  67. &:hover {
  68. background-color: lighten(@brand-info, 30%);
  69. }
  70. }
  71. }
  72. .dropdown {
  73. position: absolute;
  74. right: 0;
  75. > a {
  76. padding: 0 12px;
  77. }
  78. }
  79. .rename-input {
  80. display: block;
  81. position: absolute;
  82. top: 1px;
  83. left: 44px;
  84. right: 32px;
  85. input {
  86. width: 100%;
  87. }
  88. }
  89. > .entity > .entity-name {
  90. .entity-menu-toggle {
  91. display: none;
  92. }
  93. }
  94. }
  95. }
  96. &:not(.multi-selected) {
  97. ul.file-tree-list li.selected {
  98. > .entity > .entity-name {
  99. color: @link-color;
  100. border-right: 4px solid @link-color;
  101. font-weight: bold;
  102. padding-right: 32px;
  103. i.fa-folder-open, i.fa {
  104. color: @link-color;
  105. }
  106. .entity-menu-toggle {
  107. display: inline;
  108. }
  109. }
  110. }
  111. }
  112. ul.droppable-hover {
  113. background-color: fade(@file-tree-droppable-background-color, 60%);
  114. }
  115. }
  116. .editor-dark {
  117. aside#file-tree {
  118. // background-color: lighten(@editor-dark-background-color, 10%);
  119. ul.file-tree-list {
  120. .dropdown-toggle {
  121. color: @editor-dark-highlight-color;
  122. }
  123. li {
  124. .entity-name {
  125. color: #aaaaaa;
  126. &:hover {
  127. background-color: black;
  128. }
  129. }
  130. &.selected {
  131. > .entity > .entity-name {
  132. color: @editor-dark-highlight-color;
  133. border-color: @editor-dark-highlight-color;
  134. i.fa-folder-open, i.fa-folder, i.fa-file, i.fa-image, i.fa-file-pdf-o {
  135. color: @editor-dark-highlight-color;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. }
  142. }