_explore.scss 7.7 KB

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