styled.ts 742 B

1234567891011121314151617181920212223242526272829303132333435
  1. import styled, { css } from 'styled-components';
  2. import { color } from '../../constants/style';
  3. import { Props } from './index';
  4. export const Component = styled('hr')<Props>`
  5. height: 1px;
  6. margin: 6px 0;
  7. border: none;
  8. flex-shrink: 0;
  9. background-color: ${props => props.light ? 'white' : color["light-gray"] };
  10. ${props => props.absolute ? css`
  11. position: absolute;
  12. bottom: 0;
  13. left: 0;
  14. width: 100%;
  15. ` : ''}
  16. ${props => props.orientation === 'vertical' ? css`
  17. height: 100%;
  18. width: 1px;
  19. margin: 0 6px;
  20. ` : ''}
  21. ${props => props.variant === 'inset' ? css`
  22. margin-left: 52px;
  23. ` : ''}
  24. ${props => props.variant === 'middle' ? css`
  25. margin-left: 10px;
  26. margin-right: 10px;
  27. ` : ''}
  28. `;