From 9784f7816ae924b26e941d9a744f5b455f44d7cd Mon Sep 17 00:00:00 2001 From: mkg <1650473152@qq.com> Date: Sat, 12 Jun 2021 12:22:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BC=83=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E8=A7=A3=E5=86=B3user.css=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +- static/admin/admin/css/other/user.css | 58 +++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 static/admin/admin/css/other/user.css diff --git a/main.py b/main.py index 7d981c6..4602732 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ from flask import Flask -from flask_uploads import configure_uploads, patch_request_class +from flask_uploads import configure_uploads from applications.config import database, common from applications.models import db from applications.service.debug_tool import open_debug_tool @@ -27,7 +27,6 @@ def create_app(): init_flask_login(app) # 文件上传 configure_uploads(app, photos) - patch_request_class(app) # 调试工具栏 open_debug_tool(app) # logo diff --git a/static/admin/admin/css/other/user.css b/static/admin/admin/css/other/user.css new file mode 100644 index 0000000..63ec985 --- /dev/null +++ b/static/admin/admin/css/other/user.css @@ -0,0 +1,58 @@ +.dept-tree { + width: 100%; + height: -webkit-calc(100vh - 247px); + height: -moz-calc(100vh - 247px); + height: calc(100vh - 247px); + margin-top: 20px; +} +.dtree-laySimple-item-this{ + background-color: transparent!important; +} +.dtree-nav-div:hover{ + background-color: transparent!important; +} +.button{ + margin-top: 10px; + width: 94%; + margin-left: 3%; + display: block; + height: 40px; + line-height: 40px; + padding: 0 15px; + white-space: nowrap; + text-align: center; + font-size: 14.5px; + border: none; + cursor: pointer; + box-sizing: border-box; + display:inline-block; + outline: 0; + border-radius: 2px; + -webkit-appearance: none; + box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); +} +.button-primary{ + background-color: #5FB878; + color: white; +} +.button-default{ + color: #2f495e; + background-color: #edf2f7; +} +.user-main{ + width: calc(100% - 312px); + float: right; +} +.user-left{ + width: 300px; + float: left; +} +.user-collasped.user-main{ + width: 100%; +} +.user-collasped.user-left{ + width: 0px; +} +.user-collasped.user-left .user-group{ + display: none; +} \ No newline at end of file -- Gitee