_explore.scss 7.1 KB

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