gridStyles.ts 585 B

123456789101112131415161718192021222324
  1. import { css } from '@emotion/css';
  2. import { GrafanaTheme2 } from '@grafana/data';
  3. export const getGridStyles = (theme: GrafanaTheme2) => {
  4. return {
  5. container: css`
  6. display: grid;
  7. font-style: ${theme.typography.fontSize};
  8. grid-template-columns: ${theme.spacing(15.5)} auto;
  9. ${theme.breakpoints.down('md')} {
  10. grid-template-columns: 100%;
  11. }
  12. `,
  13. titleCell: css`
  14. color: ${theme.colors.text.primary};
  15. `,
  16. valueCell: css`
  17. color: ${theme.colors.text.secondary};
  18. margin-bottom: ${theme.spacing(1)};
  19. `,
  20. };
  21. };