_query_editor.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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. .tight-form-func {
  29. background: $tight-form-func-bg;
  30. &.show-function-controls {
  31. padding-top: 5px;
  32. min-width: 100px;
  33. text-align: center;
  34. }
  35. }
  36. input[type='text'].tight-form-func-param {
  37. font-size: 0.875rem;
  38. background: transparent;
  39. border: none;
  40. margin: 0;
  41. padding: 0;
  42. }
  43. .tight-form-func-controls {
  44. display: none;
  45. text-align: center;
  46. .fa-arrow-left {
  47. float: left;
  48. position: relative;
  49. top: 2px;
  50. }
  51. .fa-arrow-right {
  52. float: right;
  53. position: relative;
  54. top: 2px;
  55. }
  56. .fa-remove {
  57. margin-left: 10px;
  58. }
  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. .rst-text::before {
  72. content: ' ';
  73. }
  74. .rst-unknown.rst-directive {
  75. font-family: monospace;
  76. margin-bottom: 1rem;
  77. }
  78. .rst-interpreted_text {
  79. font-family: monospace;
  80. display: inline;
  81. }
  82. .rst-bullet-list {
  83. padding-left: 1.5rem;
  84. margin-bottom: 1rem;
  85. }
  86. .rst-paragraph:last-child {
  87. margin-bottom: 0;
  88. }
  89. .drop-element.drop-popover.drop-function-def .drop-content {
  90. max-width: 30rem;
  91. }
  92. .rst-literal-block .rst-text {
  93. display: block;
  94. }
  95. .query-editor-row {
  96. margin-bottom: 2px;
  97. &:hover {
  98. .query-editor-row__actions {
  99. display: flex;
  100. }
  101. }
  102. &--disabled {
  103. .query-keyword {
  104. color: darken($blue, 20%);
  105. }
  106. }
  107. }
  108. .query-editor-row__header {
  109. display: flex;
  110. padding: 4px 0px 4px 8px;
  111. position: relative;
  112. height: 35px;
  113. background: $page-bg;
  114. flex-wrap: nowrap;
  115. align-items: center;
  116. }
  117. .query-editor-row__ref-id {
  118. font-weight: $font-weight-semi-bold;
  119. color: $blue;
  120. font-size: $font-size-md;
  121. cursor: pointer;
  122. display: flex;
  123. align-items: center;
  124. i {
  125. padding-right: 5px;
  126. color: $text-muted;
  127. position: relative;
  128. }
  129. }
  130. .query-editor-row__collapsed-text {
  131. padding: 0 10px;
  132. display: flex;
  133. align-items: center;
  134. flex-grow: 1;
  135. overflow: hidden;
  136. > div {
  137. color: $text-muted;
  138. font-style: italic;
  139. overflow: hidden;
  140. white-space: nowrap;
  141. text-overflow: ellipsis;
  142. font-size: $font-size-sm;
  143. min-width: 0;
  144. }
  145. }
  146. .query-editor-row__actions {
  147. flex-shrink: 0;
  148. display: flex;
  149. justify-content: flex-end;
  150. color: $text-muted;
  151. }
  152. .query-editor-row__action {
  153. margin-left: 3px;
  154. background: transparent;
  155. border: none;
  156. box-shadow: none;
  157. &:hover {
  158. color: $text-color;
  159. }
  160. }
  161. .query-editor-row__body {
  162. margin: 2px 0 10px 40px;
  163. background: $page-bg;
  164. &--collapsed {
  165. display: none;
  166. }
  167. }
  168. .query-editor-row__context-info {
  169. font-style: italic;
  170. font-size: $font-size-sm;
  171. color: $text-muted;
  172. padding-left: 10px;
  173. }