_query_editor.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. .grafana-metric-options {
  61. margin-top: 25px;
  62. }
  63. .tight-form-func {
  64. background: $tight-form-func-bg;
  65. &.show-function-controls {
  66. padding-top: 5px;
  67. min-width: 100px;
  68. text-align: center;
  69. }
  70. }
  71. input[type="text"].tight-form-func-param {
  72. background: transparent;
  73. border: none;
  74. margin: 0;
  75. padding: 0;
  76. }
  77. .tight-form-func-controls {
  78. display: none;
  79. text-align: center;
  80. .fa-arrow-left {
  81. float: left;
  82. position: relative;
  83. top: 2px;
  84. }
  85. .fa-arrow-right {
  86. float: right;
  87. position: relative;
  88. top: 2px;
  89. }
  90. .fa-remove {
  91. margin-left: 10px;
  92. }
  93. }
  94. .grafana-metric-options {
  95. margin-top: 25px;
  96. }
  97. .tight-form-func {
  98. background: $tight-form-func-bg;
  99. &.show-function-controls {
  100. padding-top: 5px;
  101. min-width: 100px;
  102. text-align: center;
  103. }
  104. }
  105. input[type="text"].tight-form-func-param {
  106. background: transparent;
  107. border: none;
  108. margin: 0;
  109. padding: 0;
  110. }
  111. .tight-form-func-controls {
  112. display: none;
  113. text-align: center;
  114. .fa-arrow-left {
  115. float: left;
  116. position: relative;
  117. top: 2px;
  118. }
  119. .fa-arrow-right {
  120. float: right;
  121. position: relative;
  122. top: 2px;
  123. }
  124. .fa-remove {
  125. margin-left: 10px;
  126. }
  127. }