_panel_editor.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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: $page-bg;
  31. margin: 0 20px 0 84px;
  32. border-left: 2px solid $orange;
  33. border-radius: 3px;
  34. box-shadow: $panel-editor-shadow;
  35. }
  36. .panel-editor__close {
  37. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
  38. position: absolute;
  39. left: 11px;
  40. top: 5px;
  41. width: 40px;
  42. height: 40px;
  43. border-radius: 50%;
  44. display: flex;
  45. align-items: center;
  46. i {
  47. flex-grow: 1;
  48. text-align: center;
  49. font-size: 20px;
  50. }
  51. }
  52. .panel-editor__scroll {
  53. flex-grow: 1;
  54. min-width: 0;
  55. display: flex;
  56. }
  57. .panel-editor__content {
  58. padding: 40px 20px;
  59. }
  60. .panel-editor__toolbar-view {
  61. background: $panel-editor-toolbar-view-bg;
  62. padding: 20px;
  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 $panel-margin $dashboard-padding;
  73. }
  74. .panel-editor-container__panel {
  75. margin: 0 $dashboard-padding;
  76. }
  77. }
  78. .panel-editor-resizer {
  79. position: absolute;
  80. height: 2px;
  81. width: 100%;
  82. top: -23px;
  83. text-align: center;
  84. border-bottom: 2px dashed transparent;
  85. &:hover {
  86. transition: border-color 0.2s ease-in 0.4s;
  87. transition-delay: 0.2s;
  88. border-color: $text-color-faint;
  89. }
  90. }
  91. .panel-editor-resizer__handle {
  92. display: inline-block;
  93. width: 180px;
  94. position: relative;
  95. border-radius: 2px;
  96. height: 7px;
  97. cursor: grabbing;
  98. background: $input-label-bg;
  99. top: -9px;
  100. &:hover {
  101. transition: background 0.2s ease-in 0.4s;
  102. transition-delay: 0.2s;
  103. background: linear-gradient(90deg, $orange, $red);
  104. .panel-editor-resizer__handle-dots {
  105. transition: opacity 0.2s ease-in;
  106. opacity: 0;
  107. }
  108. }
  109. }
  110. .panel-editor-resizer__handle-dots {
  111. border-top: 2px dashed $text-color-faint;
  112. position: relative;
  113. top: 4px;
  114. }
  115. .viz-picker {
  116. display: flex;
  117. flex-wrap: wrap;
  118. margin-bottom: 13px;
  119. }
  120. .viz-picker__item {
  121. background: $panel-editor-viz-item-bg;
  122. border: $panel-editor-viz-item-border;
  123. border-radius: 3px;
  124. height: 100px;
  125. width: 150px;
  126. flex-shrink: 0;
  127. flex-direction: column;
  128. text-align: center;
  129. cursor: pointer;
  130. display: flex;
  131. margin-right: 10px;
  132. margin-bottom: 10px;
  133. //border: 1px solid transparent;
  134. align-items: center;
  135. justify-content: center;
  136. padding-bottom: 6px;
  137. transition: transform 1 ease;
  138. &:hover {
  139. box-shadow: $panel-editor-viz-item-shadow-hover;
  140. background: $panel-editor-viz-item-bg-hover;
  141. border: $panel-editor-viz-item-border-hover;
  142. }
  143. &--selected {
  144. box-shadow: 0 0 6px $orange;
  145. border: 1px solid $orange;
  146. &:hover {
  147. box-shadow: 0 0 6px $orange;
  148. border: 1px solid $orange;
  149. background: $panel-editor-viz-item-bg-hover-active;
  150. }
  151. }
  152. }
  153. .viz-picker__item-name {
  154. text-overflow: ellipsis;
  155. overflow: hidden;
  156. white-space: nowrap;
  157. font-size: $font-size-sm;
  158. display: flex;
  159. flex-direction: column;
  160. align-self: center;
  161. height: 23px;
  162. font-weight: 500;
  163. }
  164. .viz-picker__item-img {
  165. height: 55px;
  166. }
  167. .panel-editor-tabs {
  168. position: relative;
  169. z-index: 2;
  170. display: flex;
  171. flex-direction: column;
  172. position: absolute;
  173. top: 44px;
  174. left: 20px;
  175. align-items: flex-start;
  176. &::before {
  177. content: '';
  178. display: block;
  179. position: absolute;
  180. top: 10px;
  181. bottom: 10px;
  182. left: 21px;
  183. width: 2px;
  184. background: $panel-editor-tabs-line-color;
  185. }
  186. }
  187. .panel-editor-tabs__item {
  188. margin-bottom: 25px;
  189. position: relative;
  190. z-index: 1;
  191. text-align: center;
  192. &:last-child {
  193. margin-bottom: 0;
  194. }
  195. }
  196. .panel-editor-tabs__link {
  197. display: inline-block;
  198. &.active {
  199. position: relative;
  200. }
  201. .gicon {
  202. height: 44px;
  203. width: 53px;
  204. margin-right: 5px;
  205. transition: transform 0.1s ease 0.1s;
  206. &:hover {
  207. filter: $panel-editor-side-menu-shadow;
  208. transform: translate(-2px, -2px);
  209. transform: scale(1.1);
  210. }
  211. }
  212. }
  213. .ds-picker-list {
  214. display: flex;
  215. flex-wrap: wrap;
  216. margin-bottom: 13px;
  217. flex-direction: column;
  218. }
  219. .ds-picker-list__item {
  220. background: $panel-editor-viz-item-bg;
  221. border: $panel-editor-viz-item-border;
  222. border-radius: 3px;
  223. display: flex;
  224. cursor: pointer;
  225. margin-bottom: 3px;
  226. padding: 5px 15px;
  227. align-items: center;
  228. height: 44px;
  229. &:hover {
  230. background: $panel-editor-viz-item-bg-hover;
  231. border: $panel-editor-viz-item-border-hover;
  232. box-shadow: $panel-editor-viz-item-shadow-hover;
  233. }
  234. &--selected {
  235. box-shadow: 0 0 6px $orange;
  236. border: 1px solid $orange;
  237. .ds-picker-list__name {
  238. color: $text-color;
  239. }
  240. }
  241. }
  242. .ds-picker-list__name {
  243. text-overflow: ellipsis;
  244. overflow: hidden;
  245. white-space: nowrap;
  246. font-size: $font-size-md;
  247. padding-left: 15px;
  248. }
  249. .ds-picker-list__img {
  250. width: 30px;
  251. }
  252. .form-option-box {
  253. margin-bottom: 20px;
  254. }
  255. .form-option-box__header {
  256. border-bottom: 2px solid $dark-4;
  257. padding: 5px 0px;
  258. font-size: $font-size-md;
  259. margin-bottom: 20px;
  260. }
  261. .form-section {
  262. margin-bottom: 10px;
  263. }
  264. .form-section__header {
  265. padding: 5px 10px;
  266. font-size: $font-size-h5;
  267. margin-bottom: 20px;
  268. background: $input-label-bg;
  269. border-radius: 3px;
  270. }
  271. .form-section__body {
  272. padding: 0 10px;
  273. }
  274. .panel-editor-tabs__item-popover {
  275. background: $orange;
  276. }