_query_editor.scss 2.8 KB

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