_panel_editor.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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: 65%;
  25. position: relative;
  26. }
  27. .panel-editor__right {
  28. display: flex;
  29. flex-direction: column;
  30. flex-grow: 1;
  31. }
  32. .panel-editor__scroll {
  33. flex-grow: 1;
  34. min-width: 0;
  35. display: flex;
  36. }
  37. .panel-editor__content {
  38. padding: 40px 20px;
  39. background: $input-label-bg;
  40. }
  41. .panel-in-fullscreen {
  42. .sidemenu {
  43. display: none;
  44. }
  45. .dashboard-container {
  46. padding: 0;
  47. }
  48. .submenu-controls {
  49. padding: 0 $dashboard-padding $panel-margin $dashboard-padding;
  50. }
  51. .panel-editor-container__panel {
  52. margin: 0 $dashboard-padding;
  53. }
  54. }
  55. .panel-editor-resizer {
  56. position: absolute;
  57. height: 2px;
  58. width: 100%;
  59. top: -23px;
  60. text-align: center;
  61. border-bottom: 2px dashed transparent;
  62. &:hover {
  63. transition: border-color 0.2s ease-in 0.4s;
  64. transition-delay: 0.2s;
  65. border-color: $text-color-faint;
  66. }
  67. }
  68. .panel-editor-resizer__handle {
  69. display: inline-block;
  70. width: 180px;
  71. position: relative;
  72. border-radius: 2px;
  73. height: 7px;
  74. cursor: grabbing;
  75. background: $input-label-bg;
  76. top: -9px;
  77. &:hover {
  78. transition: background 0.2s ease-in 0.4s;
  79. transition-delay: 0.2s;
  80. background: linear-gradient(90deg, $orange, $red);
  81. .panel-editor-resizer__handle-dots {
  82. transition: opacity 0.2s ease-in;
  83. opacity: 0;
  84. }
  85. }
  86. }
  87. .panel-editor-resizer__handle-dots {
  88. border-top: 2px dashed $text-color-faint;
  89. position: relative;
  90. top: 4px;
  91. }
  92. .viz-picker {
  93. display: flex;
  94. flex-wrap: wrap;
  95. margin-bottom: 13px;
  96. }
  97. .viz-picker__item {
  98. background: $card-background;
  99. box-shadow: $card-shadow;
  100. border-radius: 3px;
  101. height: 90px;
  102. width: 150px;
  103. flex-shrink: 0;
  104. flex-direction: column;
  105. text-align: center;
  106. cursor: pointer;
  107. display: flex;
  108. margin-right: 10px;
  109. margin-bottom: 10px;
  110. border: 1px solid transparent;
  111. align-items: center;
  112. &:hover {
  113. background: $card-background-hover;
  114. }
  115. &--selected {
  116. box-shadow: 0 0 12px #ff4d00;
  117. }
  118. }
  119. .viz-picker__item-name {
  120. text-overflow: ellipsis;
  121. overflow: hidden;
  122. white-space: nowrap;
  123. font-size: $font-size-sm;
  124. display: flex;
  125. flex-direction: column;
  126. align-self: center;
  127. height: 23px;
  128. }
  129. .viz-picker__item-img {
  130. height: 55px;
  131. }
  132. .panel-editor-tabs {
  133. position: relative;
  134. z-index: 2;
  135. display: flex;
  136. flex-direction: column;
  137. padding: 40px 10px 10px 10px;
  138. }
  139. .panel-editor-tabs__item {
  140. margin-bottom: 25px;
  141. }
  142. .ds-picker-list {
  143. display: flex;
  144. flex-wrap: wrap;
  145. margin-bottom: 13px;
  146. flex-direction: column;
  147. }
  148. .ds-picker-list__item {
  149. background: $card-background;
  150. box-shadow: $card-shadow;
  151. border-radius: 3px;
  152. display: flex;
  153. cursor: pointer;
  154. margin-bottom: 3px;
  155. padding: 5px 15px;
  156. align-items: center;
  157. &:hover {
  158. background: $card-background-hover;
  159. }
  160. &--selected {
  161. .ds-picker-list__name {
  162. color: $text-color;
  163. }
  164. }
  165. }
  166. .ds-picker-list__name {
  167. text-overflow: ellipsis;
  168. overflow: hidden;
  169. white-space: nowrap;
  170. font-size: $font-size-md;
  171. padding-left: 15px;
  172. }
  173. .ds-picker-list__img {
  174. width: 30px;
  175. }
  176. .form-option-box {
  177. margin-bottom: 20px;
  178. }
  179. .form-option-box__header {
  180. border-bottom: 2px solid $dark-4;
  181. padding: 5px 0px;
  182. font-size: $font-size-md;
  183. margin-bottom: 20px;
  184. }
  185. .form-section {
  186. margin-bottom: 10px;
  187. }
  188. .form-section__header {
  189. padding: 5px 10px;
  190. font-size: $font-size-h5;
  191. margin-bottom: 20px;
  192. background: $input-label-bg;
  193. border-radius: 3px;
  194. }
  195. .form-section__body {
  196. padding: 0 10px;
  197. }