_query_editor.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .query-keyword {
  2. font-weight: $font-weight-semi-bold;
  3. color: $query-blue;
  4. }
  5. .gf-form-disabled {
  6. .query-keyword {
  7. color: darken($query-blue, 20%);
  8. }
  9. }
  10. .query-segment-operator {
  11. color: $orange;
  12. }
  13. .gf-form-query {
  14. display: flex;
  15. flex-direction: row;
  16. flex-wrap: nowrap;
  17. align-content: flex-start;
  18. align-items: flex-start;
  19. .gf-form,
  20. .gf-form-filler {
  21. margin-bottom: 2px;
  22. }
  23. .gf-form-switch,
  24. .gf-form-switch label,
  25. .gf-form-input,
  26. .gf-form-select-wrapper,
  27. .gf-form-filler,
  28. .gf-form-label {
  29. margin-right: 2px;
  30. }
  31. .gf-form + .gf-form {
  32. margin-right: 0;
  33. }
  34. }
  35. .gf-form-query-content {
  36. flex-grow: 2;
  37. &--collapsed {
  38. overflow: hidden;
  39. .gf-form-label {
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. width: 100%;
  43. white-space: nowrap;
  44. }
  45. }
  46. }
  47. .gf-form-query-letter-cell {
  48. .gf-form-query-letter-cell-carret {
  49. display: inline-block;
  50. width: 0.7rem;
  51. position: relative;
  52. left: -2px;
  53. }
  54. .gf-form-query-letter-cell-letter {
  55. font-weight: bold;
  56. color: $query-blue;
  57. }
  58. .gf-form-query-letter-cell-ds {
  59. color: $text-color-weak;
  60. }
  61. }
  62. .gf-query-ds-label {
  63. text-align: center;
  64. width: 44px;
  65. }
  66. .grafana-metric-options {
  67. margin-top: 25px;
  68. }
  69. .tight-form-func {
  70. background: $tight-form-func-bg;
  71. &.show-function-controls {
  72. padding-top: 5px;
  73. min-width: 100px;
  74. text-align: center;
  75. }
  76. }
  77. input[type="text"].tight-form-func-param {
  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. input[type="text"].tight-form-func-param {
  112. font-size: 0.875rem;
  113. background: transparent;
  114. border: none;
  115. margin: 0;
  116. padding: 0;
  117. }
  118. .tight-form-func-controls {
  119. display: none;
  120. text-align: center;
  121. .fa-arrow-left {
  122. float: left;
  123. position: relative;
  124. top: 2px;
  125. }
  126. .fa-arrow-right {
  127. float: right;
  128. position: relative;
  129. top: 2px;
  130. }
  131. .fa-remove {
  132. margin-left: 10px;
  133. }
  134. }
  135. .query-troubleshooter {
  136. font-size: $font-size-sm;
  137. margin: $gf-form-margin;
  138. border: 1px solid $btn-secondary-bg;
  139. min-height: 100px;
  140. border-radius: 3px;
  141. }
  142. .query-troubleshooter__header {
  143. float: right;
  144. font-size: $font-size-sm;
  145. text-align: right;
  146. padding: $input-padding-y $input-padding-x;
  147. a {
  148. margin-left: $spacer;
  149. }
  150. }
  151. .query-troubleshooter__body {
  152. padding: $spacer 0;
  153. }