styles.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { css } from '@emotion/css';
  2. import { GrafanaTheme } from '@grafana/data';
  3. export function getModalStyles(theme: GrafanaTheme) {
  4. return {
  5. myTable: css`
  6. max-height: 204px;
  7. overflow-y: auto;
  8. margin-top: 11px;
  9. margin-bottom: 28px;
  10. border-radius: ${theme.border.radius.sm};
  11. border: 1px solid ${theme.colors.bg3};
  12. background: ${theme.colors.bg1};
  13. color: ${theme.colors.textSemiWeak};
  14. font-size: ${theme.typography.size.md};
  15. width: 100%;
  16. thead {
  17. color: #538ade;
  18. font-size: ${theme.typography.size.sm};
  19. }
  20. th,
  21. td {
  22. padding: 6px 13px;
  23. height: ${theme.spacing.xl};
  24. }
  25. tbody > tr:nth-child(odd) {
  26. background: ${theme.colors.bg2};
  27. }
  28. `,
  29. noteTextbox: css`
  30. margin-bottom: ${theme.spacing.xl};
  31. `,
  32. textInfo: css`
  33. color: ${theme.colors.textSemiWeak};
  34. font-size: ${theme.typography.size.sm};
  35. `,
  36. dashboardSearch: css`
  37. margin-top: ${theme.spacing.md};
  38. `,
  39. modal: css`
  40. width: 500px;
  41. `,
  42. modalText: css`
  43. font-size: ${theme.typography.heading.h4};
  44. color: ${theme.colors.link};
  45. margin-bottom: calc(${theme.spacing.d} * 2);
  46. padding-top: ${theme.spacing.d};
  47. `,
  48. };
  49. }