bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/meeting-ended/meeting-ended-ts/styles.ts

115 lines
2.2 KiB
TypeScript
Raw Normal View History

import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
import styled from 'styled-components';
import {
borderRadius,
lgPaddingX,
} from '/imports/ui/stylesheets/styled-components/general';
import {
fontSizeSmall,
fontSizeBase,
fontSizeLarge,
headingsFontWeight,
lineHeightComputed,
} from '/imports/ui/stylesheets/styled-components/typography';
import {
colorWhite,
colorText,
colorBackground,
} from '/imports/ui/stylesheets/styled-components/palette';
const Parent = styled.div`
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: ${colorBackground};
`;
const Modal = styled.div`
display: flex;
padding: ${lgPaddingX};
background-color: ${colorWhite};
flex-direction: column;
border-radius: ${borderRadius};
max-width: 95vw;
width: 600px;
`;
const Content = styled.div`
text-align: center;
`;
const Title = styled.h1`
margin: 0;
font-size: ${fontSizeLarge};
font-weight: ${headingsFontWeight};
`;
const Text = styled.div`
color: ${colorText};
font-weight: normal;
padding: ${lineHeightComputed} 0;
@media ${smallOnly} {
font-size: ${fontSizeSmall};
}
`;
const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
`;
const MeetingEndedButton = styled.button`
border: none;
overflow: visible;
border-radius: 2px;
font-weight: 600;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
user-select: none;
height: 3rem;
width: 3rem;
display: flex !important;
align-items: center;
box-align: center;
flex-align: center;
box-pack: center;
justify-content: center;
flex-pack: center;
color: var(--btn-primary-color, var(--color-white, #FFF));
background-color: var(--btn-primary-bg, var(--color-primary, #0F70D7));
border: 3px solid transparent;
padding: calc(1.25rem / 2);
@media ${smallOnly} {
font-size: ${fontSizeBase};
}
`;
const TextArea = styled.textarea`
resize: none;
margin: 1rem auto;
width: 100%;
&::placeholder {
text-align: center;
}
`;
export default {
Parent,
Modal,
Content,
Title,
Text,
MeetingEndedButton,
TextArea,
Wrapper,
};