bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat/chat-graphql/styles.ts

79 lines
1.6 KiB
TypeScript
Raw Normal View History

import styled from 'styled-components';
import { colorWhite, colorPrimary } from '/imports/ui/stylesheets/styled-components/palette';
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
2024-02-17 00:32:27 +08:00
import { smPaddingX } from '/imports/ui/stylesheets/styled-components/general';
interface ChatProps {
isChrome: boolean;
2024-02-23 03:19:50 +08:00
isRTL: boolean;
}
export const Chat = styled.div<ChatProps>`
background-color: ${colorWhite};
2024-02-17 00:32:27 +08:00
padding: ${smPaddingX};
padding-bottom: 0;
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content: space-around;
overflow: hidden;
height: 100%;
user-select: none;
2024-02-23 03:19:50 +08:00
${({ 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`
user-select: text;
`;
export default { Chat, ChatMessages, ChatContent };