_panel_editor.scss 3.9 KB

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