otherStyled.ts 826 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 =>
  15. props.isHidden
  16. ? css`
  17. left: -267px;
  18. `
  19. : css`
  20. left: 0;
  21. `}
  22. `;
  23. export const AnnotationContainer = styled('div')<{
  24. top: string;
  25. left: string;
  26. width: string;
  27. height: string;
  28. }>`
  29. position: absolute;
  30. overflow: hidden;
  31. cursor: pointer;
  32. ${props => css`
  33. top: ${props.top};
  34. left: ${props.left};
  35. width: ${props.width};
  36. height: ${props.height};
  37. `}
  38. `;