_explore.scss 6.9 KB

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