entity.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. .molstar-entity-tree {
  2. overflow: hidden;
  3. position: absolute;
  4. bottom: 0;
  5. left: 0;
  6. right: 0;
  7. top: 0;
  8. padding-top: $control-spacing;
  9. background: $control-background;
  10. .molstar-entity-tree-children {
  11. overflow-x: hidden;
  12. overflow-y: auto;
  13. position: absolute;
  14. bottom: 0;
  15. left: 0;
  16. right: 0;
  17. top: $row-height + $control-spacing + 1;
  18. padding: $control-spacing 0;
  19. }
  20. }
  21. .molstar-entity-store-header {
  22. height: $row-height + 1;
  23. position: relative;
  24. > span {
  25. margin-left: 6px;
  26. display: inline-block;
  27. line-height: $row-height;
  28. font-weight: bold;
  29. @include non-selectable
  30. }
  31. button {
  32. display: block !important;
  33. height: $row-height !important;
  34. margin: 0 !important;
  35. line-height: $row-height !important;
  36. border: none !important;
  37. position: absolute;
  38. top: 0;
  39. }
  40. border-bottom: 1px solid $border-color;
  41. }
  42. .molstar-entity-store-root {
  43. overflow-x: hidden;
  44. overflow-y: auto;
  45. position: absolute;
  46. bottom: 0;
  47. left: 0;
  48. top: $row-height + 1;
  49. right: 0;
  50. }
  51. .molstar-entity-tree-entry {
  52. height: $row-height + 1;
  53. position: relative;
  54. border-bottom: 1px solid $control-background;
  55. }
  56. .molstar-entity-tree-entry-current {
  57. background: color-lower-contrast($default-background, 4%) !important;
  58. .molstar-entity-tree-entry-label {
  59. color: $entity-current-font-color;
  60. font-weight: bold;
  61. .molstar-entity-tree-entry-label-tag {
  62. font-weight: normal;
  63. }
  64. &:hover {
  65. color: $hover-font-color;
  66. }
  67. }
  68. }
  69. .molstar-entity-tree-entry-current-path {
  70. background: color-lower-contrast($default-background, 2%) !important;
  71. .molstar-entity-tree-entry-label {
  72. color: color-lower-contrast($entity-current-font-color, 5%);
  73. &:hover {
  74. color: $hover-font-color;
  75. }
  76. }
  77. }
  78. .molstar-entity-tree-entry button, .molstar-entity-tree-entry > div {
  79. display: block !important;
  80. height: $row-height !important;
  81. margin: 0 !important;
  82. line-height: $row-height !important;
  83. border: none !important;
  84. position: absolute;
  85. top: 0;
  86. }
  87. .molstar-entity-tree-entry-toggle-group {
  88. width: $row-height;
  89. height: $row-height;
  90. padding: 0;
  91. left: 0;
  92. }
  93. .molstar-entity-tree-entry-toggle-visible {
  94. width: $row-height;
  95. right: 0; //$row-height + 6;
  96. padding: 0 !important;
  97. font-size: 80%;
  98. }
  99. .molstar-entity-tree-entry-toggle-visible-full, .molstar-entity-tree-entry-toggle-visible-full:focus, .molstar-entity-tree-entry-toggle-visible-full:active {
  100. color: $entity-color-fully-visible;
  101. }
  102. .molstar-entity-tree-entry-toggle-visible-partial, .molstar-entity-tree-entry-toggle-visible-partial:focus, .molstar-entity-tree-entry-toggle-visible-partial:active {
  103. color: $entity-color-partialy-visible;
  104. }
  105. .molstar-entity-tree-entry-toggle-visible-none, .molstar-entity-tree-entry-toggle-visible-none:focus, .molstar-entity-tree-entry-toggle-visible-none:active {
  106. //background: transparent !important;
  107. color: $entity-color-not-visible;
  108. }
  109. .molstar-entity-tree-entry-remove {
  110. width: $row-height;
  111. height: $row-height;
  112. right: $row-height;
  113. padding: 0 !important;
  114. text-align: center;
  115. font-size: 80%;
  116. color: color-lower-contrast($font-color, 66%)
  117. }
  118. .molstar-entity-tree-entry-body {
  119. position: absolute;
  120. left: $row-height;
  121. border-radius: 0 0 0 $entity-subtree-offset;
  122. right: 0;
  123. background: $default-background;
  124. }
  125. .molstar-entity-tree-entry .molstar-entity-badge {
  126. width: $row-height;
  127. position: absolute;
  128. height: $row-height;
  129. left: 0;
  130. top: 0;
  131. border-radius: 0 $entity-subtree-offset 0 $entity-subtree-offset;
  132. }
  133. .molstar-entity-tree-entry-label-wrap {
  134. right: 2 * $row-height;
  135. overflow: hidden;
  136. left: $row-height;
  137. height: $row-height;
  138. position: absolute;
  139. }
  140. .molstar-entity-tree-entry-label {
  141. position: absolute;
  142. right: 0;
  143. top: 0;
  144. left: 0;
  145. text-align: left !important;
  146. width: 100%;
  147. padding: 0 $control-spacing !important;
  148. }
  149. .molstar-entity-tree-entry-label-tag {
  150. color: $entity-tag-color;
  151. font-size: 70%;
  152. display: inline-block;
  153. margin-left: 6px;
  154. }
  155. .molstar-entity-tree-children-wrap {
  156. padding-left: $entity-subtree-offset;
  157. }
  158. .molstar-entity-tree-root {
  159. > .molstar-entity-tree-entry {
  160. .molstar-entity-badge {
  161. border-top-right-radius: 0;
  162. }
  163. .molstar-entity-tree-entry-label {
  164. font-weight: bold;
  165. }
  166. .molstar-entity-tree-entry-toggle-group {
  167. display: none !important;
  168. }
  169. .molstar-entity-tree-entry-body {
  170. left: $row-height - $entity-subtree-offset !important;
  171. }
  172. background: $default-background;
  173. border-bottom: 1px solid $border-color;
  174. }
  175. > .molstar-entity-tree-children-wrap {
  176. margin-top: $control-spacing;
  177. padding-left: 0 !important;
  178. }
  179. }
  180. .molstar-panel {
  181. .molstar-entity-tree-entry-toggle-visible {
  182. position: absolute;
  183. top: 0;
  184. right: 0;
  185. height: $row-height;
  186. font-size: 100%;
  187. background: $default-background; //color-increase-contrast($default-background, 4%);
  188. }
  189. // .molstar-entity-tree-entry-toggle-visible-full {
  190. // background: color-increase-contrast($default-background, 8%);
  191. // }
  192. }