summaryrefslogtreecommitdiff
path: root/web-ui/app
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-02-06 17:57:49 -0200
committerTayane Fernandes <tayane.rmf@gmail.com>2017-02-06 19:02:20 -0200
commiteab587344a275d7d4afb05b8682e4ff76df5da61 (patch)
tree20f3a96e31233572dd2a0285d173b057754d840f /web-ui/app
parent91bc3bbf22f81f6da767e35430eaeb8127089f5b (diff)
[#922] Make backup page responsive for big devices
with @anikarni
Diffstat (limited to 'web-ui/app')
-rw-r--r--web-ui/app/js/account_recovery/page.js4
-rw-r--r--web-ui/app/scss/account_recovery/page.scss131
2 files changed, 92 insertions, 43 deletions
diff --git a/web-ui/app/js/account_recovery/page.js b/web-ui/app/js/account_recovery/page.js
index 55df9ee7..4dda8fff 100644
--- a/web-ui/app/js/account_recovery/page.js
+++ b/web-ui/app/js/account_recovery/page.js
@@ -4,11 +4,11 @@ import 'scss/account_recovery/page.scss'
const Page = () => (
<div className='container'>
+ <img src='assets/images/forgot-my-password.svg' alt="Esqueci minha senha!"/>
<form>
- <img src='assets/images/forgot-my-password.svg' alt="Esqueci minha senha!"/>
<h1>E se você esquecer sua senha?</h1>
<p>Informe outro e-mail que você usa regularmente. Esse será o seu e-mail de recuperação.</p>
- <p>Instruções serão enviadas para esse e-mail, guarde com carinho.</p>
+ <p>Instruções para recuperar sua senha serão enviadas para esse e-mail, guarde com carinho.</p>
<div className="field-group">
<input type="text" name="email" className="email" required/>
<label className="animated-label" htmlFor="email">Digite seu e-mail de recuperação</label>
diff --git a/web-ui/app/scss/account_recovery/page.scss b/web-ui/app/scss/account_recovery/page.scss
index 040539f4..9fe85d5c 100644
--- a/web-ui/app/scss/account_recovery/page.scss
+++ b/web-ui/app/scss/account_recovery/page.scss
@@ -20,7 +20,6 @@ body {
h1 {
font-size: 1.3em;
font-weight: 600;
- width: 100%;
}
p {
@@ -32,47 +31,49 @@ p {
.field-group {
position:relative;
- margin: 1em 0;
- width: 96%;
-}
+ margin: 1.5em 0;
+ width: 100%;
-label {
- font-size: 0.9em;
- margin-bottom: 10px;
- display: inline-block;
-}
+ label {
+ font-size: 0.9em;
+ margin-bottom: 10px;
+ display: inline-block;
+ }
-input {
- display: block;
- border: none;
- border-bottom: solid 1px #4da3b6;
- width: 100%;
- height: auto;
- padding: 6px 0px;
-}
+ input {
+ display: block;
+ border: none;
+ border-bottom: solid 1px #4da3b6;
+ width: 100%;
+ height: auto;
+ padding: 0.3em 0px;
+ }
-input:focus {
- outline:none;
-}
+ input:focus {
+ outline:none;
+ border-width: 2px;
+ }
-input:focus ~ .animated-label, input:valid ~ .animated-label {
- top:-12px;
- left: 0;
- font-size:0.7em;
- color:#4da3b6;
-}
+ input:focus ~ .animated-label, input:valid ~ .animated-label {
+ top:-12px;
+ left: 0;
+ font-size:0.7em;
+ color:#4da3b6;
+ }
-.animated-label {
- color:#999;
- position:absolute;
- pointer-events:none;
- left: 6px;
- top:10px;
- transition:0.2s ease all;
- -moz-transition:0.2s ease all;
- -webkit-transition:0.2s ease all;
+ .animated-label {
+ color:#999;
+ position:absolute;
+ pointer-events:none;
+ left: 6px;
+ top:10px;
+ transition:0.2s ease all;
+ -moz-transition:0.2s ease all;
+ -webkit-transition:0.2s ease all;
+ }
}
+
button {
background: $dark_blue;
padding: 0.8em;
@@ -81,7 +82,7 @@ button {
border: none;
border-radius: 2px;
font-weight: 300;
- width: 96%;
+ width: 100%;
}
.container {
@@ -89,17 +90,65 @@ button {
width: 84%;
margin: 3% auto;
padding: 6% 5%;
-}
-form {
-webkit-display: flex;
display: flex;
- -webkit-align-items: center;
- align-items: center;
+ -webkit-align-items: flex-start;
+ align-items: flex-start;
-webkit-flex-direction: column;
flex-direction: column;
+}
+
+img {
+ width: 50%;
+ -webkit-align-self: center;
+ align-self: center;
+}
+
+@media only screen and (min-width : 500px) {
+ body {
+ font-size: 1.3em;
+ }
+
+ .field-group, button {
+ width: 70%;
+ -webkit-align-self: center;
+ align-self: center;
+ }
+}
+
+@media only screen and (min-width : 960px) {
+ .container{
+ width: 60%;
+ padding: 3%;
+ -webkit-align-items: flex-start;
+ align-items: flex-start;
+ -webkit-flex-direction: row;
+ flex-direction: row;
+ max-width: 700px;
+ }
+
+ form {
+ margin-left: 2.5em;
+ }
img {
- width: 50%;
+ width: 300px;
+ }
+
+ .field-group, button {
+ width: 300px;
+ -webkit-align-self: center;
+ align-self: center;
+ }
+
+ .field-group {
+ margin-top: 3em;
+ font-size: 1em;
+ }
+
+ button {
+ font-size: 0.8em;
+ margin-bottom: 1em;
}
}