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

67 lines
1.4 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;
}
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%;
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 };