_query_editor.scss 2.7 KB

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