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;
}
/* 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 ================ */
.hideOnMobile {

View file

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

View file

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