bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/waiting-users/guest-policy/styles.js

77 lines
1.5 KiB
JavaScript
Raw Normal View History

2021-11-03 20:12:32 +08:00
import styled from 'styled-components';
import { colorGrayDark, colorGray } from '/imports/ui/stylesheets/styled-components/palette';
import {
jumboPaddingY,
lgPaddingX,
lgPaddingY,
titlePositionLeft,
modalMargin,
} from '/imports/ui/stylesheets/styled-components/general';
import { fontSizeLarge } from '/imports/ui/stylesheets/styled-components/typography';
import Modal from '/imports/ui/components/modal/simple/component';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2021-11-03 20:12:32 +08:00
const GuestPolicyModal = styled(Modal)`
padding: ${jumboPaddingY};
`;
const Container = styled.div`
margin: 0 ${modalMargin} ${lgPaddingX};
`;
const Header = styled.div`
margin: 0;
padding: 0;
border: none;
line-height: ${titlePositionLeft};
margin-bottom: ${lgPaddingY};
`;
const Title = styled.h2`
left: ${titlePositionLeft};
right: auto;
color: ${colorGrayDark};
font-weight: bold;
font-size: ${fontSizeLarge};
text-align: center;
[dir="rtl"] & {
left: auto;
right: ${titlePositionLeft};
}
`;
const Description = styled.div`
text-align: center;
color: ${colorGray};
margin-bottom: ${jumboPaddingY};
`;
const Content = styled.div`
display: flex;
flex-direction: column;
align-items: center;
`;
const GuestPolicyButton = styled(Button)`
width: 200px;
box-sizing: border-box;
margin: 5px;
${({ disabled }) => disabled && `
& > span {
text-decoration: underline;
}
`}
`;
export default {
GuestPolicyModal,
Container,
Header,
Title,
Description,
Content,
GuestPolicyButton,
};