clients.styles.ts 872 B

123456789101112131415161718192021222324252627282930
  1. import { rem } from 'polished';
  2. import { CSSProperties } from 'react';
  3. import styled from 'styled-components';
  4. import { ActiveHighlightRow, ActiveHighlightRowProps, FlexColumn } from '../styled/layout';
  5. import { colors } from '../styled/variables';
  6. export const Container = styled.div`
  7. background: ${colors.background};
  8. border: 1px solid ${colors.border};
  9. overflow-y: hidden;
  10. padding: ${rem(8)} ${rem(16)} ${rem(16)} ${rem(16)};
  11. z-index: 11;
  12. `;
  13. export const List = styled(FlexColumn)`
  14. min-width: ${rem(360)};
  15. overflow-y: auto;
  16. `;
  17. export const Client = styled(ActiveHighlightRow)<ActiveHighlightRowProps>`
  18. display: flex;
  19. font-weight: ${({ highlight }): CSSProperties['fontWeight'] => (highlight ? 'bold' : 'normal')};
  20. justify-content: space-between;
  21. width: 100%;
  22. `;
  23. export const ClientName = styled.span`
  24. flex: 1;
  25. margin-right: ${rem(64)};
  26. `;