Wrap terms to set width and top padding

This commit is contained in:
Kimmo Puputti 2017-10-27 16:43:54 +03:00
parent dcaa41c50c
commit b5157abc45
3 changed files with 21 additions and 5 deletions

View file

@ -50,6 +50,18 @@
text-align: left; text-align: left;
} }
/* Terms of Service modal*/
.termsWrapper {
width: 100%;
padding-top: 40px;
@media (--viewportMedium) {
width: 571px;
padding-top: 11px;
}
}
/* ================ Hide Top bar in screens smaller than 768px ================ */ /* ================ Hide Top bar in screens smaller than 768px ================ */
.hideOnMobile { .hideOnMobile {

View file

@ -247,7 +247,9 @@ export class AuthenticationPageComponent extends Component {
onClose={() => this.setState({ tosModalOpen: false })} onClose={() => this.setState({ tosModalOpen: false })}
onManageDisableScrolling={onManageDisableScrolling} onManageDisableScrolling={onManageDisableScrolling}
> >
<TermsOfService /> <div className={css.termsWrapper}>
<TermsOfService />
</div>
</Modal> </Modal>
</LayoutWrapperMain> </LayoutWrapperMain>
<LayoutWrapperFooter> <LayoutWrapperFooter>

View file

@ -88,10 +88,12 @@ exports[`AuthenticationPageComponent matches snapshot 1`] = `
onClose={[Function]} onClose={[Function]}
onManageDisableScrolling={[Function]} onManageDisableScrolling={[Function]}
> >
<TermsOfService <div>
className={null} <TermsOfService
rootClassName={null} className={null}
/> rootClassName={null}
/>
</div>
</InjectIntl(ModalComponent)> </InjectIntl(ModalComponent)>
</LayoutWrapperMain> </LayoutWrapperMain>
<LayoutWrapperFooter <LayoutWrapperFooter