file-tree.less 2.7 KB

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