2021-10-25 21:29:29 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
|
|
|
import { smPaddingX, smPaddingY } from '/imports/ui/stylesheets/styled-components/general';
|
2023-04-28 05:31:11 +08:00
|
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2021-10-25 21:29:29 +08:00
|
|
|
|
|
|
|
const ActionsBar = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2022-05-20 00:34:30 +08:00
|
|
|
align-items: center;
|
2021-10-25 21:29:29 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const Left = styled.div`
|
|
|
|
display: inherit;
|
|
|
|
flex: 0;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin: 0 ${smPaddingX};
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
margin: 0 ${smPaddingY};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
bottom: ${smPaddingX};
|
|
|
|
left: ${smPaddingX};
|
|
|
|
right: auto;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: ${smPaddingX};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Center = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex: 1;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin: 0 ${smPaddingX};
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
margin: 0 ${smPaddingY};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Right = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
right: auto;
|
|
|
|
left: ${smPaddingX};
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
display: contents;
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin: 0 ${smPaddingX};
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
margin: 0 ${smPaddingY};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-09-07 00:18:08 +08:00
|
|
|
const RaiseHandButton = styled(Button)`
|
2022-09-07 00:34:43 +08:00
|
|
|
${({ ghost }) => ghost && `
|
|
|
|
& > span {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent !important;
|
|
|
|
border-color: ${colorWhite} !important;
|
|
|
|
}
|
2022-09-07 00:18:08 +08:00
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ButtonContainer = styled.div`
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
> * {
|
|
|
|
margin: 8px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2023-07-18 19:54:36 +08:00
|
|
|
const ReactionsDropdown = styled.div`
|
2022-09-07 00:18:08 +08:00
|
|
|
position: relative;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Wrapper = styled.div`
|
2023-11-14 02:36:49 +08:00
|
|
|
overflow: hidden;
|
|
|
|
margin: 0.2em 0.2em 0.2em 0.2em;
|
|
|
|
text-align: center;
|
|
|
|
max-height: 270px;
|
|
|
|
width: 270px;
|
|
|
|
em-emoji {
|
|
|
|
cursor: pointer;
|
2022-09-07 03:48:34 +08:00
|
|
|
}
|
2022-09-07 00:18:08 +08:00
|
|
|
`;
|
|
|
|
|
2023-06-14 21:21:33 +08:00
|
|
|
const Separator = styled.div`
|
|
|
|
height: 2.5rem;
|
|
|
|
width: 0;
|
|
|
|
border: 1px solid ${colorWhite};
|
|
|
|
align-self: center;
|
|
|
|
opacity: .75;
|
|
|
|
`;
|
|
|
|
|
2021-10-25 21:29:29 +08:00
|
|
|
export default {
|
|
|
|
ActionsBar,
|
|
|
|
Left,
|
|
|
|
Center,
|
|
|
|
Right,
|
2022-09-07 00:18:08 +08:00
|
|
|
RaiseHandButton,
|
|
|
|
ButtonContainer,
|
2023-07-18 19:54:36 +08:00
|
|
|
ReactionsDropdown,
|
2022-09-07 00:18:08 +08:00
|
|
|
Wrapper,
|
2023-06-14 21:21:33 +08:00
|
|
|
Separator,
|
2021-10-25 22:15:16 +08:00
|
|
|
};
|