_explore.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. .icon-margin-right {
  2. margin-right: 0.25em;
  3. }
  4. .icon-margin-left {
  5. margin-left: 0.25em;
  6. }
  7. .run-icon {
  8. transform: rotate(90deg);
  9. }
  10. .timepicker {
  11. display: flex;
  12. }
  13. .timepicker-rangestring {
  14. margin-left: 0.5em;
  15. }
  16. .datasource-picker {
  17. .ds-picker {
  18. min-width: 200px;
  19. max-width: 200px;
  20. }
  21. }
  22. .explore-toolbar {
  23. background: inherit;
  24. display: flex;
  25. flex-flow: row wrap;
  26. justify-content: flex-start;
  27. height: auto;
  28. padding: 0 $dashboard-padding;
  29. border-bottom: 1px solid #0000;
  30. transition-duration: 0.35s;
  31. transition-timing-function: ease-in-out;
  32. transition-property: box-shadow, border-bottom;
  33. }
  34. .explore-toolbar-item {
  35. position: relative;
  36. align-self: center;
  37. &:first-child {
  38. padding-left: 34px;
  39. @include media-breakpoint-up(md) {
  40. padding-left: 0;
  41. }
  42. }
  43. }
  44. .explore-toolbar.splitted {
  45. .explore-toolbar-item {
  46. flex: 1 1 100%;
  47. }
  48. .explore-toolbar-content-item:first-child {
  49. padding-left: 0;
  50. margin-right: auto;
  51. }
  52. }
  53. .explore-toolbar-item:last-child {
  54. flex: auto;
  55. }
  56. .explore-toolbar-header {
  57. display: flex;
  58. flex: 1 1 0;
  59. flex-flow: row nowrap;
  60. font-size: 18px;
  61. min-height: 55px;
  62. line-height: 55px;
  63. justify-content: space-between;
  64. align-items: center;
  65. }
  66. .explore-toolbar-header-close {
  67. margin-left: auto;
  68. color: $text-color-weak;
  69. }
  70. .explore-toolbar-content {
  71. display: flex;
  72. flex-flow: row wrap;
  73. align-items: center;
  74. justify-content: space-between;
  75. }
  76. .explore-toolbar-content-item {
  77. padding: 10px 2px;
  78. }
  79. .explore-toolbar-content-item:first-child {
  80. padding-left: $dashboard-padding;
  81. margin-right: auto;
  82. display: flex;
  83. }
  84. @media only screen and (max-width: 1545px) {
  85. .explore-toolbar.splitted {
  86. .timepicker-rangestring {
  87. display: none;
  88. }
  89. }
  90. }
  91. @media only screen and (max-width: 1070px) {
  92. .timepicker {
  93. .timepicker-rangestring {
  94. display: none;
  95. }
  96. }
  97. .explore-toolbar-content {
  98. justify-content: flex-start;
  99. }
  100. .explore-toolbar.splitted {
  101. .explore-toolbar-content-item {
  102. padding: 2px 0;
  103. margin: 0;
  104. }
  105. }
  106. .explore-toolbar-content-item {
  107. padding: 2px 2px;
  108. }
  109. }
  110. @media only screen and (max-width: 702px) {
  111. .explore-toolbar-content-item:first-child {
  112. padding-left: 2px;
  113. margin-right: 0;
  114. }
  115. }
  116. .explore {
  117. display: flex;
  118. flex: 1 1 auto;
  119. flex-direction: column;
  120. }
  121. .explore.explore-live {
  122. flex-direction: column-reverse;
  123. }
  124. .explore + .explore {
  125. border-left: 1px dotted $table-border;
  126. }
  127. .explore-container {
  128. display: flex;
  129. flex: 1 1 auto;
  130. flex-direction: column;
  131. padding: $dashboard-padding;
  132. }
  133. .explore-container.explore-live {
  134. flex-direction: column-reverse;
  135. }
  136. .explore-wrapper {
  137. display: flex;
  138. > .explore-split {
  139. width: 50%;
  140. }
  141. }
  142. .explore-panel {
  143. margin-top: $space-sm;
  144. }
  145. .explore-panel__body {
  146. padding: $panel-padding;
  147. }
  148. .explore-panel__header {
  149. padding: $space-sm $space-md 0 $space-md;
  150. display: flex;
  151. cursor: inherit;
  152. transition: all 0.1s linear;
  153. }
  154. .explore-panel__header-label {
  155. font-weight: 500;
  156. margin-right: $space-sm;
  157. font-size: $font-size-h6;
  158. box-shadow: $text-shadow-faint;
  159. }
  160. .explore-panel__header-buttons {
  161. display: none;
  162. }
  163. .explore-panel--collapsible {
  164. .explore-panel__header {
  165. cursor: pointer;
  166. }
  167. .explore-panel__header-buttons {
  168. margin-right: $space-sm;
  169. font-size: $font-size-lg;
  170. line-height: $font-size-h6;
  171. display: inherit;
  172. }
  173. }
  174. .time-series-disclaimer {
  175. width: 300px;
  176. margin: $space-sm auto;
  177. padding: 10px 0;
  178. border-radius: $border-radius;
  179. text-align: center;
  180. background-color: $panel-bg;
  181. .disclaimer-icon {
  182. color: $yellow;
  183. margin-right: $space-xs;
  184. }
  185. .show-all-time-series {
  186. cursor: pointer;
  187. color: $external-link-color;
  188. }
  189. }
  190. .navbar .elapsed-time {
  191. position: absolute;
  192. left: 0;
  193. right: 0;
  194. top: 48px;
  195. text-align: center;
  196. font-size: 11px;
  197. }
  198. .graph-legend {
  199. flex-wrap: wrap;
  200. }
  201. .explore-panel__loader {
  202. height: 2px;
  203. position: relative;
  204. overflow: hidden;
  205. background: none;
  206. margin: $space-xs;
  207. }
  208. .explore-panel__loader--active:after {
  209. content: ' ';
  210. display: block;
  211. width: 25%;
  212. top: 0;
  213. top: -50%;
  214. height: 250%;
  215. position: absolute;
  216. animation: loader 2s cubic-bezier(0.17, 0.67, 0.83, 0.67) 500ms;
  217. animation-iteration-count: 100;
  218. left: -25%;
  219. background: $blue;
  220. }
  221. @keyframes loader {
  222. from {
  223. left: -25%;
  224. opacity: 0.1;
  225. }
  226. to {
  227. left: 100%;
  228. opacity: 1;
  229. }
  230. }
  231. .query-row {
  232. display: flex;
  233. position: relative;
  234. align-items: flex-start;
  235. & + & {
  236. margin-top: $space-sm;
  237. }
  238. }
  239. .query-row-tools {
  240. white-space: nowrap;
  241. }
  242. .query-row-status {
  243. position: absolute;
  244. top: 0;
  245. right: 105px;
  246. z-index: 1015;
  247. display: flex;
  248. flex-direction: column;
  249. justify-content: center;
  250. height: $input-height;
  251. }
  252. .query-row-field {
  253. margin-right: 3px;
  254. flex-grow: 1;
  255. }
  256. .query-transactions {
  257. display: table;
  258. }
  259. .query-transaction {
  260. display: table-row;
  261. color: $text-color-faint;
  262. line-height: 1.44;
  263. }
  264. .query-transaction--loading {
  265. animation: query-loading-color-change 1s alternate 100;
  266. }
  267. @keyframes query-loading-color-change {
  268. from {
  269. color: $text-color-faint;
  270. }
  271. to {
  272. color: $blue;
  273. }
  274. }
  275. .query-transaction__type,
  276. .query-transaction__duration {
  277. display: table-cell;
  278. font-size: $font-size-xs;
  279. text-align: right;
  280. padding-right: 0.25em;
  281. }
  282. // Prometheus-specifics, to be extracted to datasource soon
  283. .explore {
  284. .prom-query-field-info {
  285. margin: 0.25em 0.5em 0.5em;
  286. display: flex;
  287. details {
  288. margin-left: 1em;
  289. }
  290. }
  291. }
  292. // ReactTable basic overrides (does not include pivot/groups/filters)
  293. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  294. .ReactTable {
  295. border: none;
  296. }
  297. .ReactTable .rt-table {
  298. // Allow some space for the no-data text
  299. min-height: 90px;
  300. }
  301. .ReactTable .rt-thead.-header {
  302. box-shadow: none;
  303. background: $list-item-bg;
  304. border-top: 2px solid $body-bg;
  305. border-bottom: 2px solid $body-bg;
  306. height: 2em;
  307. }
  308. .ReactTable .rt-thead.-header .rt-th {
  309. text-align: left;
  310. color: $blue;
  311. font-weight: 500;
  312. }
  313. .ReactTable .rt-thead .rt-td,
  314. .ReactTable .rt-thead .rt-th {
  315. padding: 0.45em 0 0.45em 1.1em;
  316. border-right: none;
  317. box-shadow: none;
  318. }
  319. .ReactTable .rt-tbody .rt-td {
  320. padding: 0.45em 0 0.45em 1.1em;
  321. border-bottom: 2px solid $body-bg;
  322. border-right: 2px solid $body-bg;
  323. }
  324. .ReactTable .rt-tbody .rt-td:last-child {
  325. border-right: none;
  326. }
  327. .ReactTable .-pagination {
  328. border-top: none;
  329. box-shadow: none;
  330. margin-top: $space-sm;
  331. }
  332. .ReactTable .-pagination .-btn {
  333. color: $blue;
  334. background: $list-item-bg;
  335. }
  336. .ReactTable .-pagination input,
  337. .ReactTable .-pagination select {
  338. color: $input-color;
  339. background-color: $input-bg;
  340. }
  341. .ReactTable .-loading {
  342. background: $input-bg;
  343. }
  344. .ReactTable .-loading.-active {
  345. opacity: 0.8;
  346. }
  347. .ReactTable .-loading > div {
  348. color: $input-color;
  349. }
  350. .ReactTable .rt-tr .rt-td:last-child {
  351. text-align: right;
  352. }
  353. .ReactTable .rt-noData {
  354. top: 60px;
  355. z-index: inherit;
  356. }
  357. // React-component cascade fix: show "loading" even though item can expand
  358. .rc-cascader-menu-item-loading:after {
  359. position: absolute;
  360. right: 12px;
  361. content: 'loading';
  362. color: #767980;
  363. font-style: italic;
  364. }
  365. // TODO Experimental
  366. .cheat-sheet-item {
  367. margin: $space-lg 0;
  368. width: 50%;
  369. }
  370. .cheat-sheet-item__title {
  371. font-size: $font-size-h3;
  372. }
  373. .cheat-sheet-item__expression {
  374. margin: $space-xs 0;
  375. cursor: pointer;
  376. }
  377. .query-type-toggle {
  378. margin-left: 5px;
  379. .toggle-button-group {
  380. padding-top: 2px;
  381. }
  382. .btn.active {
  383. background-color: $input-bg;
  384. background-image: none;
  385. background-clip: padding-box;
  386. border: $input-border;
  387. border-radius: $input-border-radius;
  388. @include box-shadow($input-box-shadow);
  389. color: $input-color;
  390. }
  391. }