Version.styled.ts 737 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import styled, { css } from 'styled-components';
  2. export const Wrapper = styled.div`
  3. display: flex;
  4. align-items: baseline;
  5. `;
  6. const textStyle = css`
  7. font-family: Inter, sans-serif;
  8. font-style: normal;
  9. font-weight: normal;
  10. font-size: 14px;
  11. line-height: 20px;
  12. `;
  13. export const CurrentVersion = styled.span(
  14. ({ theme }) => css`
  15. ${textStyle};
  16. color: ${theme.version.currentVersion.color};
  17. margin-left: 0.25rem;
  18. `
  19. );
  20. export const OutdatedWarning = styled.span`
  21. ${textStyle}
  22. `;
  23. export const CurrentCommitLink = styled.a(
  24. ({ theme }) => css`
  25. ${textStyle};
  26. color: ${theme.version.commitLink.color};
  27. margin-left: 0.25rem;
  28. &:hover {
  29. color: ${theme.version.commitLink.color};
  30. }
  31. `
  32. );