From 986fde4724ac974dd7ee181f8eeafd7fbfd828a4 Mon Sep 17 00:00:00 2001
From: tone <3341154833@qq.com>
Date: Thu, 12 Sep 2024 22:00:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20login=E6=8E=A7=E5=88=B6?=
=?UTF-8?q?=E5=8F=B0=E5=93=8D=E5=BA=94=E5=BC=8F=E5=B8=83=E5=B1=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
tonecn/src/views/Console/Login.vue | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/tonecn/src/views/Console/Login.vue b/tonecn/src/views/Console/Login.vue
index 5c7004f..f8b03aa 100644
--- a/tonecn/src/views/Console/Login.vue
+++ b/tonecn/src/views/Console/Login.vue
@@ -1,9 +1,10 @@
@@ -88,16 +92,19 @@ const login = async () => {
}
.main-container {
- padding: 30px;
- margin-bottom: 160px;
+ height: v-bind(containerHeight);
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
}
.main-container>h1 {
text-align: center;
- font-size: 42px;
+ font-size: 36px;
font-weight: 400;
- margin-top: 50px;
cursor: default;
+ margin: 0 0;
}
.main-container>h3 {
@@ -120,7 +127,7 @@ const login = async () => {
}
.login-botton {
- margin-top: 10px;
+ margin: 10px 0 120px 0;
width: 260px;
height: 35px;
font-weight: 500;
@@ -137,4 +144,10 @@ const login = async () => {
border-color: rgb(220, 223, 230);
color: #606266;
}
+@media screen and (max-width: 800px){
+ /* 因为屏幕宽度小于800时,head的高度会减少15px */
+ .main-container{
+ height: calc(v-bind(containerHeight) + 15px);
+ }
+}
\ No newline at end of file