This commit is contained in:
chenyang
2022-06-30 11:07:23 +08:00
parent 71543e99b0
commit 74b81559ad
3 changed files with 56 additions and 44 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'django-insecure-92%z)%dv$x)-254f2ixp(ctnua4%^@=db&(ha4i-i2p2er(+^&' SECRET_KEY = 'django-insecure-92%z)%dv$x)-254f2ixp(ctnua4%^@=db&(ha4i-i2p2er(+^&'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = False
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []
+50 -42
View File
@@ -1,11 +1,11 @@
body { body {
font-size: .875rem; font-size: .875rem;
} }
.feather { .feather {
width: 16px; width: 16px;
height: 16px; height: 16px;
vertical-align: text-bottom; vertical-align: text-bottom;
} }
/* /*
@@ -13,49 +13,49 @@ body {
*/ */
@media (max-width: 767.98px) { @media (max-width: 767.98px) {
.sidebar { .sidebar {
top: 5rem; top: 5rem;
} }
} }
.sidebar-sticky { .sidebar-sticky {
position: relative; position: relative;
top: 0; top: 0;
height: calc(100vh - 48px); height: calc(100vh - 48px);
padding-top: .5rem; padding-top: .5rem;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
} }
@supports ((position: -webkit-sticky) or (position: sticky)) { @supports ((position: -webkit-sticky) or (position: sticky)) {
.sidebar-sticky { .sidebar-sticky {
position: -webkit-sticky; position: -webkit-sticky;
position: sticky; position: sticky;
} }
} }
.sidebar .nav-link { .sidebar .nav-link {
font-weight: 500; font-weight: 500;
color: #333; color: #333;
} }
.sidebar .nav-link .feather { .sidebar .nav-link .feather {
margin-right: 4px; margin-right: 4px;
color: #999; color: #999;
} }
.sidebar .nav-link.active { .sidebar .nav-link.active {
color: #007bff; color: #007bff;
} }
.sidebar .nav-link:hover .feather, .sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather { .sidebar .nav-link.active .feather {
color: inherit; color: inherit;
} }
.sidebar-heading { .sidebar-heading {
font-size: .75rem; font-size: .75rem;
text-transform: uppercase; text-transform: uppercase;
} }
/* /*
@@ -63,35 +63,43 @@ body {
*/ */
.navbar-brand { .navbar-brand {
padding-top: .75rem; padding-top: .75rem;
padding-bottom: .75rem; padding-bottom: .75rem;
font-size: 1rem; font-size: 1rem;
background-color: rgba(0, 0, 0, .25); background-color: rgba(0, 0, 0, .25);
box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
} }
.navbar .navbar-toggler { .navbar .navbar-toggler {
top: .25rem; top: .25rem;
right: 1rem; right: 1rem;
} }
.navbar .form-control { .navbar .form-control {
padding: .75rem 1rem; padding: .75rem 1rem;
border-width: 0; border-width: 0;
border-radius: 0; border-radius: 0;
} }
.form-control-dark { .form-control-dark {
color: #fff; color: #fff;
background-color: rgba(255, 255, 255, .1); background-color: rgba(255, 255, 255, .1);
border-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1);
} }
.form-control-dark:focus { .form-control-dark:focus {
border-color: transparent; border-color: transparent;
box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
} }
.card-body .btn{ .card-body .btn {
margin-top: 5px; margin-top: 5px;
}
.modal-body input {
margin-top: 6px;
}
.modal-body button {
margin-top: 10px;
} }
+5 -1
View File
@@ -89,10 +89,14 @@
<div class="modal-body register_group" style="display: none;height: 360px;"> <div class="modal-body register_group" style="display: none;height: 360px;">
<h1 class="h3 mb-3 font-weight-normal">请输入用户名和密码</h1> <h1 class="h3 mb-3 font-weight-normal">请输入用户名和密码</h1>
<label for="inputEmail" class="sr-only">Email address</label> <label for="inputEmail" class="sr-only">Email address</label>
<input type="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus> <input type="email" id="inputEmail" class="form-control" placeholder="Email address" autocomplete="off" required autofocus>
<label for="inputPassword" class="sr-only">Password</label> <label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required> <input type="password" id="inputPassword" class="form-control" placeholder="Password" required>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control" placeholder="Password Again" required>
<button class="btn btn-lg btn-primary btn-block" type="submit">注册</button> <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
</div> </div>
<!--register end--> <!--register end-->