_panel_editor.scss 5.7 KB

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