styles.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import { css } from '@emotion/css';
  2. import { stylesFactory } from '@grafana/ui';
  3. import { config } from 'app/core/config';
  4. export const getPanelInspectorStyles = stylesFactory(() => {
  5. return {
  6. wrap: css`
  7. display: flex;
  8. flex-direction: column;
  9. height: 100%;
  10. width: 100%;
  11. flex: 1 1 0;
  12. `,
  13. toolbar: css`
  14. display: flex;
  15. width: 100%;
  16. flex-grow: 0;
  17. align-items: center;
  18. justify-content: flex-end;
  19. margin-bottom: ${config.theme.spacing.sm};
  20. `,
  21. toolbarItem: css`
  22. margin-left: ${config.theme.spacing.md};
  23. `,
  24. content: css`
  25. flex-grow: 1;
  26. height: 100%;
  27. overflow: scroll;
  28. `,
  29. editor: css`
  30. font-family: monospace;
  31. height: 100%;
  32. flex-grow: 1;
  33. `,
  34. viewer: css`
  35. overflow: scroll;
  36. `,
  37. dataFrameSelect: css`
  38. flex-grow: 2;
  39. `,
  40. leftActions: css`
  41. display: flex;
  42. flex-grow: 1;
  43. max-width: 85%;
  44. @media (max-width: 1345px) {
  45. max-width: 75%;
  46. }
  47. `,
  48. options: css`
  49. padding-top: ${config.theme.spacing.sm};
  50. `,
  51. dataDisplayOptions: css`
  52. flex-grow: 1;
  53. min-width: 300px;
  54. margin-right: ${config.theme.spacing.sm};
  55. `,
  56. selects: css`
  57. display: flex;
  58. > * {
  59. margin-right: ${config.theme.spacing.sm};
  60. }
  61. `,
  62. };
  63. });