_panel_editor.scss 5.6 KB

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