_panel_editor.scss 3.7 KB

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