"Elementary - Login"
Bootstrap 3.2.0 Snippet by soham2008xyz

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <nav class="navbar navbar-default navbar-fixed-top" role="navigation"> <hr class="colorgraph colorgraph-header"> <div class="container"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Elementary</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="main-navbar-collapse"> <ul class="nav navbar-nav navbar-right"> <li> <a href="#"><i class="fa fa-arrow-left"></i> Back to Home</a> </li> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container --> </nav> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-6 col-sm-offset-2 col-md-offset-3"> <div class="panel panel-default"> <div class="panel-body"> <h2><i class="fa fa-sign-in fa-lg"></i> Sign In To Elementary</h2> <hr class="colorgraph"> <form role="form"> <fieldset> <div class="form-group"> <input type="text" name="username" id="username" required class="form-control input-lg" placeholder="Username"> </div> <div class="form-group"> <input type="password" name="password" id="password" required class="form-control input-lg" placeholder="Password"> </div> <div class="row form-row"> <div class="col-xs-12 col-sm-6 col-md-6"> <span class="button-checkbox"> <button type="button" class="btn" data-color="info">Remember Me</button> <input type="checkbox" name="remember_me" id="remember_me" checked="checked" class="hidden"> </span> </div> <div class="col-xs-12 col-sm-6 col-md-6"> <a href="" class="btn btn-link pull-right hidden-xs">Forgot Password?</a> <a href="" class="btn-link pull-left visible-xs">Forgot Password?</a> </div> </div> <div class="row form-row"> <div class="col-xs-12 col-sm-6 col-md-6"> <input type="submit" class="btn btn-lg btn-success btn-block" value="Sign In"> </div> <div class="col-xs-12 col-sm-6 col-md-6"> <a href="" class="btn btn-lg btn-primary btn-block">Register</a> </div> </div> </fieldset> </form> </div> </div> </div> </div> </div>
/* Global styles */ @import url('http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'); @import url('http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic'); body, html { width: 100%; height: 100%; font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; } h1, h2, h3, h4, h5, h6, th, b, strong { font-weight: 700; } .lead, .panel-heading { font-size: 16px; font-weight: 400; } .colorgraph { height: 5px; border-top: 0; background: #c4e17f; border-radius: 5px; background-image: -webkit-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: -moz-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: -o-linear-gradient(left, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); background-image: linear-gradient(to right, #c4e17f, #c4e17f 12.5%, #f7fdca 12.5%, #f7fdca 25%, #fecf71 25%, #fecf71 37.5%, #f0776c 37.5%, #f0776c 50%, #db9dbe 50%, #db9dbe 62.5%, #c49cde 62.5%, #c49cde 75%, #669ae1 75%, #669ae1 87.5%, #62c2e4 87.5%, #62c2e4); } .colorgraph-header { position: absolute; top: 0; margin: 0; width: 100%; height: 3px; z-index: 100; } body { padding-top: 70px; background: url('http://www.stripegenerator.com/generators/generate_stripes.php?fore=f8f8f8&h=30&w=20&p=20&back1=fcfcfcfdfd&back2=dddddd&gt=0&d=0&shadow=0') repeat; background-attachment: fixed; } .form-row { margin-top: 15px; margin-bottom: 15px; } @media (max-width:480px) { .btn { margin-bottom: 10px; } }
$(function(){ $('.button-checkbox').each(function(){ var $widget = $(this), $button = $widget.find('button'), $checkbox = $widget.find('input:checkbox'), color = $button.data('color'), settings = { on: { icon: 'glyphicon glyphicon-check' }, off: { icon: 'glyphicon glyphicon-unchecked' } }; $button.on('click', function () { $checkbox.prop('checked', !$checkbox.is(':checked')); $checkbox.triggerHandler('change'); updateDisplay(); }); $checkbox.on('change', function () { updateDisplay(); }); function updateDisplay() { var isChecked = $checkbox.is(':checked'); // Set the button's state $button.data('state', (isChecked) ? "on" : "off"); // Set the button's icon $button.find('.state-icon') .removeClass() .addClass('state-icon ' + settings[$button.data('state')].icon); // Update the button's color if (isChecked) { $button .removeClass('btn-default') .addClass('btn-' + color + ' active'); } else { $button .removeClass('btn-' + color + ' active') .addClass('btn-default'); } } function init() { updateDisplay(); // Inject the icon if applicable if ($button.find('.state-icon').length == 0) { $button.prepend('<i class="state-icon ' + settings[$button.data('state')].icon + '"></i> '); } } init(); }); });

Related: See More


Questions / Comments: