_explore.scss 7.1 KB

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