_explore.scss 7.7 KB

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