outline.less 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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.outline-header-expand-collapse-btn {
  16. justify-content: space-between;
  17. padding-right: 0;
  18. }
  19. .documentation-btn .btn {
  20. padding-right: 0;
  21. }
  22. .documentation-link {
  23. display: flex;
  24. margin-left: 0.5em;
  25. }
  26. .outline-header {
  27. .toolbar-small-mixin;
  28. .toolbar-alt-mixin;
  29. display: flex;
  30. flex-shrink: 0;
  31. border-bottom: 1px solid @toolbar-border-color;
  32. border-top: 1px solid @toolbar-border-color;
  33. }
  34. .outline-footer {
  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. }