From 6daf4311d32ab64fa73292e131611ee6a38ff18a Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Tue, 28 Mar 2017 17:35:28 -0300 Subject: [#932] Adapts account recovery flow to desktop with @deniscostadsc --- web-ui/src/account_recovery/forms/forms.scss | 64 +++++++++++++++++----- .../forms/user_recovery_code_form.js | 14 +++-- web-ui/src/account_recovery/page.scss | 8 +++ 3 files changed, 65 insertions(+), 21 deletions(-) (limited to 'web-ui') diff --git a/web-ui/src/account_recovery/forms/forms.scss b/web-ui/src/account_recovery/forms/forms.scss index 70885daf..09d8f2ce 100644 --- a/web-ui/src/account_recovery/forms/forms.scss +++ b/web-ui/src/account_recovery/forms/forms.scss @@ -15,27 +15,33 @@ * along with Pixelated. If not, see . */ -.account-recovery-progress { - width: 100%; -} - -.admin-codes-image { - height: 2.7em; -} - -.user-codes-image { - height: 4em; -} - .account-recovery-form { display: flex; flex-direction: column; img { - margin: 7px 0; + margin: 1em 0; align-self: center; } + .user-code-form-content { + display: flex; + flex-direction: column; + align-items: center; + } + + .account-recovery-progress { + width: 100%; + } + + .admin-code-image { + height: 2.7em; + } + + .user-code-image { + height: 4em; + } + .input-field-group { margin-top: 0; } @@ -51,8 +57,36 @@ .account-recovery-form { align-items: center; - p { - width: 70%; + .account-recovery-progress, h1 { + width: 80%; + } + + .user-code-form-content { + flex-direction: row; + width: 80%; + + img { + margin: 1.6em; + } + } + } +} + +@media only screen and (min-width : 960px) { + .account-recovery-form { + .account-recovery-progress { + width: 80%; + margin-top: 0; + } + + h1 { + max-width: 80%; + width: auto; + } + + .input-field-group, .submit-button { + width: 60%; + align-self: center; } } } diff --git a/web-ui/src/account_recovery/forms/user_recovery_code_form.js b/web-ui/src/account_recovery/forms/user_recovery_code_form.js index 3927aef0..30525cdf 100644 --- a/web-ui/src/account_recovery/forms/user_recovery_code_form.js +++ b/web-ui/src/account_recovery/forms/user_recovery_code_form.js @@ -32,12 +32,14 @@ export const UserRecoveryCodeForm = ({ t, previous, next }) => ( alt={t('account-recovery.user-form.image-description')} />

{t('account-recovery.user-form.title')}

- -

{t('account-recovery.user-form.description')}

+
+ +

{t('account-recovery.user-form.description')}

+