otherStyled.ts 844 B

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