ClusterMenuItem.styled.ts 816 B

1234567891011121314151617181920212223242526272829
  1. import styled from 'styled-components';
  2. import { MenuItemProps } from './ClusterMenuItem';
  3. const StyledMenuItem = styled.li<MenuItemProps>`
  4. a {
  5. cursor: pointer;
  6. text-decoration: none;
  7. margin: 0px 0px;
  8. font-family: 'Inter', sans-serif;
  9. font-style: normal;
  10. font-weight: normal;
  11. font-size: 14px;
  12. line-height: 20px;
  13. background-color: ${(props) =>
  14. props.theme.liStyles[props.liType].backgroundColor.normal};
  15. color: ${(props) => props.theme.liStyles[props.liType].color.normal};
  16. &.is-active {
  17. background-color: ${(props) =>
  18. props.theme.liStyles[props.liType].backgroundColor.active};
  19. color: ${(props) => props.theme.liStyles[props.liType].color.active};
  20. }
  21. }
  22. `;
  23. StyledMenuItem.displayName = 'StyledMenuItem';
  24. export default StyledMenuItem;