_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. background: $panel-editor-toolbar-view-bg;
  117. display: flex;
  118. flex-wrap: wrap;
  119. margin: -40px -20px;
  120. margin-bottom: 13px;
  121. padding: 20px;
  122. }
  123. .viz-picker__item {
  124. background: $panel-editor-viz-item-bg;
  125. border: $panel-editor-viz-item-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. &--selected {
  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. }
  281. .form-section__body {
  282. padding: 0 10px;
  283. }
  284. .panel-editor-tabs__item-popover {
  285. background: $orange;
  286. }