styled.ts 660 B

123456789101112131415161718192021222324252627282930313233
  1. import styled from 'styled-components';
  2. export const Container = styled('div')<{
  3. displayMode: string;
  4. hidden: boolean;
  5. }>`
  6. position: fixed;
  7. top: 86px;
  8. left: ${(props) => (props.displayMode === 'normal' ? '267px' : 0)};
  9. right: 0;
  10. margin: auto;
  11. max-width: 572px;
  12. width: 100%;
  13. height: 54px;
  14. border-radius: 4px;
  15. box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.38);
  16. background-color: white;
  17. display: flex;
  18. align-items: center;
  19. justify-content: space-between;
  20. padding: 0 8px;
  21. z-index: 2;
  22. transition: all 225ms ease-in-out;
  23. opacity: ${(props) => (props.hidden ? 0 : 1)};
  24. &:hover {
  25. opacity: 1;
  26. }
  27. `;
  28. export default Container;