95 lines
1.8 KiB
JavaScript
95 lines
1.8 KiB
JavaScript
import styled from 'styled-components';
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
|
import Button from '/imports/ui/components/common/button/component';
|
|
|
|
import {
|
|
colorOffWhite,
|
|
colorGrayLightest,
|
|
btnPrimaryHoverBg,
|
|
btnPrimaryColor,
|
|
btnPrimaryBg,
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
const RaiseHandButton = styled(Button)`
|
|
${({ ghost }) => ghost && `
|
|
& > span {
|
|
box-shadow: none;
|
|
background-color: transparent !important;
|
|
border-color: ${colorWhite} !important;
|
|
}
|
|
`}
|
|
`;
|
|
|
|
const ReactionsDropdown = styled.div`
|
|
position: relative;
|
|
`;
|
|
|
|
const ButtonWrapper = styled.div`
|
|
border: none;
|
|
cursor: pointer;
|
|
height: 2.5rem;
|
|
width: 2.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 50%;
|
|
margin: 0 .5rem;
|
|
|
|
&:hover {
|
|
background-color: ${colorOffWhite};
|
|
}
|
|
|
|
& > button {
|
|
cursor: pointer;
|
|
flex: auto;
|
|
}
|
|
|
|
& > * > span {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
${({ active }) => active && `
|
|
color: ${btnPrimaryColor};
|
|
background-color: ${btnPrimaryBg};
|
|
border: none;
|
|
|
|
&:hover{
|
|
filter: brightness(90%);
|
|
color: ${btnPrimaryColor};
|
|
background-color: ${btnPrimaryHoverBg} !important;
|
|
}
|
|
`}
|
|
`;
|
|
|
|
const RaiseHandButtonWrapper = styled(ButtonWrapper)`
|
|
width: 2.5rem;
|
|
border-radius: 1.7rem;
|
|
|
|
& > * > span {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
${({ isMobile }) => !isMobile && `
|
|
border: 1px solid ${colorGrayLightest};
|
|
padding: 1rem 0.5rem;
|
|
width: auto;
|
|
`}
|
|
|
|
${({ active }) => active && `
|
|
color: ${btnPrimaryColor};
|
|
background-color: ${btnPrimaryBg};
|
|
|
|
&:hover{
|
|
filter: brightness(90%);
|
|
color: ${btnPrimaryColor};
|
|
background-color: ${btnPrimaryHoverBg} !important;
|
|
}
|
|
`}
|
|
`;
|
|
|
|
export default {
|
|
RaiseHandButton,
|
|
ReactionsDropdown,
|
|
ButtonWrapper,
|
|
RaiseHandButtonWrapper,
|
|
};
|