_panel_editor.scss 5.8 KB

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