summaryrefslogtreecommitdiff
path: root/web-ui/src/backup_account/backup_email
diff options
context:
space:
mode:
authorTayane Fernandes <tayane.rmf@gmail.com>2017-03-15 16:56:11 -0300
committerTayane Fernandes <tayane.rmf@gmail.com>2017-03-16 10:28:44 -0300
commitd8fe7438d8c85c0115ddc520fe9ef117e305a6c2 (patch)
treef1fc23e52df3c1613fef5f408290227505411a0e /web-ui/src/backup_account/backup_email
parent30f450e4fe20ac0b2d8751bb3f940566aefd394f (diff)
[#971] Add css style for the confirmation page
with @tuliocasagrande
Diffstat (limited to 'web-ui/src/backup_account/backup_email')
-rw-r--r--web-ui/src/backup_account/backup_email/backup_email.js3
-rw-r--r--web-ui/src/backup_account/backup_email/backup_email.scss74
2 files changed, 76 insertions, 1 deletions
diff --git a/web-ui/src/backup_account/backup_email/backup_email.js b/web-ui/src/backup_account/backup_email/backup_email.js
index 2ef76ecf..05cba35e 100644
--- a/web-ui/src/backup_account/backup_email/backup_email.js
+++ b/web-ui/src/backup_account/backup_email/backup_email.js
@@ -21,6 +21,7 @@ import SubmitButton from 'src/common/submit_button/submit_button';
import InputField from 'src/common/input_field/input_field';
import validator from 'validator';
+import './backup_email.scss';
export class BackupEmail extends React.Component {
@@ -49,7 +50,7 @@ export class BackupEmail extends React.Component {
render() {
const t = this.props.t;
return (
- <div className='container'>
+ <div className='container backup-email-container'>
<img
className='backup-account-image'
src='/public/images/forgot-my-password.svg'
diff --git a/web-ui/src/backup_account/backup_email/backup_email.scss b/web-ui/src/backup_account/backup_email/backup_email.scss
new file mode 100644
index 00000000..a98ef8be
--- /dev/null
+++ b/web-ui/src/backup_account/backup_email/backup_email.scss
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2017 ThoughtWorks, Inc.
+ *
+ * Pixelated is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Pixelated is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+@import "~scss/vendor/reset";
+@import "~scss/base/colors";
+@import "~scss/base/fonts";
+
+
+form {
+ width: 100%;
+}
+
+.backup-email-container {
+ width: 84%;
+ padding: 6% 5%;
+ display: flex;
+ align-items: flex-start;
+ flex-direction: column;
+}
+
+.backup-account-image {
+ width: 50%;
+ height: 100%;
+ align-self: center;
+}
+
+@media only screen and (min-width : 500px) {
+ form {
+ display: flex;
+ flex-direction: column;
+
+ .input-field-group, .submit-button, .link-content {
+ width: 70%;
+ align-self: center;
+ }
+ }
+}
+
+@media only screen and (min-width : 960px) {
+ .backup-email-container{
+ width: 60%;
+ padding: 3em;
+ align-items: flex-start;
+ flex-direction: row;
+ }
+
+ form {
+ margin-left: 2.5em;
+ min-height: 492px;
+
+ .input-field-group, .submit-button, .link-content {
+ width: 300px;
+ align-self: flex-start;
+ }
+ }
+
+ .backup-account-image {
+ width: 300px;
+ }
+}