_query_editor.scss 4.1 KB

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