_query_editor.scss 3.1 KB

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