styled.ts 557 B

123456789101112131415161718192021
  1. import styled from 'styled-components';
  2. export const OuterWrapper = styled('div')<{ isFull: boolean }>`
  3. position: fixed;
  4. left: ${props => (props.isFull ? 0 : '267px')};
  5. right: 0;
  6. top: ${props => (props.isFull ? '-34px' : '60px')};
  7. bottom: 0;
  8. overflow: scroll;
  9. text-align: center;
  10. -webkit-overflow-scrolling: touch;
  11. transition: all 225ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  12. `;
  13. export const Wrapper = styled('div')<{ width: number }>`
  14. display: inline-flex;
  15. flex-direction: column;
  16. width: ${props => props.width}px;
  17. margin: 0 10px;
  18. `;