styled.ts 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import styled, { css } from 'styled-components';
  2. export const Wrapper = styled('div')<{isHidden: boolean}>`
  3. position: fixed;
  4. top: 86px;
  5. left: 267px;
  6. right: 0;
  7. margin: auto;
  8. max-width: 572px;
  9. width: 100%;
  10. height: 54px;
  11. border-radius: 4px;
  12. box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.38);
  13. background-color: white;
  14. display: flex;
  15. align-items: center;
  16. justify-content: space-between;
  17. padding: 0 8px;
  18. z-index: 2;
  19. transition: all 225ms ease-in-out;
  20. ${props => (props.isHidden ? css`
  21. opacity: 0;
  22. visibility: hidden;
  23. ` : css`
  24. opacity: 1;
  25. visibility: visible;
  26. `)}
  27. `;
  28. export const ToggleButton = styled.div`
  29. position: fixed;
  30. right: 20px;
  31. bottom: 15px;
  32. z-index: 2;
  33. box-shadow: 1px 1px 4px 2px rgba(0,0,0,0.32);
  34. border-radius: 40px;
  35. width: 80px;
  36. height: 80px;
  37. `;