otherStyled.ts 472 B

1234567891011121314151617181920212223
  1. import styled, { css } from 'styled-components';
  2. export const Separator = styled.div`
  3. flex: 1 1 auto;
  4. `;
  5. export const SidebarWrapper = styled('div')<{isHidden: boolean}>`
  6. position: fixed;
  7. top: 60px;
  8. bottom: 0px;
  9. width: 267px;
  10. background-color: white;
  11. box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
  12. z-index: 1;
  13. transition: left 225ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  14. ${props => (props.isHidden ? css`
  15. left: -267px;
  16. ` : css`
  17. left: 0;
  18. `)}
  19. `;