_explore.scss 7.1 KB

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