styles.tsx 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 {IconPlay} from 'sentry/icons';
  6. import {IconUser} from 'sentry/icons/iconUser';
  7. import space from 'sentry/styles/space';
  8. // Styled components used to render discover result sets.
  9. export const Container = styled('div')`
  10. ${p => p.theme.overflowEllipsis};
  11. `;
  12. export const VersionContainer = styled('div')`
  13. display: flex;
  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 BarContainer = styled('div')`
  33. max-width: 80px;
  34. margin-left: auto;
  35. `;
  36. export const FlexContainer = styled('div')`
  37. display: flex;
  38. align-items: center;
  39. justify-content: flex-end;
  40. width: 100%;
  41. `;
  42. export const UserIcon = styled(IconUser)`
  43. margin-left: ${space(1)};
  44. color: ${p => p.theme.gray400};
  45. `;
  46. export const ActorContainer = styled('div')`
  47. display: flex;
  48. justify-content: center;
  49. :hover {
  50. cursor: default;
  51. }
  52. `;
  53. export const StyledIconPlay = styled(IconPlay)`
  54. position: relative;
  55. top: -1px;
  56. margin-right: ${space(0.5)};
  57. `;