_panel_editor.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. 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 $panel-margin $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. padding: 0px 20px;
  108. position: relative;
  109. }
  110. .viz-picker-list {
  111. display: flex;
  112. flex-wrap: wrap;
  113. }
  114. .viz-picker__item {
  115. background: $panel-editor-viz-item-bg;
  116. border: $panel-editor-viz-item-border;
  117. border-radius: 3px;
  118. height: 100px;
  119. width: 145px;
  120. flex-shrink: 0;
  121. flex-direction: column;
  122. text-align: center;
  123. cursor: pointer;
  124. display: flex;
  125. margin-right: 10px;
  126. margin-bottom: 10px;
  127. align-items: center;
  128. justify-content: center;
  129. padding-bottom: 6px;
  130. transition: transform 1 ease;
  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. &--current {
  137. box-shadow: 0 0 6px $orange !important;
  138. border: 1px solid $orange !important;
  139. background: $panel-editor-viz-item-bg !important;
  140. }
  141. }
  142. .viz-picker__item-name {
  143. text-overflow: ellipsis;
  144. overflow: hidden;
  145. white-space: nowrap;
  146. font-size: $font-size-sm;
  147. display: flex;
  148. flex-direction: column;
  149. align-self: center;
  150. height: 23px;
  151. font-weight: 500;
  152. }
  153. .viz-picker__item-img {
  154. height: 55px;
  155. }
  156. .panel-editor-tabs {
  157. z-index: 2;
  158. display: flex;
  159. flex-direction: column;
  160. position: absolute;
  161. top: 44px;
  162. left: 20px;
  163. align-items: flex-start;
  164. &::before {
  165. content: '';
  166. display: block;
  167. position: absolute;
  168. top: 10px;
  169. bottom: 10px;
  170. left: 21px;
  171. width: 2px;
  172. background: $panel-editor-tabs-line-color;
  173. }
  174. }
  175. .panel-editor-tabs__item {
  176. margin-bottom: 25px;
  177. position: relative;
  178. z-index: 1;
  179. text-align: center;
  180. &:last-child {
  181. margin-bottom: 0;
  182. }
  183. }
  184. .panel-editor-tabs__link {
  185. display: inline-block;
  186. &.active {
  187. position: relative;
  188. }
  189. .gicon {
  190. height: 44px;
  191. width: 53px;
  192. margin-right: 5px;
  193. transition: transform 0.1s ease 0.1s;
  194. &:hover {
  195. filter: $panel-editor-side-menu-shadow;
  196. transform: scale(1.1);
  197. }
  198. }
  199. }
  200. .ds-picker {
  201. position: relative;
  202. min-width: 200px;
  203. }