1
0
Эх сурвалжийг харах

feat: 移动设备网页优化

SongZihuan 3 жил өмнө
parent
commit
839d0c8e5e

+ 4 - 2
app/static/styles/auth/about.css

@@ -53,12 +53,14 @@
     display: block;
 
     width: 100%;
-    height: 35px;
+    height: 50px;
+    padding-top: 2px;
+    padding-bottom: 2px;
     margin-bottom: 10px;
 
     color: #FFFFFF;
     font-size: 20px;
-    line-height: 35px;
+    line-height: 25px;
     text-align: center;
 
     border-radius: 15px;

+ 2 - 3
app/static/styles/hello/start.css

@@ -22,7 +22,7 @@ body {
 }
 
 #btn {
-    position: absolute;
+    position: relative;
     display: block;
     text-align: center;
 
@@ -31,7 +31,7 @@ body {
     border-style: ridge;
     border-color: rgb(123, 104, 238);
 
-    bottom: 200px;
+    top: 120px;
 
     color: #F0FFF0;
     background-color: #FFDC00;
@@ -62,7 +62,6 @@ body {
         left: 40%;
         width: 20%;
         height: 150px;
-        bottom: 175px;
         border-radius: 30px;
 
         color: black;

+ 4 - 2
app/templates/auth/about_macro.html

@@ -1,8 +1,10 @@
 {% macro get_garbage_list(info_lines) %}
     {% if info_lines %}
         {% for line in info_lines %}
-            <li class="garbage-list-item garbage-{{ line[4] }}">{{ line[0] }} {{ line[1] }}
-                <span> {{ line[2] }} </span> <span> {{ line[3] }} </span></li>
+            <li class="garbage-list-item garbage-{{ line[4] }}">
+                {{ line[0] }} {{ line[1] }} <br>
+                <span> {{ line[2] }} </span> <span> {{ line[3] }} </span>
+            </li>
         {% endfor %}
     {% else %}
         <li class="garbage-list-item garbage-wait"> 没有记录</li>

+ 1 - 1
app/templates/hello/start.html

@@ -30,7 +30,7 @@
 
 <body>
 <h1 id="title-1"> 欢迎,HGSSystem在线系统 </h1>
-<h2 id="title-2"> Guangdong-KZ 站 </h2>
+<h2 id="title-2"> {{ loc }} 站 </h2>
 <form method="get" action=" {{ url_for('hello.index') }} ">
     <input id="btn" type="submit" value="开始">
 </form>

+ 1 - 1
conf/sys_default.py

@@ -17,7 +17,7 @@ class ConfUserRelease:
 
 
 class ConfigSystemRelease:
-    base_location = "Guangdong-KZ"
+    base_location = "KZ"
     search_reset_time = 10  # 搜索间隔的时间
     show_uid_len = 12  # 展示uid的长度
     about_info = f'''