outline.less 3.7 KB

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