_explore.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. .navbar .elapsed-time {
  138. position: absolute;
  139. left: 0;
  140. right: 0;
  141. top: 48px;
  142. text-align: center;
  143. font-size: 11px;
  144. }
  145. .graph-legend {
  146. flex-wrap: wrap;
  147. }
  148. .query-row {
  149. display: flex;
  150. position: relative;
  151. align-items: flex-start;
  152. & + & {
  153. margin-top: $space-sm;
  154. }
  155. }
  156. .query-row-tools {
  157. white-space: nowrap;
  158. }
  159. .query-row-status {
  160. position: relative;
  161. top: 0;
  162. right: 35px;
  163. z-index: 1015;
  164. display: flex;
  165. flex-direction: column;
  166. justify-content: center;
  167. height: $input-height;
  168. width: 0;
  169. }
  170. .query-row-field {
  171. margin-right: 3px;
  172. flex-grow: 1;
  173. }
  174. .query-transactions {
  175. display: table;
  176. }
  177. .query-transaction {
  178. display: table-row;
  179. color: $text-color-faint;
  180. line-height: 1.44;
  181. }
  182. .query-transaction--loading {
  183. animation: query-loading-color-change 1s alternate 100;
  184. }
  185. @keyframes query-loading-color-change {
  186. from {
  187. color: $text-color-faint;
  188. }
  189. to {
  190. color: $blue;
  191. }
  192. }
  193. .query-transaction__type,
  194. .query-transaction__duration {
  195. display: table-cell;
  196. font-size: $font-size-xs;
  197. text-align: right;
  198. padding-right: 0.25em;
  199. }
  200. // Prometheus-specifics, to be extracted to datasource soon
  201. .explore {
  202. .prom-query-field-info {
  203. margin: 0.25em 0.5em 0.5em;
  204. display: flex;
  205. details {
  206. margin-left: 1em;
  207. }
  208. }
  209. }
  210. // ReactTable basic overrides (does not include pivot/groups/filters)
  211. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  212. .ReactTable {
  213. border: none;
  214. }
  215. .ReactTable .rt-table {
  216. // Allow some space for the no-data text
  217. min-height: 90px;
  218. }
  219. .ReactTable .rt-thead.-header {
  220. box-shadow: none;
  221. background: $list-item-bg;
  222. border-top: 2px solid $body-bg;
  223. border-bottom: 2px solid $body-bg;
  224. height: 2em;
  225. }
  226. .ReactTable .rt-thead.-header .rt-th {
  227. text-align: left;
  228. color: $blue;
  229. font-weight: $font-weight-semi-bold;
  230. }
  231. .ReactTable .rt-thead .rt-td,
  232. .ReactTable .rt-thead .rt-th {
  233. padding: 0.45em 0 0.45em 1.1em;
  234. border-right: none;
  235. box-shadow: none;
  236. }
  237. .ReactTable .rt-tbody .rt-td {
  238. padding: 0.45em 0 0.45em 1.1em;
  239. border-bottom: 2px solid $body-bg;
  240. border-right: 2px solid $body-bg;
  241. }
  242. .ReactTable .rt-tbody .rt-td:last-child {
  243. border-right: none;
  244. }
  245. .ReactTable .-pagination {
  246. border-top: none;
  247. box-shadow: none;
  248. margin-top: $space-sm;
  249. }
  250. .ReactTable .-pagination .-btn {
  251. color: $blue;
  252. background: $list-item-bg;
  253. }
  254. .ReactTable .-pagination input,
  255. .ReactTable .-pagination select {
  256. color: $input-color;
  257. background-color: $input-bg;
  258. }
  259. .ReactTable .-loading {
  260. background: $input-bg;
  261. }
  262. .ReactTable .-loading.-active {
  263. opacity: 0.8;
  264. }
  265. .ReactTable .-loading > div {
  266. color: $input-color;
  267. }
  268. .ReactTable .rt-tr .rt-td:last-child {
  269. text-align: right;
  270. }
  271. .ReactTable .rt-noData {
  272. top: 60px;
  273. z-index: inherit;
  274. }
  275. // React-component cascade fix: show "loading" even though item can expand
  276. .rc-cascader-menu-item-loading:after {
  277. position: absolute;
  278. right: 12px;
  279. content: 'loading';
  280. color: #767980;
  281. font-style: italic;
  282. }
  283. // TODO Experimental
  284. .cheat-sheet-item {
  285. margin: $space-lg 0;
  286. width: 50%;
  287. }
  288. .cheat-sheet-item__title {
  289. font-size: $font-size-h3;
  290. }
  291. .cheat-sheet-item__expression {
  292. margin: $space-xs 0;
  293. cursor: pointer;
  294. }
  295. .query-type-toggle {
  296. margin-left: 5px;
  297. .toggle-button-group {
  298. padding-top: 2px;
  299. }
  300. .btn.active {
  301. background-color: $input-bg;
  302. background-image: none;
  303. background-clip: padding-box;
  304. border: $input-border;
  305. border-radius: $input-border-radius;
  306. @include box-shadow($input-box-shadow);
  307. color: $input-color;
  308. }
  309. }