Commit 8f0b0684 by Tom Giannattasio

styled log in form

parent 265ab436
...@@ -64,7 +64,9 @@ footer { ...@@ -64,7 +64,9 @@ footer {
height: 100px; height: 100px;
} }
input[type="text"] { input[type="text"],
input[type="email"],
input[type="password"] {
padding: 6px 8px 8px; padding: 6px 8px 8px;
box-sizing: border-box; box-sizing: border-box;
border: 1px solid #b0b6c2; border: 1px solid #b0b6c2;
......
.log-in-box {
width: 500px;
margin: 200px auto;
border-radius: 3px;
header {
height: 36px;
border-radius: 3px 3px 0 0;
border: 1px solid #2c2e33;
background: -webkit-linear-gradient(top, #686b76, #54565e);
color: #fff;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(255, 255, 255, 0.05) inset, 0 1px 0 rgba(255, 255, 255, .25) inset;
h1 {
margin: 5px 0;
font-size: 15px;
font-weight: 300;
text-align: center;
}
}
.log-in-form {
padding: 40px;
border: 1px solid $darkGrey;
border-top-width: 0;
border-radius: 0 0 3px 3px;
background: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
label {
display: block;
font-size: 13px;
font-weight: 700;
}
.email-field,
.password-field {
width: 100%;
font-size: 20px;
font-weight: 300;
}
.row {
margin-bottom: 24px;
}
.form-actions {
margin-bottom: 0;
}
.log-in-button {
@include blue-button;
margin-right: 10px;
padding: 8px 20px 10px;
}
.forgot-button {
font-size: 13px;
}
.log-in-extra {
margin-top: 10px;
text-align: right;
font-size: 13px;
border-top: 1px solid $lightGrey;
}
}
\ No newline at end of file
...@@ -14,4 +14,7 @@ $pink: rgb(182,37,104); ...@@ -14,4 +14,7 @@ $pink: rgb(182,37,104);
$error-red: rgb(253, 87, 87); $error-red: rgb(253, 87, 87);
$blue: #5597dd; $blue: #5597dd;
$lightGrey: #edf1f5;
$mediumGrey: #ced2db;
$darkGrey: #8891a1; $darkGrey: #8891a1;
$paleYellow: #fffcf1;
\ No newline at end of file
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
@import "graphics"; @import "graphics";
@import "modal"; @import "modal";
@import "alerts"; @import "alerts";
@import "login";
@import 'content-types'; @import 'content-types';
......
...@@ -4,39 +4,28 @@ ...@@ -4,39 +4,28 @@
<%block name="content"> <%block name="content">
<section class="main-container"> <article class="log-in-box">
<section class="main-content">
<header> <header>
<h3>Log in</h3> <h1>Log in to edX</h1>
<hr>
</header> </header>
<form class="log-in-form" id="login_form" action="login_post" method="post">
<form id="login_form" action="login_post" method="post"> <div class="row">
<label>E-mail</label> <label>Email:</label>
<input name="email" type="email" placeholder="E-mail"> <input name="email" type="email" class="email-field">
<label>Password</label>
<input name="password" type="password" placeholder="Password">
<label class="remember-me">
<input name="remember" type="checkbox">
Remember me
</label>
<div class="submit">
<input name="submit" type="submit" value="Submit">
</div> </div>
<div class="row">
<label>Password:</label>
<input name="password" type="password" class="password-field">
</div>
<div class="row form-actions">
<input name="submit" type="submit" value="Log In" class="log-in-button">
<a href="#" class="forgot-button">Forgot password?</a>
</div>
</form> </form>
<div class="log-in-extra">
<section class="login-extra"> <p>Not enrolled? <a href="${reverse('signup')}">Sign up.</a></p>
<p> </div>
<span>Not enrolled? <a href="${reverse('signup')}">Sign up.</a></span> </article>
<a href="#" class="pwd-reset">Forgot password?</a>
</p>
</section>
</section>
</section>
<script type="text/javascript"> <script type="text/javascript">
(function() { (function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment