_panel_editor.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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. &--current {
  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. &--selected {
  153. box-shadow: 0 0 6px $purple;
  154. border: 1px solid $purple;
  155. &:hover {
  156. box-shadow: 0 0 6px $purple;
  157. border: 1px solid $purple;
  158. background: $panel-editor-viz-item-bg-hover-active;
  159. }
  160. }
  161. }
  162. .viz-picker__item-name {
  163. text-overflow: ellipsis;
  164. overflow: hidden;
  165. white-space: nowrap;
  166. font-size: $font-size-sm;
  167. display: flex;
  168. flex-direction: column;
  169. align-self: center;
  170. height: 23px;
  171. font-weight: 500;
  172. }
  173. .viz-picker__item-img {
  174. height: 55px;
  175. }
  176. .panel-editor-tabs {
  177. position: relative;
  178. z-index: 2;
  179. display: flex;
  180. flex-direction: column;
  181. position: absolute;
  182. top: 44px;
  183. left: 20px;
  184. align-items: flex-start;
  185. &::before {
  186. content: '';
  187. display: block;
  188. position: absolute;
  189. top: 10px;
  190. bottom: 10px;
  191. left: 21px;
  192. width: 2px;
  193. background: $panel-editor-tabs-line-color;
  194. }
  195. }
  196. .panel-editor-tabs__item {
  197. margin-bottom: 25px;
  198. position: relative;
  199. z-index: 1;
  200. text-align: center;
  201. &:last-child {
  202. margin-bottom: 0;
  203. }
  204. }
  205. .panel-editor-tabs__link {
  206. display: inline-block;
  207. &.active {
  208. position: relative;
  209. }
  210. .gicon {
  211. height: 44px;
  212. width: 53px;
  213. margin-right: 5px;
  214. transition: transform 0.1s ease 0.1s;
  215. &:hover {
  216. filter: $panel-editor-side-menu-shadow;
  217. transform: translate(-2px, -2px);
  218. transform: scale(1.1);
  219. }
  220. }
  221. }
  222. .ds-picker-list {
  223. display: flex;
  224. flex-wrap: wrap;
  225. margin-bottom: 13px;
  226. flex-direction: column;
  227. }
  228. .ds-picker-list__item {
  229. background: $panel-editor-viz-item-bg;
  230. border: $panel-editor-viz-item-border;
  231. border-radius: 3px;
  232. display: flex;
  233. cursor: pointer;
  234. margin-bottom: 3px;
  235. padding: 5px 15px;
  236. align-items: center;
  237. height: 44px;
  238. &:hover {
  239. background: $panel-editor-viz-item-bg-hover;
  240. border: $panel-editor-viz-item-border-hover;
  241. box-shadow: $panel-editor-viz-item-shadow-hover;
  242. }
  243. &--selected {
  244. box-shadow: 0 0 6px $orange;
  245. border: 1px solid $orange;
  246. .ds-picker-list__name {
  247. color: $text-color;
  248. }
  249. }
  250. }
  251. .ds-picker-list__name {
  252. text-overflow: ellipsis;
  253. overflow: hidden;
  254. white-space: nowrap;
  255. font-size: $font-size-md;
  256. padding-left: 15px;
  257. }
  258. .ds-picker-list__img {
  259. width: 30px;
  260. }
  261. .form-option-box {
  262. margin-bottom: 20px;
  263. }
  264. .form-option-box__header {
  265. border-bottom: 2px solid $dark-4;
  266. padding: 5px 0px;
  267. font-size: $font-size-md;
  268. margin-bottom: 20px;
  269. }
  270. .form-section {
  271. margin-bottom: 10px;
  272. }
  273. .form-section__header {
  274. padding: 5px 10px;
  275. font-size: $font-size-h5;
  276. margin-bottom: 20px;
  277. background: $input-label-bg;
  278. border-radius: 3px;
  279. }
  280. .form-section__body {
  281. padding: 0 10px;
  282. }
  283. .panel-editor-tabs__item-popover {
  284. background: $orange;
  285. }