_explore.scss 8.0 KB

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