_panel_editor.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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 62px;
  33. border-left: 2px solid #ac5224;
  34. border-radius: 3px;
  35. box-shadow: $popover-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: $black;
  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-bg;
  123. border: $panel-border;
  124. border-radius: 3px;
  125. height: 90px;
  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. &:hover {
  137. background: $card-background-hover;
  138. }
  139. &--selected {
  140. box-shadow: 0 0 12px #ff4d00;
  141. }
  142. }
  143. .viz-picker__item-name {
  144. text-overflow: ellipsis;
  145. overflow: hidden;
  146. white-space: nowrap;
  147. font-size: $font-size-sm;
  148. display: flex;
  149. flex-direction: column;
  150. align-self: center;
  151. height: 23px;
  152. }
  153. .viz-picker__item-img {
  154. height: 55px;
  155. }
  156. .panel-editor-tabs {
  157. position: relative;
  158. z-index: 2;
  159. display: flex;
  160. flex-direction: column;
  161. position: absolute;
  162. top: 79px;
  163. left: 9px;
  164. align-items: flex-start;
  165. &::before {
  166. content: '';
  167. display: block;
  168. position: absolute;
  169. top: 0;
  170. bottom: 0;
  171. left: 21px;
  172. width: 2px;
  173. background: #8e8e8e;
  174. }
  175. }
  176. .panel-editor-tabs__item {
  177. margin-bottom: 25px;
  178. position: relative;
  179. z-index: 1;
  180. text-align: center;
  181. &:last-child {
  182. margin-bottom: 0;
  183. }
  184. }
  185. .panel-editor-tabs__link {
  186. display: inline-block;
  187. &.active {
  188. position: relative;
  189. }
  190. img {
  191. height: 44px;
  192. }
  193. }
  194. .ds-picker-list {
  195. display: flex;
  196. flex-wrap: wrap;
  197. margin-bottom: 13px;
  198. flex-direction: column;
  199. }
  200. .ds-picker-list__item {
  201. background: $panel-bg;
  202. border: $panel-border;
  203. border-radius: 3px;
  204. display: flex;
  205. cursor: pointer;
  206. margin-bottom: 3px;
  207. padding: 5px 15px;
  208. align-items: center;
  209. &:hover {
  210. background: $card-background-hover;
  211. }
  212. &--selected {
  213. .ds-picker-list__name {
  214. color: $text-color;
  215. }
  216. }
  217. }
  218. .ds-picker-list__name {
  219. text-overflow: ellipsis;
  220. overflow: hidden;
  221. white-space: nowrap;
  222. font-size: $font-size-md;
  223. padding-left: 15px;
  224. }
  225. .ds-picker-list__img {
  226. width: 30px;
  227. }
  228. .form-option-box {
  229. margin-bottom: 20px;
  230. }
  231. .form-option-box__header {
  232. border-bottom: 2px solid $dark-4;
  233. padding: 5px 0px;
  234. font-size: $font-size-md;
  235. margin-bottom: 20px;
  236. }
  237. .form-section {
  238. margin-bottom: 10px;
  239. }
  240. .form-section__header {
  241. padding: 5px 10px;
  242. font-size: $font-size-h5;
  243. margin-bottom: 20px;
  244. background: $input-label-bg;
  245. border-radius: 3px;
  246. }
  247. .form-section__body {
  248. padding: 0 10px;
  249. }