_panel_editor.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. .panel-editor-container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. }
  6. .panel-wrapper {
  7. height: 100%;
  8. &--edit {
  9. height: 40%;
  10. margin: 0 $dashboard-padding;
  11. }
  12. &--view {
  13. flex: 1 1 0;
  14. height: 90%;
  15. margin: 0 $dashboard-padding;
  16. padding-top: $dashboard-padding;
  17. }
  18. }
  19. .panel-editor-container__editor {
  20. margin-top: $space-l;
  21. display: flex;
  22. flex-direction: row;
  23. flex: 1 1 0;
  24. position: relative;
  25. min-height: 0;
  26. }
  27. .panel-editor__right {
  28. display: flex;
  29. flex-direction: column;
  30. flex-grow: 1;
  31. background: $input-bg;
  32. margin: 0 20px 0 84px;
  33. width: calc(100% - 84px);
  34. border-radius: 3px;
  35. box-shadow: $panel-editor-shadow;
  36. min-height: 0;
  37. }
  38. .panel-editor__close {
  39. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
  40. position: absolute;
  41. left: 11px;
  42. top: 5px;
  43. width: 40px;
  44. height: 40px;
  45. border-radius: 50%;
  46. display: flex;
  47. align-items: center;
  48. i {
  49. flex-grow: 1;
  50. text-align: center;
  51. font-size: 20px;
  52. }
  53. }
  54. .panel-editor__scroll {
  55. flex-grow: 1;
  56. min-width: 0;
  57. display: flex;
  58. min-height: 0;
  59. }
  60. .panel-editor__content {
  61. padding: 15px;
  62. }
  63. .panel-in-fullscreen {
  64. .sidemenu {
  65. display: none;
  66. }
  67. .dashboard-container {
  68. padding: 0;
  69. }
  70. .submenu-controls {
  71. padding: 0 $dashboard-padding $space-s $dashboard-padding;
  72. }
  73. .panel-editor-container__panel {
  74. margin: 0 $dashboard-padding;
  75. }
  76. .search-container {
  77. left: 0 !important;
  78. }
  79. }
  80. .panel-editor-container__resizer {
  81. position: relative;
  82. margin-top: -3px;
  83. }
  84. .panel-editor-resizer__handle {
  85. position: relative;
  86. display: block;
  87. background: $vertical-resize-handle-bg;
  88. width: 150px;
  89. margin-left: -75px;
  90. height: 6px;
  91. cursor: ns-resize;
  92. border-radius: 3px;
  93. margin: 0 auto;
  94. &::before {
  95. content: ' ';
  96. position: absolute;
  97. left: 10px;
  98. right: 10px;
  99. top: 2px;
  100. border-top: 2px dotted $vertical-resize-handle-dots;
  101. }
  102. &:hover::before {
  103. border-color: $vertical-resize-handle-dots-hover;
  104. }
  105. }
  106. .viz-picker {
  107. position: relative;
  108. }
  109. .viz-picker-list {
  110. display: flex;
  111. flex-wrap: wrap;
  112. }
  113. .viz-picker__item {
  114. background: $panel-editor-viz-item-bg;
  115. border: $panel-editor-viz-item-border;
  116. border-radius: 3px;
  117. height: 100px;
  118. width: 145px;
  119. flex-shrink: 0;
  120. flex-direction: column;
  121. text-align: center;
  122. cursor: pointer;
  123. display: flex;
  124. margin-right: 10px;
  125. margin-bottom: 10px;
  126. align-items: center;
  127. justify-content: center;
  128. padding-bottom: 6px;
  129. transition: transform 1 ease;
  130. &:hover {
  131. box-shadow: $panel-editor-viz-item-shadow-hover;
  132. background: $panel-editor-viz-item-bg-hover;
  133. border: $panel-editor-viz-item-border-hover;
  134. }
  135. &--current {
  136. box-shadow: 0 0 6px $orange !important;
  137. border: 1px solid $orange !important;
  138. background: $panel-editor-viz-item-bg !important;
  139. }
  140. }
  141. .viz-picker__item-name {
  142. text-overflow: ellipsis;
  143. overflow: hidden;
  144. white-space: nowrap;
  145. font-size: $font-size-sm;
  146. display: flex;
  147. flex-direction: column;
  148. align-self: center;
  149. height: 23px;
  150. font-weight: 500;
  151. }
  152. .viz-picker__item-img {
  153. height: 55px;
  154. }
  155. .panel-editor-tabs {
  156. z-index: 2;
  157. display: flex;
  158. flex-direction: column;
  159. position: absolute;
  160. top: 44px;
  161. left: 20px;
  162. align-items: flex-start;
  163. &::before {
  164. content: '';
  165. display: block;
  166. position: absolute;
  167. top: 10px;
  168. bottom: 10px;
  169. left: 21px;
  170. width: 2px;
  171. background: $panel-editor-tabs-line-color;
  172. }
  173. }
  174. .panel-editor-tabs__item {
  175. margin-bottom: 25px;
  176. position: relative;
  177. z-index: 1;
  178. text-align: center;
  179. &:last-child {
  180. margin-bottom: 0;
  181. }
  182. }
  183. .panel-editor-tabs__link {
  184. display: inline-block;
  185. &.active {
  186. position: relative;
  187. }
  188. .gicon {
  189. height: 44px;
  190. width: 53px;
  191. margin-right: 5px;
  192. transition: transform 0.1s ease 0.1s;
  193. &:hover {
  194. filter: $panel-editor-side-menu-shadow;
  195. transform: scale(1.1);
  196. }
  197. }
  198. }
  199. .ds-picker {
  200. position: relative;
  201. min-width: 200px;
  202. }