_explore.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. .explore {
  2. width: 100%;
  3. &-container {
  4. padding: 2rem;
  5. }
  6. &-wrapper {
  7. display: flex;
  8. > .explore-split {
  9. width: 50%;
  10. }
  11. }
  12. // Push split button a bit
  13. .explore-first-button {
  14. margin-left: 15px;
  15. }
  16. // Graph panel needs a bit extra padding at top
  17. .panel-container {
  18. padding: $panel-padding;
  19. padding-top: 10px;
  20. }
  21. // Make sure wrap buttons around on small screens
  22. .navbar {
  23. flex-wrap: wrap;
  24. height: auto;
  25. }
  26. .navbar-page-btn {
  27. margin-right: 1rem;
  28. // Explore icon in header
  29. .fa {
  30. font-size: 100%;
  31. opacity: 0.75;
  32. margin-right: 0.5em;
  33. }
  34. }
  35. // Toggle mode
  36. .navbar-button.active {
  37. color: $btn-active-text-color;
  38. background-color: $btn-active-bg;
  39. }
  40. .navbar-button--no-icon {
  41. line-height: 18px;
  42. }
  43. .result-options {
  44. margin-top: 2 * $panel-margin;
  45. }
  46. .time-series-disclaimer {
  47. width: 300px;
  48. margin: $panel-margin auto;
  49. padding: 10px 0;
  50. border-radius: $border-radius;
  51. text-align: center;
  52. background-color: $panel-bg;
  53. .disclaimer-icon {
  54. color: $yellow;
  55. margin-right: $panel-margin/2;
  56. }
  57. .show-all-time-series {
  58. cursor: pointer;
  59. color: $external-link-color;
  60. }
  61. }
  62. .elapsed-time {
  63. position: absolute;
  64. left: 0;
  65. right: 0;
  66. top: 3.5rem;
  67. text-align: center;
  68. font-size: 0.8rem;
  69. }
  70. .graph-legend {
  71. flex-wrap: wrap;
  72. }
  73. .datasource-picker {
  74. min-width: 200px;
  75. }
  76. .timepicker {
  77. display: flex;
  78. &-rangestring {
  79. margin-left: 0.5em;
  80. }
  81. }
  82. .run-icon {
  83. margin-left: 0.5em;
  84. transform: rotate(90deg);
  85. }
  86. .relative {
  87. position: relative;
  88. }
  89. .link {
  90. text-decoration: underline;
  91. }
  92. }
  93. .explore + .explore {
  94. border-left: 1px dotted $table-border;
  95. }
  96. .query-row {
  97. display: flex;
  98. & + & {
  99. margin-top: 0.5rem;
  100. }
  101. }
  102. .query-row-tools {
  103. white-space: nowrap;
  104. }
  105. .query-row-field {
  106. margin-right: 3px;
  107. width: 100%;
  108. }
  109. .explore {
  110. .logs {
  111. .logs-entries {
  112. display: grid;
  113. grid-column-gap: 1rem;
  114. grid-row-gap: 0.1rem;
  115. grid-template-columns: 4px minmax(100px, max-content) 1fr;
  116. font-family: $font-family-monospace;
  117. }
  118. .logs-row-match-highlight {
  119. background-color: lighten($blue, 20%);
  120. }
  121. .logs-row-level {
  122. background-color: transparent;
  123. margin: 6px 0;
  124. border-radius: 2px;
  125. opacity: 0.8;
  126. }
  127. .logs-row-level-crit,
  128. .logs-row-level-error,
  129. .logs-row-level-err {
  130. background-color: $red;
  131. }
  132. .logs-row-level-warn {
  133. background-color: $orange;
  134. }
  135. .logs-row-level-info {
  136. background-color: $green;
  137. }
  138. }
  139. }
  140. // Prometheus-specifics, to be extracted to datasource soon
  141. .explore {
  142. .prom-query-field {
  143. display: flex;
  144. }
  145. .prom-query-field-wrapper {
  146. width: 100%;
  147. }
  148. .prom-query-field-info {
  149. margin: 0.25em 0.5em 0.5em;
  150. }
  151. }
  152. // ReactTable basic overrides (does not include pivot/groups/filters)
  153. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  154. .ReactTable {
  155. border: none;
  156. // Allow some space for the no-data text
  157. min-height: 120px;
  158. }
  159. .ReactTable .rt-thead.-header {
  160. box-shadow: none;
  161. background: $list-item-bg;
  162. border-top: 2px solid $body-bg;
  163. border-bottom: 2px solid $body-bg;
  164. height: 2em;
  165. }
  166. .ReactTable .rt-thead.-header .rt-th {
  167. text-align: left;
  168. color: $blue;
  169. font-weight: 500;
  170. }
  171. .ReactTable .rt-thead .rt-td,
  172. .ReactTable .rt-thead .rt-th {
  173. padding: 0.45em 0 0.45em 1.1em;
  174. border-right: none;
  175. box-shadow: none;
  176. }
  177. .ReactTable .rt-tbody .rt-td {
  178. padding: 0.45em 0 0.45em 1.1em;
  179. border-bottom: 2px solid $body-bg;
  180. border-right: 2px solid $body-bg;
  181. }
  182. .ReactTable .rt-tbody .rt-td:last-child {
  183. border-right: none;
  184. }
  185. .ReactTable .-pagination .-btn {
  186. color: $blue;
  187. background: $list-item-bg;
  188. }
  189. .ReactTable .-pagination input,
  190. .ReactTable .-pagination select {
  191. color: $input-color;
  192. background-color: $input-bg;
  193. }
  194. .ReactTable .-loading {
  195. background: $input-bg;
  196. }
  197. .ReactTable .-loading.-active {
  198. opacity: 0.8;
  199. }
  200. .ReactTable .-loading > div {
  201. color: $input-color;
  202. }
  203. .ReactTable .rt-tr .rt-td:last-child {
  204. text-align: right;
  205. }