file-tree.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. ul {
  24. margin-left: (@line-height-computed / 2);
  25. }
  26. li {
  27. line-height: 2.6;
  28. .entity-name {
  29. color: @gray-darker;
  30. cursor: pointer;
  31. white-space: nowrap;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. &:hover {
  35. background-color: @gray-lightest;
  36. }
  37. input {
  38. line-height: 1.6;
  39. }
  40. &.droppable-hover {
  41. background-color: @file-tree-droppable-background-color;
  42. }
  43. }
  44. i.fa-folder-open, i.fa-folder {
  45. color: lighten(desaturate(@link-color, 10%), 5%);
  46. font-size: 14px;
  47. }
  48. i.fa-file, i.fa-image, i.fa-file-pdf-o {
  49. color: @gray-light;
  50. font-size: 14px;
  51. }
  52. i.toggle {
  53. width: 24px;
  54. padding: 6px;
  55. font-size: 0.7rem;
  56. color: @gray
  57. }
  58. &.selected {
  59. > .entity > .entity-name {
  60. color: @link-color;
  61. border-right: 4px solid @link-color;
  62. font-weight: bold;
  63. i.fa-folder-open, i.fa-folder, i.fa-file, i.fa-image {
  64. color: @link-color;
  65. }
  66. padding-right: 32px;
  67. }
  68. }
  69. .dropdown {
  70. position: absolute;
  71. right: 0;
  72. > a {
  73. padding: 0 12px;
  74. }
  75. }
  76. }
  77. }
  78. ul.droppable-hover {
  79. background-color: @file-tree-droppable-background-color;
  80. }
  81. }
  82. .editor-dark {
  83. aside#file-tree {
  84. // background-color: lighten(@editor-dark-background-color, 10%);
  85. ul.file-tree-list {
  86. .dropdown-toggle {
  87. color: @editor-dark-highlight-color;
  88. }
  89. li {
  90. .entity-name {
  91. color: #aaaaaa;
  92. &:hover {
  93. background-color: black;
  94. }
  95. }
  96. &.selected {
  97. > .entity > .entity-name {
  98. color: @editor-dark-highlight-color;
  99. border-color: @editor-dark-highlight-color;
  100. i.fa-folder-open, i.fa-folder, i.fa-file, i.fa-image, i.fa-file-pdf-o {
  101. color: @editor-dark-highlight-color;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. }
  108. }