_panel_editor.scss 4.2 KB

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