From 74b81559ad23042f4a44696f95bf657aafd76f31 Mon Sep 17 00:00:00 2001 From: chenyang Date: Thu, 30 Jun 2022 11:07:23 +0800 Subject: [PATCH] update --- jsmindmulti/settings.py | 2 +- static/css/dashboard.css | 92 +++++++++++++++++++++----------------- static/html/dashboard.html | 6 ++- 3 files changed, 56 insertions(+), 44 deletions(-) diff --git a/jsmindmulti/settings.py b/jsmindmulti/settings.py index 4802bce..5347d41 100644 --- a/jsmindmulti/settings.py +++ b/jsmindmulti/settings.py @@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent SECRET_KEY = 'django-insecure-92%z)%dv$x)-254f2ixp(ctnua4%^@=db&(ha4i-i2p2er(+^&' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = [] diff --git a/static/css/dashboard.css b/static/css/dashboard.css index 2acb4da..209d636 100644 --- a/static/css/dashboard.css +++ b/static/css/dashboard.css @@ -1,11 +1,11 @@ body { - font-size: .875rem; + font-size: .875rem; } .feather { - width: 16px; - height: 16px; - vertical-align: text-bottom; + width: 16px; + height: 16px; + vertical-align: text-bottom; } /* @@ -13,49 +13,49 @@ body { */ @media (max-width: 767.98px) { - .sidebar { - top: 5rem; - } + .sidebar { + top: 5rem; + } } .sidebar-sticky { - position: relative; - top: 0; - height: calc(100vh - 48px); - padding-top: .5rem; - overflow-x: hidden; - overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ + position: relative; + top: 0; + height: calc(100vh - 48px); + padding-top: .5rem; + overflow-x: hidden; + overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ } @supports ((position: -webkit-sticky) or (position: sticky)) { - .sidebar-sticky { - position: -webkit-sticky; - position: sticky; - } + .sidebar-sticky { + position: -webkit-sticky; + position: sticky; + } } .sidebar .nav-link { - font-weight: 500; - color: #333; + font-weight: 500; + color: #333; } .sidebar .nav-link .feather { - margin-right: 4px; - color: #999; + margin-right: 4px; + color: #999; } .sidebar .nav-link.active { - color: #007bff; + color: #007bff; } .sidebar .nav-link:hover .feather, .sidebar .nav-link.active .feather { - color: inherit; + color: inherit; } .sidebar-heading { - font-size: .75rem; - text-transform: uppercase; + font-size: .75rem; + text-transform: uppercase; } /* @@ -63,35 +63,43 @@ body { */ .navbar-brand { - padding-top: .75rem; - padding-bottom: .75rem; - font-size: 1rem; - background-color: rgba(0, 0, 0, .25); - box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); + padding-top: .75rem; + padding-bottom: .75rem; + font-size: 1rem; + background-color: rgba(0, 0, 0, .25); + box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); } .navbar .navbar-toggler { - top: .25rem; - right: 1rem; + top: .25rem; + right: 1rem; } .navbar .form-control { - padding: .75rem 1rem; - border-width: 0; - border-radius: 0; + padding: .75rem 1rem; + border-width: 0; + border-radius: 0; } .form-control-dark { - color: #fff; - background-color: rgba(255, 255, 255, .1); - border-color: rgba(255, 255, 255, .1); + color: #fff; + background-color: rgba(255, 255, 255, .1); + border-color: rgba(255, 255, 255, .1); } .form-control-dark:focus { - border-color: transparent; - box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); + border-color: transparent; + box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); } -.card-body .btn{ - margin-top: 5px; +.card-body .btn { + margin-top: 5px; +} + +.modal-body input { + margin-top: 6px; +} + +.modal-body button { + margin-top: 10px; } \ No newline at end of file diff --git a/static/html/dashboard.html b/static/html/dashboard.html index 7f367b0..2d7f54e 100644 --- a/static/html/dashboard.html +++ b/static/html/dashboard.html @@ -89,10 +89,14 @@