_panel_editor.scss 3.9 KB

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