Selaa lähdekoodia

feat: 调整Body的大小

SongZihuan 3 vuotta sitten
vanhempi
sitoutus
51e14df48e
5 muutettua tiedostoa jossa 7 lisäystä ja 7 poistoa
  1. 2 2
      app/static/styles/base.css
  2. 2 1
      app/templates/base.html
  3. 1 1
      app/web.py
  4. 2 2
      conf/__init__.py
  5. 0 1
      conf/sys_default.py

+ 2 - 2
app/static/styles/base.css

@@ -7,7 +7,7 @@ html {
 body {
 body {
     position: relative;
     position: relative;
     overflow-y: scroll; /* 总是显示滚动条 */
     overflow-y: scroll; /* 总是显示滚动条 */
-    min-height: 83vh; /* 设置最小高度为整个窗口的高度 */
+    min-height: 100vh; /* 设置最小高度为整个窗口的高度 */
 }
 }
 
 
 /* 顶菜单栏 */
 /* 顶菜单栏 */
@@ -70,7 +70,7 @@ a.nav-top-item:hover, a.nav-top-item:active {
 
 
 
 
 #start-p {
 #start-p {
-    margin-top: 8%;
+    margin-bottom: 8%;
 }
 }
 
 
 /* 闪现消息 */
 /* 闪现消息 */

+ 2 - 1
app/templates/base.html

@@ -85,7 +85,8 @@
 
 
     {% block h1_title_ %}
     {% block h1_title_ %}
         <section style="text-align: center">
         <section style="text-align: center">
-            <h1 style=";font-size: 35px;font-weight: bold;margin: 3% auto 4%;"> {% block h1_title %} {% endblock %}</h1>
+            <h1 style=";font-size: 35px;font-weight: bold;margin: 0px auto 4%;">
+                {% block h1_title %} {% endblock %}</h1>
         </section>
         </section>
     {% endblock %}
     {% endblock %}
 
 

+ 1 - 1
app/web.py

@@ -1,4 +1,4 @@
-from flask import Flask, url_for
+from flask import Flask
 from flask_login import current_user
 from flask_login import current_user
 import datetime
 import datetime
 import math
 import math

+ 2 - 2
conf/__init__.py

@@ -9,11 +9,11 @@ from .args import p_args
 from .equipment import ConfigCapture
 from .equipment import ConfigCapture
 from .sql import ConfigDatabase
 from .sql import ConfigDatabase
 from .aliyun import ConfigAliyun
 from .aliyun import ConfigAliyun
-from .sys_default import ConfigExport, ConfigSystem, ConfigSecret, ConfigTkinter, ConfUser
+from .sys_default import ConfigSystem, ConfigSecret, ConfigTkinter, ConfUser
 from .matplotlib_conf import ConfigMatplotlib
 from .matplotlib_conf import ConfigMatplotlib
 
 
 
 
-class Config(ConfigTkinter, ConfigSecret, ConfigSystem, ConfUser, ConfigExport,
+class Config(ConfigTkinter, ConfigSecret, ConfigSystem, ConfUser,
              ConfigAliyun,
              ConfigAliyun,
              ConfigDatabase,
              ConfigDatabase,
              ConfigCapture,
              ConfigCapture,

+ 0 - 1
conf/sys_default.py

@@ -52,7 +52,6 @@ class ConfigTkinterRelease:
 
 
 
 
 ConfigTkinter = ConfigTkinterRelease
 ConfigTkinter = ConfigTkinterRelease
-ConfigExport = ConfigExportRelease
 ConfigSystem = ConfigSystemDebug if p_args['run'] == 'Debug' else ConfigSystemRelease
 ConfigSystem = ConfigSystemDebug if p_args['run'] == 'Debug' else ConfigSystemRelease
 ConfUser = ConfUserRelease
 ConfUser = ConfUserRelease
 ConfigSecret = ConfigSecretRelease
 ConfigSecret = ConfigSecretRelease