_panel_editor.scss 4.2 KB

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