2021-11-02 21:55:09 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import {
|
|
|
|
colorWhite,
|
2023-05-30 03:44:33 +08:00
|
|
|
colorPrimary,
|
2021-11-02 21:55:09 +08:00
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2022-05-20 01:28:58 +08:00
|
|
|
import { mdPaddingX } from '/imports/ui/stylesheets/styled-components/general';
|
2021-11-02 21:55:09 +08:00
|
|
|
|
|
|
|
const Chat = styled.div`
|
|
|
|
background-color: ${colorWhite};
|
2022-05-20 01:28:58 +08:00
|
|
|
padding: ${mdPaddingX};
|
2021-11-02 21:55:09 +08:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-around;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
|
|
|
|
2022-05-26 03:11:13 +08:00
|
|
|
a {
|
|
|
|
color: ${colorPrimary};
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
color: ${colorPrimary};
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
filter: brightness(90%);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
filter: brightness(85%);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
&:hover:focus{
|
|
|
|
filter: brightness(90%);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
&:focus:active {
|
|
|
|
filter: brightness(85%);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
u {
|
|
|
|
text-decoration-line: none;
|
|
|
|
}
|
|
|
|
|
2021-11-02 21:55:09 +08:00
|
|
|
${({ isChrome }) => isChrome && `
|
|
|
|
transform: translateZ(0);
|
|
|
|
`}
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
transform: none !important;
|
2023-05-30 03:44:33 +08:00
|
|
|
&.no-padding {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-11-02 21:55:09 +08:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-05-20 01:28:58 +08:00
|
|
|
export default { Chat };
|