_query_editor.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .query-keyword {
  2. font-weight: $font-weight-semi-bold;
  3. color: $text-blue !important;
  4. }
  5. .query-segment-operator {
  6. color: $orange !important;
  7. }
  8. .query-placeholder {
  9. color: $gray-2;
  10. }
  11. .tight-form-func {
  12. background: $tight-form-func-bg;
  13. &.show-function-controls {
  14. padding-top: 5px;
  15. min-width: 100px;
  16. text-align: center;
  17. }
  18. }
  19. input[type='text'].tight-form-func-param {
  20. font-size: $font-size-sm;
  21. background: transparent;
  22. border: none;
  23. margin: 0;
  24. padding: 0;
  25. }
  26. .tight-form-func-controls {
  27. text-align: center;
  28. .fa-arrow-left {
  29. float: left;
  30. position: relative;
  31. top: 2px;
  32. }
  33. .fa-arrow-right {
  34. float: right;
  35. position: relative;
  36. top: 2px;
  37. }
  38. .fa-remove {
  39. margin-left: 10px;
  40. }
  41. }
  42. .grafana-metric-options {
  43. margin-top: 25px;
  44. }
  45. .tight-form-func {
  46. background: $tight-form-func-bg;
  47. &.show-function-controls {
  48. padding-top: 5px;
  49. min-width: 100px;
  50. text-align: center;
  51. }
  52. }
  53. .rst-text::before {
  54. content: ' ';
  55. }
  56. .rst-unknown.rst-directive {
  57. font-family: monospace;
  58. margin-bottom: $space-md;
  59. word-wrap: break-word;
  60. }
  61. .rst-interpreted_text {
  62. font-family: monospace;
  63. display: inline;
  64. }
  65. .rst-bullet-list {
  66. padding-left: $space-lg;
  67. margin-bottom: $space-md;
  68. }
  69. .rst-paragraph:last-child {
  70. margin-bottom: 0;
  71. }
  72. .drop-element.drop-popover.drop-function-def .drop-content {
  73. max-width: 416px;
  74. }
  75. .rst-literal-block .rst-text {
  76. display: block;
  77. }
  78. .query-editor-row {
  79. margin-bottom: 2px;
  80. &:hover {
  81. .query-editor-row__actions {
  82. display: flex;
  83. }
  84. }
  85. &--disabled {
  86. .query-keyword {
  87. color: $text-color-weak;
  88. }
  89. }
  90. }
  91. .query-editor-row__action {
  92. margin-left: 3px;
  93. background: transparent;
  94. border: none;
  95. box-shadow: none;
  96. &:hover {
  97. color: $text-color;
  98. }
  99. }
  100. .query-editor-row__body {
  101. margin: 2px 0 10px 40px;
  102. background: $page-bg;
  103. &--collapsed {
  104. display: none;
  105. }
  106. }