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

92 lines
1.8 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,
smPaddingY,
lgPaddingX,
lgPaddingY,
descriptionMargin,
titlePositionLeft,
jumboPaddingY,
} from '/imports/ui/stylesheets/styled-components/general';
import {
colorGrayDark,
colorGray,
} from '/imports/ui/stylesheets/styled-components/palette';
import {
headingsFontWeight,
lineHeightBase,
} from '/imports/ui/stylesheets/styled-components/typography';
const ConfirmationModal = styled(Modal)`
2021-11-11 03:10:35 +08:00
padding: ${smPaddingY};
`;
const Container = styled.div`
display: flex;
align-items: center;
flex-direction: column;
padding: 0;
margin-top: 0;
margin-right: ${descriptionMargin};
margin-left: ${descriptionMargin};
margin-bottom: ${lgPaddingX};
`;
const Header = styled.div`
margin: 0;
padding: 0;
border: none;
line-height: ${titlePositionLeft};
margin-bottom: ${lgPaddingY};
`;
const Title = styled.div`
color: ${colorGrayDark};
font-weight: ${headingsFontWeight};
font-size: ${jumboPaddingY};
`;
const Description = styled.div`
text-align: center;
line-height: ${lineHeightBase};
color: ${colorGray};
margin-bottom: ${jumboPaddingY};
`;
const Checkbox = styled.input`
2021-11-11 03:10:35 +08:00
position: relative;
top: 0.134rem;
margin-right: 0.5rem;
[dir="rtl"] & {
margin-right: 0;
margin-left: 0.5rem;
}
`;
const Footer = styled.div`
display:flex;
`;
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};
}
`;
export default {
ConfirmationModal,
2021-11-11 03:10:35 +08:00
Container,
Header,
Title,
Description,
Checkbox,
2021-11-11 03:10:35 +08:00
Footer,
ConfirmationButton,
2021-11-11 03:10:35 +08:00
};