_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. .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: $space-xl;
  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: $space-s;
  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: $space-s;
  183. font-size: $font-size-h6;
  184. box-shadow: $text-shadow-faint;
  185. }
  186. .explore-panel__header-buttons {
  187. margin-right: $space-s;
  188. font-size: $font-size-lg;
  189. line-height: $font-size-h6;
  190. }
  191. .time-series-disclaimer {
  192. width: 300px;
  193. margin: $space-s auto;
  194. padding: 10px 0;
  195. border-radius: $border-radius;
  196. text-align: center;
  197. background-color: $panel-bg;
  198. .disclaimer-icon {
  199. color: $yellow;
  200. margin-right: $space-xs;
  201. }
  202. .show-all-time-series {
  203. cursor: pointer;
  204. color: $external-link-color;
  205. }
  206. }
  207. .navbar .elapsed-time {
  208. position: absolute;
  209. left: 0;
  210. right: 0;
  211. top: 3.5rem;
  212. text-align: center;
  213. font-size: 0.8rem;
  214. }
  215. .graph-legend {
  216. flex-wrap: wrap;
  217. }
  218. .explore-panel__loader {
  219. height: 2px;
  220. position: relative;
  221. overflow: hidden;
  222. background: none;
  223. margin: $space-xs;
  224. }
  225. .explore-panel__loader--active:after {
  226. content: ' ';
  227. display: block;
  228. width: 25%;
  229. top: 0;
  230. top: -50%;
  231. height: 250%;
  232. position: absolute;
  233. animation: loader 2s cubic-bezier(0.17, 0.67, 0.83, 0.67) 500ms;
  234. animation-iteration-count: 100;
  235. left: -25%;
  236. background: $blue;
  237. }
  238. @keyframes loader {
  239. from {
  240. left: -25%;
  241. opacity: 0.1;
  242. }
  243. to {
  244. left: 100%;
  245. opacity: 1;
  246. }
  247. }
  248. .query-row {
  249. display: flex;
  250. position: relative;
  251. align-items: flex-start;
  252. & + & {
  253. margin-top: 0.5rem;
  254. }
  255. }
  256. .query-row-tools {
  257. white-space: nowrap;
  258. }
  259. .query-row-status {
  260. position: absolute;
  261. top: 0;
  262. right: 105px;
  263. z-index: 1015;
  264. display: flex;
  265. flex-direction: column;
  266. justify-content: center;
  267. height: $input-height;
  268. }
  269. .query-row-field {
  270. margin-right: 3px;
  271. flex-grow: 1;
  272. }
  273. .query-transactions {
  274. display: table;
  275. }
  276. .query-transaction {
  277. display: table-row;
  278. color: $text-color-faint;
  279. line-height: 1.44;
  280. }
  281. .query-transaction--loading {
  282. animation: query-loading-color-change 1s alternate 100;
  283. }
  284. @keyframes query-loading-color-change {
  285. from {
  286. color: $text-color-faint;
  287. }
  288. to {
  289. color: $blue;
  290. }
  291. }
  292. .query-transaction__type,
  293. .query-transaction__duration {
  294. display: table-cell;
  295. font-size: $font-size-xs;
  296. text-align: right;
  297. padding-right: 0.25em;
  298. }
  299. // Prometheus-specifics, to be extracted to datasource soon
  300. .explore {
  301. .prom-query-field-info {
  302. margin: 0.25em 0.5em 0.5em;
  303. display: flex;
  304. details {
  305. margin-left: 1em;
  306. }
  307. }
  308. }
  309. // ReactTable basic overrides (does not include pivot/groups/filters)
  310. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  311. .ReactTable {
  312. border: none;
  313. }
  314. .ReactTable .rt-table {
  315. // Allow some space for the no-data text
  316. min-height: 90px;
  317. }
  318. .ReactTable .rt-thead.-header {
  319. box-shadow: none;
  320. background: $list-item-bg;
  321. border-top: 2px solid $body-bg;
  322. border-bottom: 2px solid $body-bg;
  323. height: 2em;
  324. }
  325. .ReactTable .rt-thead.-header .rt-th {
  326. text-align: left;
  327. color: $blue;
  328. font-weight: 500;
  329. }
  330. .ReactTable .rt-thead .rt-td,
  331. .ReactTable .rt-thead .rt-th {
  332. padding: 0.45em 0 0.45em 1.1em;
  333. border-right: none;
  334. box-shadow: none;
  335. }
  336. .ReactTable .rt-tbody .rt-td {
  337. padding: 0.45em 0 0.45em 1.1em;
  338. border-bottom: 2px solid $body-bg;
  339. border-right: 2px solid $body-bg;
  340. }
  341. .ReactTable .rt-tbody .rt-td:last-child {
  342. border-right: none;
  343. }
  344. .ReactTable .-pagination {
  345. border-top: none;
  346. box-shadow: none;
  347. margin-top: $space-s;
  348. }
  349. .ReactTable .-pagination .-btn {
  350. color: $blue;
  351. background: $list-item-bg;
  352. }
  353. .ReactTable .-pagination input,
  354. .ReactTable .-pagination select {
  355. color: $input-color;
  356. background-color: $input-bg;
  357. }
  358. .ReactTable .-loading {
  359. background: $input-bg;
  360. }
  361. .ReactTable .-loading.-active {
  362. opacity: 0.8;
  363. }
  364. .ReactTable .-loading > div {
  365. color: $input-color;
  366. }
  367. .ReactTable .rt-tr .rt-td:last-child {
  368. text-align: right;
  369. }
  370. .ReactTable .rt-noData {
  371. top: 60px;
  372. z-index: inherit;
  373. }
  374. // React-component cascade fix: show "loading" even though item can expand
  375. .rc-cascader-menu-item-loading:after {
  376. position: absolute;
  377. right: 12px;
  378. content: 'loading';
  379. color: #767980;
  380. font-style: italic;
  381. }
  382. // TODO Experimental
  383. .cheat-sheet-item {
  384. margin: $space-l 0;
  385. width: 50%;
  386. }
  387. .cheat-sheet-item__title {
  388. font-size: $font-size-h3;
  389. }
  390. .cheat-sheet-item__expression {
  391. margin: $space-xs 0;
  392. cursor: pointer;
  393. }