_panel_editor.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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-resizer {
  74. position: absolute;
  75. height: 2px;
  76. width: 100%;
  77. top: -23px;
  78. text-align: center;
  79. border-bottom: 2px dashed transparent;
  80. &:hover {
  81. transition: border-color 0.2s ease-in 0.4s;
  82. transition-delay: 0.2s;
  83. border-color: $text-color-faint;
  84. }
  85. }
  86. .panel-editor-resizer__handle {
  87. display: inline-block;
  88. width: 180px;
  89. position: relative;
  90. border-radius: 2px;
  91. height: 7px;
  92. cursor: grabbing;
  93. background: $input-label-bg;
  94. top: -9px;
  95. &:hover {
  96. transition: background 0.2s ease-in 0.4s;
  97. transition-delay: 0.2s;
  98. background: linear-gradient(90deg, $orange, $red);
  99. .panel-editor-resizer__handle-dots {
  100. transition: opacity 0.2s ease-in;
  101. opacity: 0;
  102. }
  103. }
  104. }
  105. .panel-editor-resizer__handle-dots {
  106. border-top: 2px dashed $text-color-faint;
  107. position: relative;
  108. top: 4px;
  109. }
  110. .viz-picker {
  111. padding: 20px;
  112. position: relative;
  113. }
  114. .viz-picker-list {
  115. display: flex;
  116. flex-wrap: wrap;
  117. }
  118. .viz-picker__item {
  119. background: $panel-editor-viz-item-bg;
  120. border: $panel-editor-viz-item-border;
  121. border-radius: 3px;
  122. height: 100px;
  123. width: 150px;
  124. flex-shrink: 0;
  125. flex-direction: column;
  126. text-align: center;
  127. cursor: pointer;
  128. display: flex;
  129. margin-right: 10px;
  130. margin-bottom: 10px;
  131. //border: 1px solid transparent;
  132. align-items: center;
  133. justify-content: center;
  134. padding-bottom: 6px;
  135. transition: transform 1 ease;
  136. &--current {
  137. box-shadow: 0 0 6px $orange;
  138. border: 1px solid $orange;
  139. }
  140. &:hover {
  141. box-shadow: $panel-editor-viz-item-shadow-hover;
  142. background: $panel-editor-viz-item-bg-hover;
  143. border: $panel-editor-viz-item-border-hover;
  144. }
  145. }
  146. .viz-picker__item-name {
  147. text-overflow: ellipsis;
  148. overflow: hidden;
  149. white-space: nowrap;
  150. font-size: $font-size-sm;
  151. display: flex;
  152. flex-direction: column;
  153. align-self: center;
  154. height: 23px;
  155. font-weight: 500;
  156. }
  157. .viz-picker__item-img {
  158. height: 55px;
  159. }
  160. .panel-editor-tabs {
  161. position: relative;
  162. z-index: 2;
  163. display: flex;
  164. flex-direction: column;
  165. position: absolute;
  166. top: 44px;
  167. left: 20px;
  168. align-items: flex-start;
  169. &::before {
  170. content: '';
  171. display: block;
  172. position: absolute;
  173. top: 10px;
  174. bottom: 10px;
  175. left: 21px;
  176. width: 2px;
  177. background: $panel-editor-tabs-line-color;
  178. }
  179. }
  180. .panel-editor-tabs__item {
  181. margin-bottom: 25px;
  182. position: relative;
  183. z-index: 1;
  184. text-align: center;
  185. &:last-child {
  186. margin-bottom: 0;
  187. }
  188. }
  189. .panel-editor-tabs__link {
  190. display: inline-block;
  191. &.active {
  192. position: relative;
  193. }
  194. .gicon {
  195. height: 44px;
  196. width: 53px;
  197. margin-right: 5px;
  198. transition: transform 0.1s ease 0.1s;
  199. &:hover {
  200. filter: $panel-editor-side-menu-shadow;
  201. transform: translate(-2px, -2px);
  202. transform: scale(1.1);
  203. }
  204. }
  205. }
  206. .ds-picker {
  207. position: relative;
  208. min-width: 200px;
  209. }
  210. .panel-option-section {
  211. margin-bottom: 10px;
  212. }
  213. .panel-option-section__header {
  214. padding: 5px 20px;
  215. font-size: $font-size-h5;
  216. background: $input-label-bg;
  217. position: relative;
  218. .btn {
  219. position: absolute;
  220. right: 0;
  221. top: 2px;
  222. }
  223. }
  224. .panel-option-section__body {
  225. padding: 20px;
  226. background: $page-bg;
  227. &--queries {
  228. min-height: 300px;
  229. }
  230. }