Skip to content

Commit afdb893

Browse files
committed
refactor[login]: refactor login page style
1 parent 90ee05d commit afdb893

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/views/login/index.vue

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,21 @@
3939

4040
<el-button :loading="loading" type="primary" style="width:100%;margin-bottom:30px;" @click.native.prevent="handleLogin">{{ $t('login.logIn') }}</el-button>
4141

42-
<div class="tips">
43-
<span>{{ $t('login.username') }} : admin</span>
44-
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
45-
</div>
46-
<div class="tips">
47-
<span style="margin-right:18px;">{{ $t('login.username') }} : editor</span>
48-
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
49-
</div>
42+
<div style="position:relative">
43+
<div class="tips">
44+
<span>{{ $t('login.username') }} : admin</span>
45+
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
46+
</div>
47+
<div class="tips">
48+
<span style="margin-right:18px;">{{ $t('login.username') }} : editor</span>
49+
<span>{{ $t('login.password') }} : {{ $t('login.any') }}</span>
50+
</div>
5051

51-
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">{{ $t('login.thirdparty') }}</el-button>
52+
<el-button class="thirdparty-button" type="primary" @click="showDialog=true">{{ $t('login.thirdparty') }}</el-button>
53+
</div>
5254
</el-form>
5355

54-
<el-dialog :title="$t('login.thirdparty')" :visible.sync="showDialog" append-to-body>
56+
<el-dialog :title="$t('login.thirdparty')" :visible.sync="showDialog">
5557
{{ $t('login.thirdpartyTips') }}
5658
<br>
5759
<br>
@@ -213,18 +215,17 @@ $dark_gray:#889aa4;
213215
$light_gray:#eee;
214216
215217
.login-container {
216-
position: fixed;
217-
height: 100%;
218+
min-height: 100%;
218219
width: 100%;
219220
background-color: $bg;
221+
overflow: hidden;
220222
.login-form {
221-
position: absolute;
222-
left: 0;
223-
right: 0;
223+
position: relative;
224224
width: 520px;
225225
max-width: 100%;
226-
padding: 35px 35px 15px 35px;
227-
margin: 120px auto;
226+
padding: 160px 35px 0;
227+
margin: 0 auto;
228+
overflow: hidden;
228229
}
229230
.tips {
230231
font-size: 14px;
@@ -270,8 +271,8 @@ $light_gray:#eee;
270271
}
271272
.thirdparty-button {
272273
position: absolute;
273-
right: 35px;
274-
bottom: 28px;
274+
right: 0;
275+
bottom: 6px;
275276
}
276277
}
277278
</style>

0 commit comments

Comments
 (0)