_explore.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. .navbar .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. .explore-graph__loader {
  74. height: 2px;
  75. position: relative;
  76. overflow: hidden;
  77. background: $text-color-faint;
  78. margin: $panel-margin / 2;
  79. }
  80. .explore-graph__loader:after {
  81. content: ' ';
  82. display: block;
  83. width: 25%;
  84. top: 0;
  85. top: -50%;
  86. height: 250%;
  87. position: absolute;
  88. animation: loader 2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  89. animation-iteration-count: 100;
  90. z-index: 2;
  91. background: $blue;
  92. }
  93. @keyframes loader {
  94. from {
  95. left: -25%;
  96. }
  97. to {
  98. left: 100%;
  99. }
  100. }
  101. .datasource-picker {
  102. min-width: 200px;
  103. }
  104. .timepicker {
  105. display: flex;
  106. &-rangestring {
  107. margin-left: 0.5em;
  108. }
  109. }
  110. .run-icon {
  111. margin-left: 0.5em;
  112. transform: rotate(90deg);
  113. }
  114. .relative {
  115. position: relative;
  116. }
  117. .link {
  118. text-decoration: underline;
  119. }
  120. }
  121. .explore + .explore {
  122. border-left: 1px dotted $table-border;
  123. }
  124. .query-row {
  125. display: flex;
  126. position: relative;
  127. & + & {
  128. margin-top: 0.5rem;
  129. }
  130. }
  131. .query-row-tools {
  132. white-space: nowrap;
  133. }
  134. .query-row-status {
  135. position: absolute;
  136. top: 0;
  137. right: 90px;
  138. z-index: 1024;
  139. display: flex;
  140. flex-direction: column;
  141. justify-content: center;
  142. height: 34px;
  143. }
  144. .query-row-field {
  145. margin-right: 3px;
  146. width: 100%;
  147. }
  148. .query-transactions {
  149. display: table;
  150. }
  151. .query-transaction {
  152. display: table-row;
  153. color: $text-color-faint;
  154. line-height: 1.44;
  155. }
  156. .query-transaction--loading {
  157. animation: query-loading-color-change 1s alternate 100;
  158. }
  159. @keyframes query-loading-color-change {
  160. from {
  161. color: $text-color-faint;
  162. }
  163. to {
  164. color: $blue;
  165. }
  166. }
  167. .query-transaction__type,
  168. .query-transaction__duration {
  169. display: table-cell;
  170. font-size: $font-size-xs;
  171. text-align: right;
  172. padding-right: 0.25em;
  173. }
  174. .explore {
  175. .logs {
  176. .logs-entries {
  177. display: grid;
  178. grid-column-gap: 1rem;
  179. grid-row-gap: 0.1rem;
  180. grid-template-columns: 4px minmax(100px, max-content) 1fr;
  181. font-family: $font-family-monospace;
  182. }
  183. .logs-row-match-highlight {
  184. background-color: lighten($blue, 20%);
  185. }
  186. .logs-row-level {
  187. background-color: transparent;
  188. margin: 6px 0;
  189. border-radius: 2px;
  190. opacity: 0.8;
  191. }
  192. .logs-row-level-crit,
  193. .logs-row-level-error,
  194. .logs-row-level-err {
  195. background-color: $red;
  196. }
  197. .logs-row-level-warn {
  198. background-color: $orange;
  199. }
  200. .logs-row-level-info {
  201. background-color: $green;
  202. }
  203. }
  204. }
  205. // Prometheus-specifics, to be extracted to datasource soon
  206. .explore {
  207. .prom-query-field {
  208. display: flex;
  209. }
  210. .prom-query-field-wrapper {
  211. width: 100%;
  212. }
  213. .prom-query-field-info {
  214. margin: 0.25em 0.5em 0.5em;
  215. }
  216. }
  217. // ReactTable basic overrides (does not include pivot/groups/filters)
  218. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  219. .ReactTable {
  220. border: none;
  221. // Allow some space for the no-data text
  222. min-height: 120px;
  223. }
  224. .ReactTable .rt-thead.-header {
  225. box-shadow: none;
  226. background: $list-item-bg;
  227. border-top: 2px solid $body-bg;
  228. border-bottom: 2px solid $body-bg;
  229. height: 2em;
  230. }
  231. .ReactTable .rt-thead.-header .rt-th {
  232. text-align: left;
  233. color: $blue;
  234. font-weight: 500;
  235. }
  236. .ReactTable .rt-thead .rt-td,
  237. .ReactTable .rt-thead .rt-th {
  238. padding: 0.45em 0 0.45em 1.1em;
  239. border-right: none;
  240. box-shadow: none;
  241. }
  242. .ReactTable .rt-tbody .rt-td {
  243. padding: 0.45em 0 0.45em 1.1em;
  244. border-bottom: 2px solid $body-bg;
  245. border-right: 2px solid $body-bg;
  246. }
  247. .ReactTable .rt-tbody .rt-td:last-child {
  248. border-right: none;
  249. }
  250. .ReactTable .-pagination .-btn {
  251. color: $blue;
  252. background: $list-item-bg;
  253. }
  254. .ReactTable .-pagination input,
  255. .ReactTable .-pagination select {
  256. color: $input-color;
  257. background-color: $input-bg;
  258. }
  259. .ReactTable .-loading {
  260. background: $input-bg;
  261. }
  262. .ReactTable .-loading.-active {
  263. opacity: 0.8;
  264. }
  265. .ReactTable .-loading > div {
  266. color: $input-color;
  267. }
  268. .ReactTable .rt-tr .rt-td:last-child {
  269. text-align: right;
  270. }