summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-03-28 17:35:28 -0300
committerAnike Arni <aarni@thoughtworks.com>2017-03-28 18:06:44 -0300
commit6daf4311d32ab64fa73292e131611ee6a38ff18a (patch)
tree334c599a2a7562f041eb03370bfc6d1482e98623 /web-ui
parent9af33194195b64b4badef3c443794627f104b664 (diff)
[#932] Adapts account recovery flow to desktop
with @deniscostadsc
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/src/account_recovery/forms/forms.scss64
-rw-r--r--web-ui/src/account_recovery/forms/user_recovery_code_form.js14
-rw-r--r--web-ui/src/account_recovery/page.scss8
3 files changed, 65 insertions, 21 deletions
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 <http://www.gnu.org/licenses/>.
*/
-.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')}
/>
<h1>{t('account-recovery.user-form.title')}</h1>
- <img
- className='user-codes-image'
- src='/public/images/account-recovery/codes.svg'
- alt=''
- />
- <p>{t('account-recovery.user-form.description')}</p>
+ <div className='user-code-form-content'>
+ <img
+ className='user-codes-image'
+ src='/public/images/account-recovery/codes.svg'
+ alt=''
+ />
+ <p>{t('account-recovery.user-form.description')}</p>
+ </div>
<InputField name='admin-code' label={t('account-recovery.user-form.input-label')} />
<SubmitButton buttonText={t('account-recovery.user-form.button')} />
<BackLink
diff --git a/web-ui/src/account_recovery/page.scss b/web-ui/src/account_recovery/page.scss
index e7fa1ebb..20604b70 100644
--- a/web-ui/src/account_recovery/page.scss
+++ b/web-ui/src/account_recovery/page.scss
@@ -71,3 +71,11 @@ p {
font-size: 1.3em;
}
}
+
+@media only screen and (min-width : 960px) {
+ .container {
+ width: 60%;
+ max-width: 700px;
+ padding: 3em;
+ }
+}