_panel_editor.scss 3.5 KB

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