_panel_editor.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. .panel-editor-container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100%;
  5. }
  6. .panel-wrapper {
  7. height: 100%;
  8. &--edit {
  9. flex: 1 1 0;
  10. height: unset;
  11. margin: 0 $dashboard-padding;
  12. }
  13. &--view {
  14. flex: 1 1 0;
  15. height: 80%;
  16. margin: 0 $dashboard-padding;
  17. padding-top: $dashboard-padding;
  18. }
  19. }
  20. .panel-editor-container__editor {
  21. margin-top: $panel-margin*2;
  22. display: flex;
  23. flex-direction: row;
  24. height: 65%;
  25. position: relative;
  26. }
  27. .panel-editor__right {
  28. display: flex;
  29. flex-direction: column;
  30. flex-grow: 1;
  31. background: $page-bg;
  32. margin: 0 67px;
  33. border-left: 2px solid #ac5224;
  34. border-radius: 3px;
  35. }
  36. .panel-editor__scroll {
  37. flex-grow: 1;
  38. min-width: 0;
  39. display: flex;
  40. }
  41. .panel-editor__content {
  42. padding: 40px 20px;
  43. }
  44. .panel-editor__toolbar-view {
  45. background: $black;
  46. padding: 20px;
  47. }
  48. .panel-in-fullscreen {
  49. .sidemenu {
  50. display: none;
  51. }
  52. .dashboard-container {
  53. padding: 0;
  54. }
  55. .submenu-controls {
  56. padding: 0 $dashboard-padding $panel-margin $dashboard-padding;
  57. }
  58. .panel-editor-container__panel {
  59. margin: 0 $dashboard-padding;
  60. }
  61. }
  62. .panel-editor-resizer {
  63. position: absolute;
  64. height: 2px;
  65. width: 100%;
  66. top: -23px;
  67. text-align: center;
  68. border-bottom: 2px dashed transparent;
  69. &:hover {
  70. transition: border-color 0.2s ease-in 0.4s;
  71. transition-delay: 0.2s;
  72. border-color: $text-color-faint;
  73. }
  74. }
  75. .panel-editor-resizer__handle {
  76. display: inline-block;
  77. width: 180px;
  78. position: relative;
  79. border-radius: 2px;
  80. height: 7px;
  81. cursor: grabbing;
  82. background: $input-label-bg;
  83. top: -9px;
  84. &:hover {
  85. transition: background 0.2s ease-in 0.4s;
  86. transition-delay: 0.2s;
  87. background: linear-gradient(90deg, $orange, $red);
  88. .panel-editor-resizer__handle-dots {
  89. transition: opacity 0.2s ease-in;
  90. opacity: 0;
  91. }
  92. }
  93. }
  94. .panel-editor-resizer__handle-dots {
  95. border-top: 2px dashed $text-color-faint;
  96. position: relative;
  97. top: 4px;
  98. }
  99. .viz-picker {
  100. display: flex;
  101. flex-wrap: wrap;
  102. margin-bottom: 13px;
  103. }
  104. .viz-picker__item {
  105. background: $panel-bg;
  106. border: $panel-border;
  107. border-radius: 3px;
  108. height: 90px;
  109. width: 150px;
  110. flex-shrink: 0;
  111. flex-direction: column;
  112. text-align: center;
  113. cursor: pointer;
  114. display: flex;
  115. margin-right: 10px;
  116. margin-bottom: 10px;
  117. border: 1px solid transparent;
  118. align-items: center;
  119. &:hover {
  120. background: $card-background-hover;
  121. }
  122. &--selected {
  123. box-shadow: 0 0 12px #ff4d00;
  124. }
  125. }
  126. .viz-picker__item-name {
  127. text-overflow: ellipsis;
  128. overflow: hidden;
  129. white-space: nowrap;
  130. font-size: $font-size-sm;
  131. display: flex;
  132. flex-direction: column;
  133. align-self: center;
  134. height: 23px;
  135. }
  136. .viz-picker__item-img {
  137. height: 55px;
  138. }
  139. .panel-editor-tabs {
  140. position: relative;
  141. z-index: 2;
  142. display: flex;
  143. flex-direction: column;
  144. position: absolute;
  145. top: 79px;
  146. left: 5px;
  147. align-items: center;
  148. &::before {
  149. content: '';
  150. display: block;
  151. position: absolute;
  152. top: 0;
  153. bottom: 0;
  154. left: 25px;
  155. width: 2px;
  156. background: #8e8e8e;
  157. }
  158. }
  159. .panel-editor-tabs__item {
  160. margin-bottom: 25px;
  161. position: relative;
  162. z-index: 1;
  163. text-align: center;
  164. &:last-child {
  165. margin-bottom: 0;
  166. }
  167. }
  168. .panel-editor-tabs__link {
  169. display: inline-block;
  170. &.active {
  171. position: relative;
  172. left: 4px;
  173. }
  174. img {
  175. height: 44px;
  176. }
  177. }
  178. .ds-picker-list {
  179. display: flex;
  180. flex-wrap: wrap;
  181. margin-bottom: 13px;
  182. flex-direction: column;
  183. }
  184. .ds-picker-list__item {
  185. background: $panel-bg;
  186. border: $panel-border;
  187. border-radius: 3px;
  188. display: flex;
  189. cursor: pointer;
  190. margin-bottom: 3px;
  191. padding: 5px 15px;
  192. align-items: center;
  193. &:hover {
  194. background: $card-background-hover;
  195. }
  196. &--selected {
  197. .ds-picker-list__name {
  198. color: $text-color;
  199. }
  200. }
  201. }
  202. .ds-picker-list__name {
  203. text-overflow: ellipsis;
  204. overflow: hidden;
  205. white-space: nowrap;
  206. font-size: $font-size-md;
  207. padding-left: 15px;
  208. }
  209. .ds-picker-list__img {
  210. width: 30px;
  211. }
  212. .form-option-box {
  213. margin-bottom: 20px;
  214. }
  215. .form-option-box__header {
  216. border-bottom: 2px solid $dark-4;
  217. padding: 5px 0px;
  218. font-size: $font-size-md;
  219. margin-bottom: 20px;
  220. }
  221. .form-section {
  222. margin-bottom: 10px;
  223. }
  224. .form-section__header {
  225. padding: 5px 10px;
  226. font-size: $font-size-h5;
  227. margin-bottom: 20px;
  228. background: $input-label-bg;
  229. border-radius: 3px;
  230. }
  231. .form-section__body {
  232. padding: 0 10px;
  233. }