Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit ce4e097

Browse files
committed
fix login
1 parent e745946 commit ce4e097

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/components/Header/Header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import '../variables.css';
33

44
.brand {
5-
color: color(var(--brand-color) lightness(+10%));
5+
color: lightness(+10%));
66
text-decoration: none;
77
font-size: 1.75em; /* ~28px */
88
}

src/components/Login/Login.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { PropTypes, Component } from 'react';
22
import _ from 'lodash';
3-
import withStyles from 'isomorphic-style-loader/lib/withStyles';
43
import {
54
Col,
65
ControlLabel,
@@ -54,15 +53,15 @@ class Login extends Component {
5453

5554
render() {
5655
return (
57-
<Form style={{ height:600 }} horizontal>
56+
<Form style={{ height:600, paddingLeft: 20, paddingRight:20 }} horizontal>
5857
<br/>
5958
<FormGroup>
60-
<Col smOffset={3}>
59+
<Col smOffset={2}>
6160
<h1>请登录</h1>
6261
</Col>
6362
</FormGroup>
6463
<FormGroup controlId="formHorizontalEmail">
65-
<Col componentClass={ControlLabel} sm={3}>
64+
<Col componentClass={ControlLabel} sm={2}>
6665
邮箱地址
6766
</Col>
6867
<Col sm={4}>
@@ -77,7 +76,7 @@ class Login extends Component {
7776
</FormGroup>
7877

7978
<FormGroup controlId="formHorizontalPassword">
80-
<Col componentClass={ControlLabel} sm={3}>
79+
<Col componentClass={ControlLabel} sm={2}>
8180
登录密码
8281
</Col>
8382
<Col sm={4}>
@@ -90,12 +89,12 @@ class Login extends Component {
9089
</Col>
9190
</FormGroup>
9291
<FormGroup>
93-
<Col smOffset={3} sm={4} style={{ color:'red' }} >
92+
<Col smOffset={2} sm={4} style={{ color:'red' }} >
9493
{_.get(this.props, 'error.errorMessage')}
9594
</Col>
9695
</FormGroup>
9796
<FormGroup>
98-
<Col smOffset={3} sm={2}>
97+
<Col smOffset={2} sm={2}>
9998
<Button
10099
onClick={this.submit}
101100
disabled={this.props.isFetching}
@@ -105,7 +104,7 @@ class Login extends Component {
105104
</Col>
106105
</FormGroup>
107106
<FormGroup>
108-
<Col smOffset={3} sm={4}>
107+
<Col smOffset={2} sm={4}>
109108
<span style={{ marginRight:"20px" }}>还没有账号?</span>
110109
<Link to="/register">立即注册</Link>
111110
</Col>

0 commit comments

Comments
 (0)