Skip to content

Commit

Permalink
edit login page
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0udG0d committed Dec 13, 2020
1 parent 9786ad2 commit 667422b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 68 deletions.
66 changes: 19 additions & 47 deletions static/css/sign_in.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
body {
/* background-color: #f1f1f1; */
background-image: url("../images/40.jpg");
/* background-image: url("../images/40.jpg"); */
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
Expand Down Expand Up @@ -48,7 +48,8 @@ a {
/* background-color: #fff; */
/* opacity: 0.9; */
border-radius: 4px;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
/* border:1px solid black; */
box-shadow: 0px 0px 28px 8px rgba(0, 0, 0, 0.1);
vertical-align: middle;
display: inline-block;
-webkit-box-sizing: border-box;
Expand All @@ -60,8 +61,9 @@ a {
margin: 0 auto 50px;
padding: 10px;
font-weight: 500;
color: white;
/* color: white; */
font-size: 48px;
color:#3e3e3e;
}

.context .login-form {
Expand All @@ -72,61 +74,28 @@ a {
justify-content: center;
position: relative;
left: -15px;
color: #fff;
/* color: #fff; */
}

/* .context .title a:hover {
border-bottom: 2px solid #ea6f5a;
}
.context .title .active {
font-weight: 700;
color: #ea6f5a;
border-bottom: 2px solid #ea6f5a;
}
.context .title b {
padding: 10px;
} */
/* .context form {
position: relative;
margin-bottom: 30px;
margin-top: 30px;
} */
.context form .input-num {
position: relative;
width: 285px;
top: -20px;
}
.context form .input-num input {
width: 100%;
width: 93%;
height: 40px;
margin-bottom: 15px;
padding: 4px 12px 4px 35px;
border: 2px solid white;
border: 1px solid rgba(20, 19, 19, 0.6);
border-radius: 4px;
background: inherit;
/* background-color: hsla(0, 0%, 71%, 0.1); */
opacity: 0.9;
/* background-color: #f8f8ff; */
vertical-align: middle;
color: white;
/* color: white; */
}
/* input::-webkit-input-placeholder {
color: white !important;
z-index: 1000;
}
::-moz-placeholder {
color: white !important;
z-index: 1000;
}
input:-ms-input-placeholde {
z-index: 1000;
color: white !important;
}
input:-moz-placeholder {
color: white !important;
z-index: 1000;
} */

.context .remember-btn {
float: left;
margin: 15px 0;
Expand All @@ -137,7 +106,7 @@ input:-moz-placeholder {
.context .remember-btn span {
margin-left: 5px;
font-size: 15px;
color: white;
/* color: white; */
vertical-align: middle;
}
.context .forget-btn {
Expand All @@ -150,7 +119,7 @@ input:-moz-placeholder {
left: 15px;
}
.context .forget-btn span {
color: white;
/* color: white; */
}
.context .forget-btn a {
color: #3194d0;
Expand All @@ -173,19 +142,22 @@ input:-moz-placeholder {
background-color: rgb(22, 122, 253);
background-color: rgb(5, 5, 65);
background-color: rgba(6, 6, 77, 0.8);
background-color: #21a0f0;
border: none;
border-radius: 25px;
color: #fff;
/* color: #fff; */
cursor: pointer;
display: block;
clear: both;
color:#fff;
outline: none;
/* opacity: 0; */
}
.context .sign-in-button:hover {
/* background: #187cb7; */
/* background-color: rgb(10, 108, 236); */
background-color: rgb(4, 4, 80);
background-color: #0f92e4;
}

.context .restyle {
Expand All @@ -205,8 +177,8 @@ input:-moz-placeholder {
margin-top: -50px;
margin-left: -160px;
color: #969696;
color: #fff;
color: white;
/* color: #fff;
color: white; */
}

.context .passw i {
Expand All @@ -217,8 +189,8 @@ input:-moz-placeholder {
margin-top: -50px;
margin-left: -160px;
color: #969696;
color: #fff;
color: white;
/* color: #fff;
color: white; */
}

.context .passw i:hover {
Expand Down
31 changes: 12 additions & 19 deletions static/css/sign_up.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

body {
background-image: url("../images/45.jpg");
/* background-image: url("../images/45.jpg"); */
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
Expand All @@ -31,12 +31,13 @@ a {

.context .container {
width: 400px;
height: 450px;
height: 560px;
margin: -10px auto 0px;
padding: 0px 50px 20px;
padding: 20px 50px 20px;
/* background-color: #fff; */
border-radius: 4px;
box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 28px 8px rgba(0, 0, 0, 0.1);
vertical-align: middle;
/* display: flex; */
align-items: center;
Expand All @@ -53,6 +54,7 @@ a {
font-size: 48px;
font-weight: 500;
color: white;
color: #3e3e3e;
}

.context .logo img {
Expand Down Expand Up @@ -84,6 +86,7 @@ a {
margin-bottom: 7px;
padding: 4px 12px 4px 35px;
border: 2px solid #e9e6e6;
border: 1px solid rgba(20, 19, 19, 0.6);

border-radius: 4px;
/* background-color: hsla(0, 0%, 71%, 0.1); */
Expand Down Expand Up @@ -140,6 +143,7 @@ input::placeholder {
border-radius: 25px;
color: #fff;
background-color: rgba(6, 6, 77, 0.8);
background-color: #21a0f0;
outline: none;
display: block;
clear: both;
Expand All @@ -150,6 +154,7 @@ input::placeholder {
/* background: #3db922;
background-color: rgb(10, 108, 236); */
background-color: rgb(3, 3, 54);
background-color: #0f92e4;
cursor: pointer;
}

Expand All @@ -165,6 +170,7 @@ input::placeholder {
margin-top: -45px;
margin-left: -163px;
color: #fff;
color: #969696;
}

.context .passw i {
Expand All @@ -175,6 +181,7 @@ input::placeholder {
margin-top: -45px;
margin-left: -163px;
color: #fff;
color: #969696;
}

.context .input-prepend i {
Expand All @@ -185,6 +192,7 @@ input::placeholder {
margin-top: -45px;
margin-left: -163px;
color: #fff;
color: #969696;
}
.context .paw i:hover {
cursor: pointer;
Expand All @@ -196,6 +204,7 @@ input::placeholder {
font-size: 12px;
line-height: 20px;
color: #fff;
color: #3e3e3e;
position: relative;
left: 22px;
}
Expand All @@ -204,19 +213,3 @@ input::placeholder {
.context .sign-up-msg a:hover {
color: #3194d0;
}

/* #sign-in-form-submit-btn {
position: absolute;
} */
/* .error {
position: absolute;
margin-top: -30px;
width: 100%;
height: 10px;
margin-bottom: 0px;
border: 2px red solid;
font-size: 64px;
color: red;
z-index: 100;
border-radius: 4px 4px 0 0;
} */
Binary file added static/images/40.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/45.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/images/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/sign_in.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>
</div>
<div class="container">
<h2 class="title">
登陆
Welcome
</h2>
<div class="login-form">
<form action="" method="POST" id="form" name="myform" onsubmit="checkform();">
Expand Down
2 changes: 1 addition & 1 deletion templates/sign_up.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>
</h1>
<div class="container">
<h4 class="title">
注册
Sign up
</h4>
<div class="login-form">
<form action="" method="POST" id="form" name="myform" onsubmit="return checkform();">
Expand Down

0 comments on commit 667422b

Please sign in to comment.