styles.tsx 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import styled from '@emotion/styled';
  2. import DateTime from 'sentry/components/dateTime';
  3. import Link from 'sentry/components/links/link';
  4. import ShortId 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. `;
  14. export const NumberContainer = styled('div')`
  15. text-align: right;
  16. font-variant-numeric: tabular-nums;
  17. ${p => p.theme.overflowEllipsis};
  18. `;
  19. export const FieldDateTime = styled(DateTime)`
  20. color: ${p => p.theme.gray300};
  21. font-variant-numeric: tabular-nums;
  22. ${p => p.theme.overflowEllipsis};
  23. `;
  24. export const OverflowLink = styled(Link)`
  25. ${p => p.theme.overflowEllipsis};
  26. `;
  27. export const FieldShortId = styled(ShortId)`
  28. justify-content: flex-start;
  29. display: block;
  30. `;
  31. export const BarContainer = styled('div')`
  32. max-width: 80px;
  33. margin-left: auto;
  34. `;
  35. export const FlexContainer = styled('div')`
  36. display: flex;
  37. align-items: center;
  38. justify-content: flex-end;
  39. width: 100%;
  40. `;
  41. export const UserIcon = styled(IconUser)`
  42. margin-left: ${space(1)};
  43. color: ${p => p.theme.gray400};
  44. `;
  45. export const ActorContainer = styled('div')`
  46. display: flex;
  47. justify-content: center;
  48. :hover {
  49. cursor: default;
  50. }
  51. `;