JSFiddle - React, Tailwind, and code Playground
Bootstrap Login
by Jennifer Perrin
HTML
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<section class="container">
<article class="logo text-center">
<figure>
<img src="http://matrixfox.com/images/knotable-logo.png" alt="Knotable Logo">
<h1>knotable</h1>
</figure>
</article>
<section class='login text-center'>
<h2>Login</h2>
<form>
<div class="input-group">
<span class="input-group-addon glyphicon glyphicon-user"></span>
<input type="text" class="form-control" required="" placeholder="Name">
</div>
<br>
<div class="input-group">
<span class="input-group-addon glyphicon glyphicon-lock"></span>
<input type="password" class="form-control" required="" placeholder="Password">
</div>
<small class="pull-right"><a href="#">Forgot password?</a></small>
<button class="btn btn-info" type="submit">Login</button>
</form>
<p>What?! Not a member yet? <a href="">Sign Up Now!</a></p>
</section><!-- END LOGIN SESSION -->
</section><!-- END CONTAINER -->
CSS
body {
background: white url("http://matrixfox.com/images/knotable-background.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/*
* BOOTSTRAP BUTTON INFO RESET
*
*/
.btn-info {
font-weight: bold;
color: #ffffff;
background-color: #28ade8;
border: 0;
border-radius: 4px;
padding: 10px;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
color: #ffffff;
background-color: #28ade8;
border-color: #269abc;
}
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
background-color: #28ade8;
border-color: #46b8da;
}
/*
* My Style
*
*/
.logo {
color: #fff;
margin: 40px 0 40px 0;
}
.logo h1 {
display: inline;
position: relative;
top: 8px;
margin-left: 10px;
}
.container {
max-width: 340px;
}
.login {
padding: 20px;
margin-bottom: 20px;
background: #f9f9f9;
-moz-box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
-webkit-box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
border-radius: 0.4em;
/* bootstrap resets */
/* decorative span falls 1px from the bottom of the input */
/* removes top border on the inputs */
/* .login nested styles */
}
.login h1, .login h2, .login h3,...