144 lines
2.6 KiB
JavaScript
144 lines
2.6 KiB
JavaScript
import styled from 'styled-components';
|
|
import {
|
|
jumboPaddingY,
|
|
lgPaddingX,
|
|
smPaddingX,
|
|
modalMargin,
|
|
lgPaddingY,
|
|
titlePositionLeft,
|
|
mdPaddingX,
|
|
} from '../../stylesheets/styled-components/general';
|
|
import { fontSizeBase, fontSizeSmall } from '/imports/ui/stylesheets/styled-components/typography';
|
|
import { colorGray, colorGrayLabel, colorGrayLighter } from '../../stylesheets/styled-components/palette';
|
|
import Modal from '/imports/ui/components/common/modal/simple/component';
|
|
import Button from '/imports/ui/components/common/button/component';
|
|
|
|
const ToggleLabel = styled.span`
|
|
margin-right: ${smPaddingX};
|
|
|
|
[dir="rtl"] & {
|
|
margin: 0 0 0 ${smPaddingX};
|
|
}
|
|
`;
|
|
|
|
const LockViewersModal = styled(Modal)``;
|
|
|
|
const Container = styled.div`
|
|
margin: 0 ${modalMargin} ${lgPaddingX};
|
|
`;
|
|
|
|
const Description = styled.div`
|
|
text-align: center;
|
|
color: ${colorGray};
|
|
margin-bottom: ${jumboPaddingY};
|
|
`;
|
|
|
|
const Form = styled.div`
|
|
display: flex;
|
|
flex-flow: column;
|
|
border-bottom: 1px solid ${colorGrayLighter};
|
|
`;
|
|
|
|
const SubHeader = styled.header`
|
|
display: flex;
|
|
flex-flow: row;
|
|
flex-grow: 1;
|
|
justify-content: space-between;
|
|
color: ${colorGrayLabel};
|
|
font-size: ${fontSizeBase};
|
|
margin-bottom: ${titlePositionLeft};
|
|
`;
|
|
|
|
const Bold = styled.div`
|
|
font-weight: bold;
|
|
`;
|
|
|
|
const Row = styled.div`
|
|
display: flex;
|
|
flex-flow: row;
|
|
flex-grow: 1;
|
|
justify-content: space-between;
|
|
margin-bottom: ${mdPaddingX};
|
|
|
|
& > :first-child {
|
|
margin: 0 ${mdPaddingX} 0 0;
|
|
|
|
[dir="rtl"] & {
|
|
margin: 0 0 0 ${mdPaddingX};
|
|
}
|
|
}
|
|
`;
|
|
|
|
const Col = styled.div`
|
|
display: flex;
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
margin: 0;
|
|
|
|
[dir="rtl"] & {
|
|
margin: 0;
|
|
}
|
|
`;
|
|
|
|
const FormElement = styled.div`
|
|
position: relative;
|
|
display: flex;
|
|
flex-flow: column;
|
|
flex-grow: 1;
|
|
`;
|
|
|
|
const FormElementRight = styled(FormElement)`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-flow: row;
|
|
align-items: center;
|
|
`;
|
|
|
|
const Label = styled.div`
|
|
color: ${colorGrayLabel};
|
|
font-size: ${fontSizeSmall};
|
|
margin-bottom: ${lgPaddingY};
|
|
`;
|
|
|
|
const Footer = styled.div`
|
|
display: flex;
|
|
margin: ${smPaddingX} ${modalMargin} 0;
|
|
`;
|
|
|
|
const Actions = styled.div`
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
|
|
[dir="rtl"] & {
|
|
margin-right: auto;
|
|
margin-left: 3px;
|
|
}
|
|
`;
|
|
|
|
const ButtonCancel = styled(Button)`
|
|
margin: 0 0.25rem;
|
|
`;
|
|
|
|
const ButtonApply = styled(Button)`
|
|
margin: 0 0.25rem;
|
|
`;
|
|
|
|
export default {
|
|
ToggleLabel,
|
|
LockViewersModal,
|
|
Container,
|
|
Description,
|
|
Form,
|
|
SubHeader,
|
|
Bold,
|
|
Row,
|
|
Col,
|
|
FormElement,
|
|
FormElementRight,
|
|
Label,
|
|
Footer,
|
|
Actions,
|
|
ButtonCancel,
|
|
ButtonApply,
|
|
};
|