styles.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import styled from '@emotion/styled';
  2. import DateTime from 'sentry/components/dateTime';
  3. import Link from 'sentry/components/links/link';
  4. import ShortId, {StyledAutoSelectText} from 'sentry/components/shortId';
  5. import {IconUser} from 'sentry/icons/iconUser';
  6. import space from 'sentry/styles/space';
  7. // Styled components used to render discover result sets.
  8. export const Container = styled('div')`
  9. ${p => p.theme.overflowEllipsis};
  10. `;
  11. export const VersionContainer = styled('div')`
  12. display: flex;
  13. ${p => p.theme.overflowEllipsis};
  14. `;
  15. export const NumberContainer = styled('div')`
  16. text-align: right;
  17. font-variant-numeric: tabular-nums;
  18. ${p => p.theme.overflowEllipsis};
  19. `;
  20. export const FieldDateTime = styled(DateTime)`
  21. color: ${p => p.theme.gray300};
  22. font-variant-numeric: tabular-nums;
  23. ${p => p.theme.overflowEllipsis};
  24. `;
  25. export const OverflowLink = styled(Link)`
  26. ${p => p.theme.overflowEllipsis};
  27. `;
  28. export const FieldShortId = styled(ShortId)`
  29. justify-content: flex-start;
  30. display: block;
  31. `;
  32. export const OverflowFieldShortId = styled(FieldShortId)`
  33. max-width: 100%;
  34. ${StyledAutoSelectText} {
  35. ${p => p.theme.overflowEllipsis};
  36. }
  37. `;
  38. export const BarContainer = styled('div')`
  39. max-width: 80px;
  40. margin-left: auto;
  41. `;
  42. export const FlexContainer = styled('div')`
  43. display: flex;
  44. align-items: center;
  45. justify-content: flex-end;
  46. width: 100%;
  47. `;
  48. export const UserIcon = styled(IconUser)`
  49. margin-left: ${space(1)};
  50. color: ${p => p.theme.gray400};
  51. `;
  52. export const ActorContainer = styled('div')`
  53. display: flex;
  54. justify-content: center;
  55. :hover {
  56. cursor: default;
  57. }
  58. `;