From 30c59d86654a611f909ae16e39b355c548187513 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Wed, 14 Oct 2015 20:54:36 -0300 Subject: [PATCH] [Ivan Diaz] - Update input styling and widget styling --- .../main-home/main-home-page-login-widget.js | 2 +- .../main-home-page-login-widget.scss | 9 ++-- src/app/main/main-layout.scss | 2 + src/app/main/main-signup/main-signup-page.js | 15 ++++-- .../main/main-signup/main-signup-page.scss | 17 +++++++ src/core-components/input.js | 20 ++++---- src/core-components/input.scss | 48 +++++++++++-------- src/core-components/widget-transition.scss | 1 + src/main.scss | 2 +- 9 files changed, 75 insertions(+), 41 deletions(-) create mode 100644 src/app/main/main-signup/main-signup-page.scss diff --git a/src/app/main/main-home/main-home-page-login-widget.js b/src/app/main/main-home/main-home-page-login-widget.js index 2c9892d2..0caea47c 100644 --- a/src/app/main/main-home/main-home-page-login-widget.js +++ b/src/app/main/main-home/main-home-page-login-widget.js @@ -33,7 +33,7 @@ var MainHomePageLoginWidget = React.createClass({
- +
diff --git a/src/app/main/main-home/main-home-page-login-widget.scss b/src/app/main/main-home/main-home-page-login-widget.scss index 00502273..95ee3bc7 100644 --- a/src/app/main/main-home/main-home-page-login-widget.scss +++ b/src/app/main/main-home/main-home-page-login-widget.scss @@ -1,12 +1,8 @@ .login-widget { &--container { - margin: 35px auto 0; + margin: 0 auto; height: 327px; - width: 324px; - } - - &--inputs { } &--input { @@ -14,7 +10,8 @@ } &--inputs { - margin-bottom: 20px; + display: inline-block; + margin: 0 auto 20px; } &--forgot-password { diff --git a/src/app/main/main-layout.scss b/src/app/main/main-layout.scss index 4a9c408a..9b4999e1 100644 --- a/src/app/main/main-layout.scss +++ b/src/app/main/main-layout.scss @@ -6,10 +6,12 @@ background-color: $grey; max-width: 1100px; border-radius: 4px; + transition: max-height 0.15s ease-out; &--content { text-align: center; min-height: 400px; width: 1100px; + padding: 20px; } } diff --git a/src/app/main/main-signup/main-signup-page.js b/src/app/main/main-signup/main-signup-page.js index 301040ae..8551ee07 100644 --- a/src/app/main/main-signup/main-signup-page.js +++ b/src/app/main/main-signup/main-signup-page.js @@ -19,10 +19,10 @@ var MainSignUpPageWidget = React.createClass({
- - - - + + + +
@@ -32,6 +32,13 @@ var MainSignUpPageWidget = React.createClass({ ); }, + getInputProps() { + return { + inputType: 'secondary', + className: 'signup-widget-input' + } + }, + handleLoginFormSubmit(formState) { UserActions.login(formState.email, formState.password); } diff --git a/src/app/main/main-signup/main-signup-page.scss b/src/app/main/main-signup/main-signup-page.scss new file mode 100644 index 00000000..5acac087 --- /dev/null +++ b/src/app/main/main-signup/main-signup-page.scss @@ -0,0 +1,17 @@ +.main-signup-page { + &--widget-container { + height: 401px; + } + + .signup-widget { + + &--inputs { + display: inline-block; + margin: 0 auto 20px; + } + + &--input { + margin-bottom: 5px; + } + } +} \ No newline at end of file diff --git a/src/core-components/input.js b/src/core-components/input.js index 1ac75e33..6b33186b 100644 --- a/src/core-components/input.js +++ b/src/core-components/input.js @@ -8,20 +8,21 @@ var Input = React.createClass({ value: React.PropTypes.string, validation: React.PropTypes.func, onChange: React.PropTypes.func, - type: React.PropTypes.string + inputType: React.PropTypes.string, + password: React.PropTypes.boolean }, getDefaultProps() { return { - type: 'text' + inputType: 'primary' }; }, render() { return ( -