_query_editor.scss 2.6 KB

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