76 lines
1.5 KiB
TypeScript
76 lines
1.5 KiB
TypeScript
import styled from 'styled-components';
|
|
import { colorWhite, colorPrimary } from '/imports/ui/stylesheets/styled-components/palette';
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
|
import { smPaddingX } from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
interface ChatProps {
|
|
isChrome: boolean;
|
|
isRTL: boolean;
|
|
}
|
|
|
|
export const Chat = styled.div<ChatProps>`
|
|
background-color: ${colorWhite};
|
|
padding: ${smPaddingX};
|
|
padding-bottom: 0;
|
|
display: flex;
|
|
flex-grow: 1;
|
|
flex-direction: column;
|
|
justify-content: space-around;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
|
|
${({ isRTL }) => isRTL && `
|
|
padding-left: 0.1rem;
|
|
`}
|
|
|
|
${({ isRTL }) => !isRTL && `
|
|
padding-right: 0.1rem;
|
|
`}
|
|
|
|
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;
|
|
}
|
|
|
|
${({ isChrome }) => isChrome && `
|
|
transform: translateZ(0);
|
|
`}
|
|
|
|
@media ${smallOnly} {
|
|
transform: none !important;
|
|
}
|
|
`;
|
|
|
|
const ChatContent = styled.div`
|
|
height: 100%;
|
|
display: contents;
|
|
`;
|
|
|
|
const ChatMessages = styled.div``;
|
|
|
|
export default { Chat, ChatMessages, ChatContent };
|