_panel_editor.scss 5.8 KB

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