outline.less 3.7 KB

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