_explore.scss 7.6 KB

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