outline.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .outline-container {
  2. width: 100%;
  3. background-color: @file-tree-bg;
  4. }
  5. .outline-pane {
  6. display: flex;
  7. flex-flow: column;
  8. height: 100%;
  9. font-size: @font-size-small;
  10. color: @file-tree-item-color;
  11. }
  12. .outline-pane-disabled {
  13. opacity: 0.5;
  14. }
  15. .outline-header {
  16. .toolbar-small-mixin;
  17. .toolbar-alt-mixin;
  18. display: flex;
  19. flex-shrink: 0;
  20. border-bottom: 1px solid @toolbar-border-color;
  21. border-top: 1px solid @toolbar-border-color;
  22. }
  23. .outline-header-expand-collapse-btn {
  24. display: flex;
  25. align-items: center;
  26. background-color: transparent;
  27. border: 0;
  28. padding: 0 (@outline-h-rhythm * 0.25) 0 0;
  29. font-size: inherit;
  30. vertical-align: inherit;
  31. color: @file-tree-item-color;
  32. flex: 1 0 100%;
  33. text-align: left;
  34. white-space: nowrap;
  35. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  36. &:hover,
  37. &:focus {
  38. outline: 0;
  39. }
  40. &:hover {
  41. background-color: @outline-header-hover-bg;
  42. }
  43. &:hover[disabled] {
  44. background-color: transparent;
  45. }
  46. }
  47. .outline-header-name {
  48. display: inline-block;
  49. font-family: @font-family-sans-serif;
  50. font-size: @font-size-small;
  51. color: @file-tree-item-color;
  52. font-weight: 700;
  53. margin: 0;
  54. flex-grow: 1;
  55. flex-shrink: 1;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. }
  59. .outline-body {
  60. overflow-y: auto;
  61. background-color: @file-tree-bg;
  62. padding-right: @outline-h-rhythm * 0.25;
  63. }
  64. .outline-body-no-elements {
  65. color: @outline-no-items-color;
  66. text-align: center;
  67. padding: @outline-v-rhythm @outline-h-rhythm (@outline-v-rhythm * 2);
  68. margin-right: -(@outline-h-rhythm * 0.25);
  69. }
  70. .outline-body-link {
  71. display: block;
  72. color: @file-tree-item-color;
  73. text-decoration: underline;
  74. &:hover,
  75. &:focus {
  76. color: @file-tree-item-color;
  77. text-decoration: underline;
  78. }
  79. }
  80. .outline-item-list {
  81. position: relative;
  82. list-style: none;
  83. padding-left: @outline-h-rhythm;
  84. &::before {
  85. content: '';
  86. background-color: @outline-line-guide-color;
  87. top: @outline-h-rhythm / 4;
  88. bottom: @outline-h-rhythm / 4;
  89. width: 1px;
  90. left: (@outline-h-rhythm * 1.5);
  91. position: absolute;
  92. }
  93. &.outline-item-list-root {
  94. padding-left: 0;
  95. &::before {
  96. left: (@outline-h-rhythm * 0.5);
  97. }
  98. }
  99. }
  100. .outline-item-no-children {
  101. padding-left: @outline-h-rhythm - @outline-item-h-padding;
  102. }
  103. .outline-item-row {
  104. display: flex;
  105. overflow: hidden;
  106. white-space: nowrap;
  107. }
  108. .outline-item-expand-collapse-btn {
  109. display: inline;
  110. border: 0;
  111. padding: 0;
  112. font-size: inherit;
  113. vertical-align: inherit;
  114. position: relative;
  115. z-index: 1;
  116. background-color: @file-tree-bg;
  117. color: @outline-expand-collapse-color;
  118. margin-right: -(@outline-item-h-padding);
  119. border-radius: @border-radius-base;
  120. &:hover,
  121. &:focus {
  122. outline: 0;
  123. }
  124. &:hover {
  125. background-color: @file-tree-item-hover-bg;
  126. }
  127. }
  128. .outline-item-link {
  129. display: inline;
  130. color: @file-tree-item-color;
  131. background-color: transparent;
  132. border: 0;
  133. position: relative;
  134. z-index: 1;
  135. padding: 0 @outline-item-h-padding;
  136. line-height: @outline-v-rhythm;
  137. border-radius: @border-radius-base;
  138. overflow: hidden;
  139. text-overflow: ellipsis;
  140. text-align: left;
  141. &:hover,
  142. &:focus {
  143. outline: 0;
  144. background-color: @file-tree-item-hover-bg;
  145. }
  146. }
  147. .outline-item-link-highlight {
  148. background-color: @outline-highlight-bg;
  149. }
  150. .outline-caret-icon {
  151. width: @outline-h-rhythm;
  152. font-size: 17px;
  153. text-align: center;
  154. }