table.ts 764 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { css } from '@emotion/css';
  2. import { GrafanaTheme2 } from '@grafana/data';
  3. export const getAlertTableStyles = (theme: GrafanaTheme2) => ({
  4. table: css`
  5. width: 100%;
  6. border-radius: ${theme.shape.borderRadius()};
  7. border: solid 1px ${theme.colors.border.weak};
  8. background-color: ${theme.colors.background.secondary};
  9. th {
  10. padding: ${theme.spacing(1)};
  11. }
  12. td {
  13. padding: 0 ${theme.spacing(1)};
  14. }
  15. tr {
  16. height: 38px;
  17. }
  18. `,
  19. evenRow: css`
  20. background-color: ${theme.colors.background.primary};
  21. `,
  22. colExpand: css`
  23. width: 36px;
  24. `,
  25. actionsCell: css`
  26. text-align: right;
  27. width: 1%;
  28. white-space: nowrap;
  29. & > * + * {
  30. margin-left: ${theme.spacing(0.5)};
  31. }
  32. `,
  33. });