_explore.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .explore-active-button {
  2. box-shadow: $btn-active-box-shadow;
  3. border: 1px solid $orange-dark !important;
  4. color: $orange-dark !important;
  5. }
  6. // TODO: check if this is used
  7. .explore {
  8. display: flex;
  9. flex: 1 1 auto;
  10. flex-direction: column;
  11. }
  12. .explore + .explore {
  13. border-left: 1px dotted $table-border;
  14. }
  15. .explore-wrapper {
  16. display: flex;
  17. height: 100%;
  18. > .explore-split {
  19. width: 50%;
  20. }
  21. }
  22. // TODO: this is used in Loki & Prometheus, move it
  23. .explore-input-margin {
  24. margin-right: 4px;
  25. }
  26. // TODO: move to public/app/features/explore/Time.tsx
  27. .navbar .elapsed-time {
  28. position: absolute;
  29. left: 0;
  30. right: 0;
  31. top: 48px;
  32. text-align: center;
  33. font-size: 11px;
  34. }
  35. .graph-legend {
  36. flex-wrap: wrap;
  37. }
  38. // TODO: move to Loki and Prometheus
  39. .query-row-break {
  40. flex-basis: 100%;
  41. }
  42. // TODO: Prometheus-specifics, to be extracted to datasource soon
  43. .explore {
  44. .prom-query-field-info {
  45. margin: 0.25em 0.5em 0.5em;
  46. display: flex;
  47. details {
  48. margin-left: 1em;
  49. }
  50. }
  51. }
  52. // ReactTable basic overrides (does not include pivot/groups/filters)
  53. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  54. .ReactTable {
  55. border: none;
  56. }
  57. .ReactTable .rt-table {
  58. // Allow some space for the no-data text
  59. min-height: 90px;
  60. }
  61. .ReactTable .rt-thead.-header {
  62. box-shadow: none;
  63. background: $list-item-bg;
  64. border-top: 2px solid $body-bg;
  65. border-bottom: 2px solid $body-bg;
  66. height: 2em;
  67. }
  68. .ReactTable .rt-thead.-header .rt-th {
  69. text-align: left;
  70. color: $blue;
  71. font-weight: $font-weight-semi-bold;
  72. }
  73. .ReactTable .rt-thead .rt-td,
  74. .ReactTable .rt-thead .rt-th {
  75. padding: 0.45em 0 0.45em 1.1em;
  76. border-right: none;
  77. box-shadow: none;
  78. }
  79. .ReactTable .rt-tbody .rt-td {
  80. padding: 0.45em 0 0.45em 1.1em;
  81. border-bottom: 2px solid $body-bg;
  82. border-right: 2px solid $body-bg;
  83. }
  84. .ReactTable .rt-tbody .rt-td:last-child {
  85. border-right: none;
  86. }
  87. .ReactTable .-pagination {
  88. border-top: none;
  89. box-shadow: none;
  90. margin-top: $space-sm;
  91. }
  92. .ReactTable .-pagination .-btn {
  93. color: $blue;
  94. background: $list-item-bg;
  95. }
  96. .ReactTable .-pagination input,
  97. .ReactTable .-pagination select {
  98. color: $input-color;
  99. background-color: $input-bg;
  100. }
  101. .ReactTable .-loading {
  102. background: $input-bg;
  103. }
  104. .ReactTable .-loading.-active {
  105. opacity: 0.8;
  106. }
  107. .ReactTable .-loading > div {
  108. color: $input-color;
  109. }
  110. .ReactTable .rt-tr .rt-td:last-child {
  111. text-align: right;
  112. }
  113. .ReactTable .rt-noData {
  114. top: 60px;
  115. z-index: inherit;
  116. }
  117. // React-component cascade fix: show "loading" when loading children
  118. .rc-cascader-menu-item-loading:after {
  119. position: absolute;
  120. right: 12px;
  121. content: 'loading';
  122. color: #767980;
  123. font-style: italic;
  124. }
  125. // React-component cascade fix: vertical alignment issue with Safari
  126. .rc-cascader-menu {
  127. vertical-align: top;
  128. // To fix cascader button width issue in windows + firefox
  129. scrollbar-width: thin;
  130. }
  131. // TODO Experimental
  132. .cheat-sheet-item {
  133. margin: $space-lg 0;
  134. }
  135. .cheat-sheet-item__title {
  136. font-size: $font-size-h3;
  137. }
  138. .cheat-sheet-item__example {
  139. margin: $space-xs 0;
  140. cursor: pointer;
  141. }
  142. .query-type-toggle {
  143. margin-left: 5px;
  144. .btn.active {
  145. background-color: $input-bg;
  146. background-image: none;
  147. background-clip: padding-box;
  148. border: $input-border;
  149. border-radius: $input-border-radius;
  150. @include box-shadow($input-box-shadow);
  151. color: $input-color;
  152. }
  153. }