bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/common/modal/confirmation/styles.js

82 lines
1.6 KiB
JavaScript
Raw Normal View History

2021-11-11 03:10:35 +08:00
import styled from 'styled-components';
2022-02-15 04:20:50 +08:00
import Button from '/imports/ui/components/common/button/component';
2022-02-15 23:54:55 +08:00
import Modal from '/imports/ui/components/common/modal/simple/component';
2021-11-11 03:10:35 +08:00
import {
smPaddingX,
mdPaddingX,
2021-11-11 03:10:35 +08:00
lgPaddingY,
jumboPaddingY,
} from '/imports/ui/stylesheets/styled-components/general';
import { colorGray } from '/imports/ui/stylesheets/styled-components/palette';
import { lineHeightBase } from '/imports/ui/stylesheets/styled-components/typography';
2021-11-11 03:10:35 +08:00
const ConfirmationModal = styled(Modal)`
padding: ${mdPaddingX};
2021-11-11 03:10:35 +08:00
`;
const Container = styled.div`
display: flex;
align-items: center;
flex-direction: column;
padding: 0;
margin-top: 0;
margin: auto;
2021-11-11 03:10:35 +08:00
`;
const Description = styled.div`
text-align: center;
line-height: ${lineHeightBase};
color: ${colorGray};
margin-bottom: ${jumboPaddingY};
`;
const DescriptionText = styled.span`
white-space: pre-line;
`;
const Checkbox = styled.input`
2021-11-11 03:10:35 +08:00
position: relative;
top: 0.134rem;
margin-right: 0.5rem;
2021-11-11 03:10:35 +08:00
[dir="rtl"] & {
margin-right: 0;
margin-left: 0.5rem;
2021-11-11 03:10:35 +08:00
}
`;
const Footer = styled.div`
display:flex;
margin-bottom: ${lgPaddingY};
2021-11-11 03:10:35 +08:00
`;
const ConfirmationButton = styled(Button)`
2021-11-11 03:10:35 +08:00
padding-right: ${jumboPaddingY};
padding-left: ${jumboPaddingY};
margin: 0 ${smPaddingX} 0 0;
[dir="rtl"] & {
margin: 0 0 0 ${smPaddingX};
}
`;
const CancelButton = styled(ConfirmationButton)`
margin: 0;
`;
const Label = styled.label`
display: block;
`;
2021-11-11 03:10:35 +08:00
export default {
ConfirmationModal,
2021-11-11 03:10:35 +08:00
Container,
Description,
DescriptionText,
Checkbox,
2021-11-11 03:10:35 +08:00
Footer,
ConfirmationButton,
CancelButton,
Label,
2021-11-11 03:10:35 +08:00
};