styled.ts 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import styled, { css } from 'styled-components';
  2. export const Container = 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 =>
  21. props.isHidden
  22. ? css`
  23. opacity: 0;
  24. visibility: hidden;
  25. `
  26. : css`
  27. opacity: 1;
  28. visibility: visible;
  29. `}
  30. `;
  31. export const ToggleButton = styled.div`
  32. position: fixed;
  33. right: 20px;
  34. bottom: 15px;
  35. z-index: 2;
  36. box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.32);
  37. border-radius: 40px;
  38. width: 80px;
  39. height: 80px;
  40. `;