2023-06-14 01:51:42 +08:00
|
|
|
import styled from 'styled-components';
|
2023-08-04 02:48:47 +08:00
|
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
|
|
|
|
2023-06-14 01:51:42 +08:00
|
|
|
import {
|
2023-08-09 02:28:05 +08:00
|
|
|
colorGrayDark,
|
2023-06-14 01:51:42 +08:00
|
|
|
colorGrayLightest,
|
|
|
|
btnPrimaryColor,
|
2023-08-09 02:28:05 +08:00
|
|
|
btnPrimaryActiveBg,
|
2023-06-14 01:51:42 +08:00
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
|
2023-08-04 02:48:47 +08:00
|
|
|
const RaiseHandButton = styled(Button)`
|
|
|
|
${({ ghost }) => ghost && `
|
|
|
|
& > span {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border-color: ${colorWhite} !important;
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
`;
|
2023-06-27 22:08:49 +08:00
|
|
|
|
2023-08-04 02:48:47 +08:00
|
|
|
const ReactionsDropdown = styled.div`
|
|
|
|
position: relative;
|
2023-06-14 01:51:42 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const ButtonWrapper = styled.div`
|
2023-08-09 02:28:05 +08:00
|
|
|
border: 1px solid transparent;
|
2023-06-14 01:51:42 +08:00
|
|
|
cursor: pointer;
|
|
|
|
height: 2.5rem;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin: 0 .5rem;
|
|
|
|
|
2023-08-09 02:28:05 +08:00
|
|
|
&:focus {
|
|
|
|
background-color: ${colorGrayDark};
|
2023-06-14 01:51:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
& > button {
|
|
|
|
cursor: pointer;
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > * > span {
|
2023-08-09 02:28:05 +08:00
|
|
|
padding: 4px;
|
2023-06-14 01:51:42 +08:00
|
|
|
}
|
2023-07-19 22:36:34 +08:00
|
|
|
|
|
|
|
${({ active }) => active && `
|
|
|
|
color: ${btnPrimaryColor};
|
2023-08-09 02:28:05 +08:00
|
|
|
background-color: ${btnPrimaryActiveBg};
|
2023-07-19 22:36:34 +08:00
|
|
|
|
|
|
|
&:hover{
|
|
|
|
filter: brightness(90%);
|
|
|
|
color: ${btnPrimaryColor};
|
2023-08-09 02:28:05 +08:00
|
|
|
background-color: ${btnPrimaryActiveBg} !important;
|
2023-07-19 22:36:34 +08:00
|
|
|
}
|
|
|
|
`}
|
2023-06-14 01:51:42 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const RaiseHandButtonWrapper = styled(ButtonWrapper)`
|
2023-08-04 02:48:47 +08:00
|
|
|
width: 2.5rem;
|
2023-06-14 01:51:42 +08:00
|
|
|
border-radius: 1.7rem;
|
2023-08-04 02:48:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
${({ isMobile }) => !isMobile && `
|
|
|
|
border: 1px solid ${colorGrayLightest};
|
|
|
|
padding: 1rem 0.5rem;
|
|
|
|
width: auto;
|
|
|
|
`}
|
2023-06-14 01:51:42 +08:00
|
|
|
|
|
|
|
${({ active }) => active && `
|
|
|
|
color: ${btnPrimaryColor};
|
2023-08-09 02:28:05 +08:00
|
|
|
background-color: ${btnPrimaryActiveBg};
|
2023-06-14 01:51:42 +08:00
|
|
|
|
|
|
|
&:hover{
|
|
|
|
filter: brightness(90%);
|
|
|
|
color: ${btnPrimaryColor};
|
2023-08-09 02:28:05 +08:00
|
|
|
background-color: ${btnPrimaryActiveBg} !important;
|
2023-06-14 01:51:42 +08:00
|
|
|
}
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
2023-08-04 02:48:47 +08:00
|
|
|
RaiseHandButton,
|
|
|
|
ReactionsDropdown,
|
2023-06-14 01:51:42 +08:00
|
|
|
ButtonWrapper,
|
|
|
|
RaiseHandButtonWrapper,
|
|
|
|
};
|