"Nav Bar with Popup Sign in"
Bootstrap 3.0.0 Snippet by patixsertu

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-12"> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Sign Up</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Sign in <b class="caret"></b></a> <div class=" dropdown-menu col-lg-4"> <div style="padding: 20px;" id="form-olvidado"> <form class="form" role="form" method="post" action="login" accept-charset="UTF-8" id="login-nav"> <div class="form-group"> <label class="sr-only" for="exampleInputEmail2">Email address</label> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email address" required> </div> <div class="form-group"> <label class="sr-only" for="exampleInputPassword2">Password</label> <input type="password" class="form-control" id="exampleInputPassword2" placeholder="Password" required> </div> <div class="checkbox"> <label> <input type="checkbox"> Remember me </label> </div> <div class="form-group"> <button type="submit" class="btn btn-success btn-block">Sign in</button> <p class="help-block"> <a class="pull-right text-muted" href="#" id="olvidado"><small>Forgot your password?</small></a> </p> </div> </form> <div class="login-or"> <hr class="hr-or"> <span class="span-or">or</span> </div> <div class="row"> <div class="col-xs-6 col-sm-6 col-md-6"> <a href="#" class="btn btn-primary btn-block">Facebook</a> </div> <div class="col-xs-6 col-sm-6 col-md-6"> <a href="#" class="btn btn-info btn-block">Google</a> </div> </div> </div> <div style="display: none; padding: 20px;" id="form-olvidado"> <form accept-charset="UTF-8" role="form" id="login-recordar" method="post"> <fieldset> <span class="help-block"> We'll send you an email with instructions to choose a new password. </span> <div class="form-group"> <label class="sr-only" for="exampleInputEmail2">Email address</label> <input type="email" class="form-control" id="exampleInputEmail2" placeholder="Email address" required> </div> <button type="submit" class="btn btn-primary btn-block" id="btn-olvidado"> Continue </button> <p class="help-block"> <a class="text-muted" href="#" id="acceso"><small>Account Access</small></a> </p> </fieldset> </form> </div> </li> </ul> </div> </div> </div>
body { margin-top:30px; } #login-nav input { margin-bottom: 15px; } .dropdown-menu {padding: 15px; min-width: 370px;} body { padding-top: 15px; font-size: 12px } .main { max-width: 320px; margin: 0 auto; } .login-or { position: relative; font-size: 18px; color: #aaa; margin-top: 10px; margin-bottom: 10px; padding-top: 10px; padding-bottom: 10px; margin-top:30px; } .span-or { display: block; position: absolute; left: 50%; top: -2px; margin-left: -25px; background-color: #fff; width: 50px; text-align: center; } .hr-or { background-color: #cdcdcd; height: 1px; margin-top: 0px !important; margin-bottom: 0px !important; } h3 { text-align: center; line-height: 300%; }
$(document).ready(function(){ //Handles menu drop down $('.dropdown-menu').find('form').click(function (e) { e.stopPropagation(); }); }); $(document).ready(function() { $('#olvidado').click(function(e) { e.preventDefault(); $('div#form-olvidado').toggle('500'); }); $('#acceso').click(function(e) { e.preventDefault(); $('div#form-olvidado').toggle('500'); }); });

Related: See More


Questions / Comments: