_query_editor.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. .query-keyword {
  2. font-weight: $font-weight-semi-bold;
  3. color: $blue;
  4. }
  5. .gf-form-disabled {
  6. .query-keyword {
  7. color: darken($blue, 20%);
  8. }
  9. }
  10. .query-segment-operator {
  11. color: $orange;
  12. }
  13. .query-editor-rows {
  14. margin: 20px 0;
  15. }
  16. .gf-form-query {
  17. .gf-form,
  18. .gf-form-filler {
  19. margin-bottom: 2px;
  20. }
  21. .gf-form-switch,
  22. .gf-form-switch label,
  23. .gf-form-input,
  24. .gf-form-select-wrapper,
  25. .gf-form-filler,
  26. .gf-form-label {
  27. margin-right: 2px;
  28. }
  29. .gf-form + .gf-form {
  30. margin-left: 0;
  31. }
  32. }
  33. .gf-form-query-content {
  34. flex-grow: 2;
  35. &--collapsed {
  36. overflow: hidden;
  37. .gf-form-label {
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. width: 100%;
  41. white-space: nowrap;
  42. }
  43. }
  44. }
  45. .gf-form-query-letter-cell {
  46. flex-shrink: 0;
  47. .gf-form-query-letter-cell-carret {
  48. display: inline-block;
  49. width: 0.7rem;
  50. position: relative;
  51. left: -2px;
  52. }
  53. .gf-form-query-letter-cell-letter {
  54. font-weight: bold;
  55. color: $blue;
  56. }
  57. .gf-form-query-letter-cell-ds {
  58. color: $text-color-weak;
  59. }
  60. }
  61. .gf-query-ds-label {
  62. text-align: center;
  63. width: 44px;
  64. }
  65. .grafana-metric-options {
  66. margin-top: 25px;
  67. }
  68. .tight-form-func {
  69. background: $tight-form-func-bg;
  70. &.show-function-controls {
  71. padding-top: 5px;
  72. min-width: 100px;
  73. text-align: center;
  74. }
  75. }
  76. input[type='text'].tight-form-func-param {
  77. font-size: 0.875rem;
  78. background: transparent;
  79. border: none;
  80. margin: 0;
  81. padding: 0;
  82. }
  83. .tight-form-func-controls {
  84. display: none;
  85. text-align: center;
  86. .fa-arrow-left {
  87. float: left;
  88. position: relative;
  89. top: 2px;
  90. }
  91. .fa-arrow-right {
  92. float: right;
  93. position: relative;
  94. top: 2px;
  95. }
  96. .fa-remove {
  97. margin-left: 10px;
  98. }
  99. }
  100. .grafana-metric-options {
  101. margin-top: 25px;
  102. }
  103. .tight-form-func {
  104. background: $tight-form-func-bg;
  105. &.show-function-controls {
  106. padding-top: 5px;
  107. min-width: 100px;
  108. text-align: center;
  109. }
  110. }
  111. .query-troubleshooter {
  112. font-size: $font-size-sm;
  113. margin: $gf-form-margin;
  114. border: 1px solid $btn-secondary-bg;
  115. min-height: 100px;
  116. border-radius: 3px;
  117. }
  118. .query-troubleshooter__header {
  119. float: right;
  120. font-size: $font-size-sm;
  121. text-align: right;
  122. padding: $input-padding-y $input-padding-x;
  123. a {
  124. margin-left: $spacer;
  125. }
  126. }
  127. .query-troubleshooter__body {
  128. padding: $spacer 0;
  129. }
  130. .rst-text::before {
  131. content: ' ';
  132. }
  133. .rst-unknown.rst-directive {
  134. font-family: monospace;
  135. margin-bottom: 1rem;
  136. }
  137. .rst-interpreted_text {
  138. font-family: monospace;
  139. display: inline;
  140. }
  141. .rst-bullet-list {
  142. padding-left: 1.5rem;
  143. margin-bottom: 1rem;
  144. }
  145. .rst-paragraph:last-child {
  146. margin-bottom: 0;
  147. }
  148. .drop-element.drop-popover.drop-function-def .drop-content {
  149. max-width: 30rem;
  150. }
  151. .rst-literal-block .rst-text {
  152. display: block;
  153. }
  154. .query-editor-box {
  155. background: $page-bg;
  156. margin-bottom: 2px;
  157. &:hover {
  158. .query-editor-box__actions {
  159. display: flex;
  160. }
  161. }
  162. }
  163. .query-editor-box__header {
  164. display: flex;
  165. padding: 4px 0px 4px 8px;
  166. position: relative;
  167. height: 35px;
  168. }
  169. .query-editor-box__ref-id {
  170. font-weight: $font-weight-semi-bold;
  171. color: $blue;
  172. font-size: $font-size-md;
  173. flex-grow: 1;
  174. cursor: pointer;
  175. display: flex;
  176. align-items: center;
  177. i {
  178. padding-right: 5px;
  179. color: $text-muted;
  180. position: relative;
  181. }
  182. }
  183. .query-editor-box__actions {
  184. display: flex;
  185. justify-content: flex-end;
  186. display: none;
  187. }
  188. .query-editor-box__action {
  189. @include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl, $btn-inverse-text-color, $btn-inverse-text-shadow);
  190. border: 1px solid $navbar-button-border;
  191. margin-right: 3px;
  192. }
  193. .query-editor-box__body {
  194. padding: 10px 20px;
  195. }