otherStyled.ts 777 B

123456789101112131415161718192021222324252627282930313233343536
  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. `;
  20. export const AnnotationContainer = styled('div')<{top: string; left: string; width: string; height: string}>`
  21. position: absolute;
  22. overflow: hidden;
  23. cursor: pointer;
  24. ${props => css`
  25. top: ${props.top};
  26. left: ${props.left};
  27. width: ${props.width};
  28. height: ${props.height};
  29. `}
  30. `;