2021-11-06 02:38:01 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2022-02-15 04:20:50 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2022-02-04 03:45:51 +08:00
|
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
2021-11-06 02:38:01 +08:00
|
|
|
|
|
|
|
const DropdownButton = styled(Button)`
|
|
|
|
${({ state }) => state === 'open' && `
|
|
|
|
@media ${smallOnly} {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
|
|
|
|
${({ state }) => state === 'closed' && `
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
& span {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
z-index: 3;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
span {
|
|
|
|
background-color: transparent !important;
|
2022-02-04 03:45:51 +08:00
|
|
|
color: ${colorWhite} !important;
|
2021-11-06 02:38:01 +08:00
|
|
|
opacity: .75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
DropdownButton,
|
|
|
|
};
|