2023-11-21 00:30:07 +08:00
|
|
|
import styled from 'styled-components';
|
2024-02-06 21:12:25 +08:00
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2023-11-21 00:30:07 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
|
|
|
|
|
|
|
const LeaveButton = styled(Button)`
|
2024-02-06 21:12:25 +08:00
|
|
|
${({ state }) => state === 'open' && `
|
|
|
|
@media ${smallOnly} {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`}
|
2024-06-29 02:40:38 +08:00
|
|
|
|
2024-10-02 19:39:44 +08:00
|
|
|
${({ state }) => state === 'closed' && `
|
|
|
|
@media ${smallOnly} {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
|
2024-06-29 02:40:38 +08:00
|
|
|
${({ state, isMobile }) => state === 'closed' && !isMobile && `
|
2024-02-06 21:12:25 +08:00
|
|
|
margin-left: 1.0rem;
|
|
|
|
margin-right: 0.5rem;
|
2024-06-29 02:40:38 +08:00
|
|
|
`}
|
|
|
|
|
|
|
|
${({ state }) => state === 'closed' && `
|
2024-02-06 21:12:25 +08:00
|
|
|
border-radius: 1.1rem;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.1rem;
|
|
|
|
font-weight: 400;
|
|
|
|
z-index: 3;
|
|
|
|
`}
|
2023-11-21 00:30:07 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
LeaveButton,
|
|
|
|
};
|