_query_editor.scss 2.7 KB

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