_query_editor.scss 2.3 KB

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