_viz_editor.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. .panel-editor-container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. }
  6. .panel-editor-container__panel {
  7. flex: 1 1 0;
  8. }
  9. .panel-editor-container__editor {
  10. margin-top: $panel-margin*2;
  11. display: flex;
  12. flex-direction: row;
  13. height: 65%;
  14. position: relative;
  15. }
  16. .panel-editor__content {
  17. flex-grow: 1;
  18. min-width: 0;
  19. height: 100%;
  20. padding: 0 20px;
  21. }
  22. .panel-in-fullscreen {
  23. .scroll-canvas--dashboard {
  24. height: 100%;
  25. }
  26. .sidemenu {
  27. display: none;
  28. }
  29. .main-view {
  30. background: unset;
  31. }
  32. .dashboard-container {
  33. padding: 0;
  34. }
  35. .submenu-controls {
  36. padding: $dashboard-padding $dashboard-padding $panel-margin $dashboard-padding;
  37. }
  38. .panel-editor-container__panel {
  39. margin: 0 $dashboard-padding;
  40. }
  41. }
  42. .viz-picker__search {
  43. flex-grow: 0;
  44. }
  45. .viz-picker {
  46. margin-bottom: $spacer;
  47. }
  48. .viz-picker__items {
  49. display: flex;
  50. // for scrollbar
  51. margin-bottom: 13px;
  52. }
  53. .viz-picker__item {
  54. background: $card-background;
  55. box-shadow: $card-shadow;
  56. border-radius: 3px;
  57. height: 70px;
  58. width: 130px;
  59. flex-shrink: 0;
  60. flex-direction: column;
  61. text-align: center;
  62. cursor: pointer;
  63. display: flex;
  64. margin-right: 6px;
  65. border: 1px solid transparent;
  66. align-items: center;
  67. &:hover {
  68. background: $card-background-hover;
  69. }
  70. &--selected {
  71. .viz-picker__item-name {
  72. color: $text-color;
  73. }
  74. }
  75. }
  76. .viz-picker__item-name {
  77. text-overflow: ellipsis;
  78. overflow: hidden;
  79. white-space: nowrap;
  80. font-size: $font-size-sm;
  81. display: flex;
  82. flex-direction: column;
  83. align-self: center;
  84. height: 20px;
  85. }
  86. .viz-picker__item-img {
  87. height: 40px;
  88. }
  89. .panel-editor__aside {
  90. background: $panel-bg;
  91. display: flex;
  92. flex-direction: column;
  93. }
  94. .panel-editor__aside-item {
  95. padding: 8px 20px;
  96. color: $text-color;
  97. font-size: $font-size-md;
  98. @include left-brand-border;
  99. &.active {
  100. @include left-brand-border-gradient();
  101. background: $page-bg;
  102. }
  103. i {
  104. width: 23px;
  105. }
  106. .gicon {
  107. margin-bottom: 2px;
  108. }
  109. .fa {
  110. font-size: 17px;
  111. }
  112. }
  113. .panel-editor__aside-actions {
  114. display: flex;
  115. flex-direction: column;
  116. height: 100%;
  117. flex-grow: 1;
  118. padding: 60px 15px;
  119. button {
  120. margin-bottom: 10px;
  121. }
  122. }
  123. .panel-editor__aside-header {
  124. color: $text-muted;
  125. font-size: $font-size-h3;
  126. padding: 20px 30px 10px 20px;
  127. white-space: nowrap;
  128. i {
  129. font-size: 25px;
  130. position: relative;
  131. top: 1px;
  132. padding-right: 5px;
  133. }
  134. }
  135. .viz-picker__bar {
  136. display: flex;
  137. margin-bottom: $spacer;
  138. }
  139. .panel-editor-resizer {
  140. position: absolute;
  141. height: 2px;
  142. width: 100%;
  143. top: 1px;
  144. padding-left: 32px;
  145. }
  146. .panel-editor-resizer__handle {
  147. display: inline-block;
  148. width: 100px;
  149. position: relative;
  150. background: $input-label-bg;
  151. top: -12px;
  152. border-radius: 2px;
  153. box-shadow: 0 0 8px $black;
  154. height: 8px;
  155. cursor: grabbing;
  156. }
  157. .panel-editor-resizer__handle-dots {
  158. border-top: 2px dotted $text-color-faint;
  159. position: relative;
  160. top: 3px;
  161. }
  162. .panel-editor {
  163. height: calc(100% - 10px);
  164. }