outline.less 3.7 KB

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