_explore.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. .icon-margin-right {
  2. margin-right: 0.25em;
  3. }
  4. .icon-margin-left {
  5. margin-left: 0.25em;
  6. }
  7. .datasource-picker {
  8. .ds-picker {
  9. min-width: 200px;
  10. max-width: 200px;
  11. .gf-form-select-box__img-value {
  12. max-width: 150px;
  13. overflow: hidden;
  14. }
  15. }
  16. }
  17. .explore-toolbar {
  18. background: inherit;
  19. display: flex;
  20. flex-flow: row wrap;
  21. justify-content: flex-start;
  22. height: auto;
  23. padding: 0 $dashboard-padding;
  24. border-bottom: 1px solid #0000;
  25. transition-duration: 0.35s;
  26. transition-timing-function: ease-in-out;
  27. transition-property: box-shadow, border-bottom;
  28. }
  29. .explore-toolbar-item {
  30. position: relative;
  31. align-self: center;
  32. &:first-child {
  33. padding-left: 34px;
  34. @include media-breakpoint-up(md) {
  35. padding-left: 0;
  36. }
  37. }
  38. }
  39. .explore-toolbar.splitted {
  40. .explore-toolbar-item {
  41. flex: 1 1 100%;
  42. }
  43. .explore-toolbar-content-item:first-child {
  44. padding-left: 0;
  45. margin-right: auto;
  46. }
  47. }
  48. .explore-toolbar-item:last-child {
  49. flex: auto;
  50. }
  51. .explore-toolbar-header {
  52. display: flex;
  53. flex: 1 1 0;
  54. flex-flow: row nowrap;
  55. font-size: 18px;
  56. min-height: $navbarHeight;
  57. line-height: $navbarHeight;
  58. justify-content: space-between;
  59. align-items: center;
  60. }
  61. .explore-toolbar-header-close {
  62. margin-left: auto;
  63. color: $text-color-weak;
  64. }
  65. .explore-toolbar-content {
  66. display: flex;
  67. flex-flow: row wrap;
  68. align-items: center;
  69. justify-content: flex-end;
  70. }
  71. .explore-toolbar-content-item {
  72. display: flex;
  73. padding: 2px 2px;
  74. &:first-child {
  75. padding-left: $dashboard-padding;
  76. margin-right: auto;
  77. }
  78. }
  79. @media only screen and (max-width: 1545px) {
  80. .explore-toolbar.splitted {
  81. .timepicker-rangestring {
  82. display: none;
  83. }
  84. }
  85. }
  86. @media only screen and (max-width: 1070px) {
  87. .timepicker {
  88. .timepicker-rangestring {
  89. display: none;
  90. }
  91. }
  92. .explore-toolbar-content {
  93. justify-content: flex-start;
  94. }
  95. .explore-toolbar.splitted {
  96. .explore-toolbar-content-item {
  97. padding: 2px 0;
  98. margin: 0;
  99. }
  100. }
  101. }
  102. @media only screen and (max-width: 702px) {
  103. .explore-toolbar-content-item:first-child {
  104. padding-left: 2px;
  105. margin-right: 0;
  106. }
  107. }
  108. .explore {
  109. display: flex;
  110. flex: 1 1 auto;
  111. flex-direction: column;
  112. }
  113. .explore.explore-live {
  114. flex-direction: column-reverse;
  115. }
  116. .explore + .explore {
  117. border-left: 1px dotted $table-border;
  118. }
  119. .explore-container {
  120. display: flex;
  121. flex: 1 1 auto;
  122. flex-direction: column;
  123. padding: $dashboard-padding;
  124. }
  125. .explore-container.explore-live {
  126. flex-direction: column-reverse;
  127. }
  128. .explore-wrapper {
  129. display: flex;
  130. > .explore-split {
  131. width: 50%;
  132. }
  133. }
  134. .navbar .elapsed-time {
  135. position: absolute;
  136. left: 0;
  137. right: 0;
  138. top: 48px;
  139. text-align: center;
  140. font-size: 11px;
  141. }
  142. .graph-legend {
  143. flex-wrap: wrap;
  144. }
  145. .query-row {
  146. display: flex;
  147. position: relative;
  148. align-items: flex-start;
  149. & + & {
  150. margin-top: $space-sm;
  151. }
  152. }
  153. .query-row-tools {
  154. white-space: nowrap;
  155. }
  156. .query-row-status {
  157. position: relative;
  158. top: 0;
  159. right: 35px;
  160. z-index: 1015;
  161. display: flex;
  162. flex-direction: column;
  163. justify-content: center;
  164. height: $input-height;
  165. width: 0;
  166. }
  167. .query-row-field {
  168. margin-right: 3px;
  169. flex-grow: 1;
  170. }
  171. .query-transactions {
  172. display: table;
  173. }
  174. .query-transaction {
  175. display: table-row;
  176. color: $text-color-weak;
  177. line-height: 1.44;
  178. }
  179. .query-transaction--loading {
  180. animation: query-loading-color-change 1s alternate 100;
  181. }
  182. @keyframes query-loading-color-change {
  183. from {
  184. color: $text-color-faint;
  185. }
  186. to {
  187. color: $blue;
  188. }
  189. }
  190. .query-transaction__type,
  191. .query-transaction__duration {
  192. display: table-cell;
  193. font-size: $font-size-xs;
  194. text-align: right;
  195. padding-right: 0.25em;
  196. }
  197. // Prometheus-specifics, to be extracted to datasource soon
  198. .explore {
  199. .prom-query-field-info {
  200. margin: 0.25em 0.5em 0.5em;
  201. display: flex;
  202. details {
  203. margin-left: 1em;
  204. }
  205. }
  206. }
  207. // ReactTable basic overrides (does not include pivot/groups/filters)
  208. // When integrating ReactTable as new panel plugin, move to _panel_table.scss
  209. .ReactTable {
  210. border: none;
  211. }
  212. .ReactTable .rt-table {
  213. // Allow some space for the no-data text
  214. min-height: 90px;
  215. }
  216. .ReactTable .rt-thead.-header {
  217. box-shadow: none;
  218. background: $list-item-bg;
  219. border-top: 2px solid $body-bg;
  220. border-bottom: 2px solid $body-bg;
  221. height: 2em;
  222. }
  223. .ReactTable .rt-thead.-header .rt-th {
  224. text-align: left;
  225. color: $blue;
  226. font-weight: $font-weight-semi-bold;
  227. }
  228. .ReactTable .rt-thead .rt-td,
  229. .ReactTable .rt-thead .rt-th {
  230. padding: 0.45em 0 0.45em 1.1em;
  231. border-right: none;
  232. box-shadow: none;
  233. }
  234. .ReactTable .rt-tbody .rt-td {
  235. padding: 0.45em 0 0.45em 1.1em;
  236. border-bottom: 2px solid $body-bg;
  237. border-right: 2px solid $body-bg;
  238. }
  239. .ReactTable .rt-tbody .rt-td:last-child {
  240. border-right: none;
  241. }
  242. .ReactTable .-pagination {
  243. border-top: none;
  244. box-shadow: none;
  245. margin-top: $space-sm;
  246. }
  247. .ReactTable .-pagination .-btn {
  248. color: $blue;
  249. background: $list-item-bg;
  250. }
  251. .ReactTable .-pagination input,
  252. .ReactTable .-pagination select {
  253. color: $input-color;
  254. background-color: $input-bg;
  255. }
  256. .ReactTable .-loading {
  257. background: $input-bg;
  258. }
  259. .ReactTable .-loading.-active {
  260. opacity: 0.8;
  261. }
  262. .ReactTable .-loading > div {
  263. color: $input-color;
  264. }
  265. .ReactTable .rt-tr .rt-td:last-child {
  266. text-align: right;
  267. }
  268. .ReactTable .rt-noData {
  269. top: 60px;
  270. z-index: inherit;
  271. }
  272. // React-component cascade fix: show "loading" when loading children
  273. .rc-cascader-menu-item-loading:after {
  274. position: absolute;
  275. right: 12px;
  276. content: 'loading';
  277. color: #767980;
  278. font-style: italic;
  279. }
  280. // React-component cascade fix: vertical alignment issue with Safari
  281. .rc-cascader-menu {
  282. vertical-align: top;
  283. }
  284. // TODO Experimental
  285. .cheat-sheet-item {
  286. margin: $space-lg 0;
  287. width: 50%;
  288. }
  289. .cheat-sheet-item__title {
  290. font-size: $font-size-h3;
  291. }
  292. .cheat-sheet-item__example {
  293. margin: $space-xs 0;
  294. cursor: pointer;
  295. }
  296. .query-type-toggle {
  297. margin-left: 5px;
  298. .btn.active {
  299. background-color: $input-bg;
  300. background-image: none;
  301. background-clip: padding-box;
  302. border: $input-border;
  303. border-radius: $input-border-radius;
  304. @include box-shadow($input-box-shadow);
  305. color: $input-color;
  306. }
  307. }