|
2 | 2 | <el-row> |
3 | 3 | <el-col :span="12" :offset="6"> |
4 | 4 | <div class="login"> |
| 5 | + <el-row slot="body" :gutter="0" > |
| 6 | + <el-col :span="24" :xs="24" :sm="16" :md="16" :lg="16"> |
5 | 7 | <div class="login-form"> |
6 | 8 | <div class="card-block"> |
7 | | - <h1>Vue-Admin-Login</h1> |
| 9 | + <h1>Vue-Admin</h1> |
8 | 10 | <p class="text-muted">任意用户名/密码登录</p> |
9 | 11 | <div class="input-group m-b-1"> |
10 | 12 | <span class="input-group-addon"><i class="fa fa-user"></i></span> |
11 | | - <input type="text" class="form-control" placeholder="Username" v-model="form.username"> |
| 13 | + <input type="text" class="form-control" placeholder="user name" v-model="form.username"> |
12 | 14 | </div> |
13 | 15 | <div class="input-group m-b-2"> |
14 | 16 | <span class="input-group-addon"><i class="fa fa-lock"></i></span> |
15 | | - <input type="password" class="form-control" placeholder="Password" v-model="form.password" |
| 17 | + <input type="password" class="form-control" placeholder="password" v-model="form.password" |
16 | 18 | @keyup.enter="login"> |
17 | 19 | </div> |
18 | 20 | <div class="row"> |
|
27 | 29 | </div> |
28 | 30 | </div> |
29 | 31 | </div> |
| 32 | + </el-col> |
| 33 | + <el-col :span="24" :xs="24" :sm="8" :md="8" :lg="8"> |
30 | 34 | <div class="login-register"> |
31 | 35 | <div class="card-block"> |
32 | 36 | <h2>注册</h2> |
33 | 37 | <p>平台暂时只支持使用公司邮箱注册.</p> |
34 | 38 | <el-button type="info" class="btn btn-primary active m-t-1"> 马上注册</el-button> |
35 | 39 | </div> |
36 | 40 | </div> |
| 41 | + </el-col> |
| 42 | + </el-row> |
37 | 43 | </div> |
38 | 44 | </el-col> |
39 | 45 | </el-row> |
|
95 | 101 | margin-left: auto !important; |
96 | 102 | display: table; |
97 | 103 | table-layout: fixed; |
| 104 | + background-color: #20a8d8; |
98 | 105 | } |
99 | 106 |
|
100 | 107 | .login .el-button { |
|
107 | 114 |
|
108 | 115 | .login .login-form { |
109 | 116 | background-color: #FFFFFF; |
110 | | - display: inline-block; |
111 | | - width: 60%; |
112 | | - display: table-cell; |
| 117 | + width: 100%; |
| 118 | + height: 100%; |
| 119 | + display: block; |
113 | 120 |
|
114 | 121 | } |
115 | 122 |
|
116 | 123 | .login .login-form .card-block { |
117 | | - margin: 35px; |
| 124 | + padding: 35px; |
118 | 125 | } |
119 | 126 |
|
120 | 127 | .login .login-form .card-block p { |
|
177 | 184 | position: relative; |
178 | 185 | z-index: 2; |
179 | 186 | float: left; |
180 | | - width: 100%; |
181 | 187 | margin-bottom: 0; |
182 | 188 | } |
183 | 189 |
|
184 | 190 | .form-control { |
185 | | - width: 100%; |
| 191 | + width: 90%; |
186 | 192 | padding: .5rem .75rem; |
187 | | - font-size: .875rem; |
| 193 | + font-size: 1.5rem; |
188 | 194 | line-height: 1.75rem; |
189 | 195 | color: #607d8b; |
190 | | - background-color: #fff; |
191 | | - background-image: none; |
| 196 | + background: #fff none; |
192 | 197 | background-clip: padding-box; |
193 | 198 | border: 1px solid rgba(0, 0, 0, .15); |
194 | 199 | transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; |
|
200 | 205 | } |
201 | 206 |
|
202 | 207 | .login .login-register { |
203 | | - display: table-cell; |
| 208 | + width: 100%; |
| 209 | + height: 100%; |
| 210 | + display: block; |
204 | 211 | background-color: #20a8d8; |
205 | | - width: 40%; |
206 | 212 | color: #fff; |
207 | 213 | } |
208 | 214 |
|
209 | 215 | .login .login-register .card-block { |
210 | 216 | text-align: center !important; |
211 | | - margin: 30px; |
| 217 | + padding: 30px; |
212 | 218 | } |
213 | 219 |
|
214 | 220 | .login .login-register .card-block p { |
|
0 commit comments