Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section class="login">
  <div class="logo"></div>
  <div class="login-box">
<form id="" action="" method="post">
    <div class="login-left clearfix">
      <label for="name" class="userIcon">
        <i class="entypo-user"></i></label>
    <input type="text" name="user" id="user" placeholder="E-mail" />
    <label for="name" class="passIcon">
      <i class="entypo-key"></i></label>
    <input type="password" name="pass" id="pass" placeholder="Contraseña" />
  </div>
  <div class="login-right">
    <button type="submit"/>
      <i class="entypo-right-open"></i>
    </button></div>
</form>
 <div class="recoverPass">
   <div class="login-left">
      <label for="name" class="recoverIcon">
        <i class="entypo-user"></i></label>
    <input type="text" name="recoverpass" id="recoverpass" placeholder="E-mail" />
  </div>
  <div class="login-right">
    <button type="submit" class="remember"/>
      <i class="entypo-right-open"></i>
    </button></div>
  <div class="close"><span class="entypo-cancel"></span></div>
  <div class="alert">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Delectus animi tempore in assumenda explicabo qui. Iure rem delectus id aspernatur!</div>
 </div>
    </div> 
<footer><p>LOGIN</p>
<span><a href="#"><i class="entypo-right-thin"></i> Forgot your password?</a></span></footer>
</section>
<section class="footer">
  <p><i class="fa fa-coffee"></i> Coded & Designed by <a href="https://codepen.io/ravenous/" target="_blank"> Ravenous</a> [Franco Moya]</p>
</section>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
@import url(http://weloveiconfonts.com/api/?family=entypo);

/* Entypo */
[class*="entypo-"]:before {
  font-family: 'entypo', sans-serif;
}
* {
  box-sizing:border-box;
}
body {
  background:#DDD;
  color:#333;
  font-family: 'Open Sans', sans-serif;
  font-size:13px;
}
.clearfix:after {
  content: "."; 
  display: block; 
  height: 0;
  clear: both;
  visibility: hidden;
}
a, a:visited, a:link, a:active {
  text-decoration:none;
  color:#333;
}
a:hover{
  color:#2890E6;
}
a {
  transition: all 0.3s ease;
}
.login {
  position:relative;
}
.login .logo{
  width:100px;
  height:100px;
  background:#DDD;
  border:5px solid #2890E6;
  position:relative;
  border-radius:50%;
  margin-bottom: -10px;
  margin-left: auto;
  margin-right: auto;
  z-index:100;
}
.login .logo:after {
  content:'';
  background:#DDD;
  width:100px;
  height:90px;
  position:absolute;
  top:-10px;
  left:-5px;
  z-index:101;
}
.login-box {
  width:280px;
  height:auto;
  min-height:150px;
  padding:30px 20px 20px 20px;
  background:#363838;
  margin: 0 auto 20px auto;
  border-radius: 0px 0px 3px 3px;
  position: relative;
}
.login-box:before {
  content:'';
  position:absolute;
  top:-5px;
  left:0;
  width:100%;
  height:5px;
  background:#2890E6;
}
.login-box:after {
  content:'';
  position: absolute; 
  top: 100%;
  left:22px;
  border-top: 10px solid #363838; 
  border-left: 10px solid transparent; 
  border-right: 10px solid transparent;
}
.login .login-left {
  position:relative;
  float:left;
  width:80%;
}
.login .login-right {
  position:relative;
  float:left;
  width:20%;
}
.login .login-right button i {
  color:#EEE;
  position:absolute;
  top:14px;
  left:16px;
  font-size:50px;
}
.login button[type="submit"] {
  background:#2890E6;
  width:100%;
  height: 87px;
  border:0;
  outline:0;
  border-radius: 3px;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:11px;
  cursor:pointer;
  transition: all 0.5s ease;
}
.login button[type="submit"]:hover {
  background:#0E5D9A;
}
.login input {
  width:calc(100% - 45px);
  height:40px;
  line-height:40px;
  color:#DDD;
  background:#5B5E5E;
  border:0;
  outline:0;
  border-radius: 0px 3px 3px 0px;
  display:block;
  padding: 0 10px;
  margin-bottom:7px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:10px;
  transition: all 0.5s ease;
}
.login input::-webkit-input-placeholder {
  color: #999;
  font-weight:bold;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:10px;
}
.login input:focus::-webkit-input-placeholder {
   color: #DDD;
}
.login input:focus {
  background:#2890E6;
}
.login label {
  width: 40px;
  height: 40px;
	line-height: 40px;
	text-align: center;
  background:#4B4D4D;
  color:white;
	border-radius: 3px 0px 0px 3px;
  display: block;
	float: left;
  transition: all 0.5s ease;
}
.recoverPass {
  width:calc(40px + 100%);
  min-height:50px;
  padding: 20px;
  margin: 110px 0 20px -20px;
  display:none;
  position:relative;
  border-top: 5px solid #2890E6;
}
.remember {
  height:40px!important;
}
.remember [class*="entypo-"] {
  top: 7%!important;
  left: 40%!important;
  font-size: 30px!important;
}
.alert {
  color:white;
  width:100%;
  height:auto;
  background:tomato;
  display:block;
  position:relative;
  border-radius:3px;
  font-size:12px;
  padding:7px;
  margin: 50px 0 -45px 0;
}
.close {
  width:35px;
  height:30px;
  font-size:20px;
  line-height:30px;
  background:#363838;
  text-align:center;
  color:white;
  position:absolute;
  border-radius:50%;
  top:-17px;
  left:123px;
  cursor:pointer;
}
.login footer {
  width:280px;
  position:relative;
  margin:0 auto;
}
.login footer p {
  font-size:25px;
  font-weight:700;
  padding: 0 10px 0 0;
  text-transform:uppercase;
  display:inline-block;
  border-right:2px dotted #2890E6;
}
.login footer span {
  position:absolute;
  top:9px;
  right:0;
  font-size:12px;
}
.footer {
  width:100%;
  height:50px;
  float:left;
  overflow:hidden;
  margin-top:80px;
}
.footer > p {
  line-height:40px;
  vertical-align:middle;
  color: #333;
  font-size:11px;
  text-align:center;
}
.footer a:link, .footer a:visited, .footer a:active {
  color:#2890E6;
  text-decoration:none;
}
.footer a:hover {
  width:200px;
  color: white;
  background: #2890E6;
}
              
            
!

JS

              
                $(document).ready(function() {
  $("footer a, .close").click(function(){
 $(".recoverPass").filter(':not(:animated)').fadeToggle(500);
 });
});

$("#user").focusin(function(){
  $(".userIcon").css("background", "#0E5D9A");
}).focusout(function(){
  $(".userIcon").css("background", "#4B4D4D");
});

$("#pass").focusin(function(){
  $(".passIcon").css("background", "#0E5D9A");
}).focusout(function(){
  $(".passIcon").css("background", "#4B4D4D");
});

$("#recoverpass").focusin(function(){
  $(".recoverIcon").css("background", "#0E5D9A");
}).focusout(function(){
  $(".recoverIcon").css("background", "#4B4D4D");
});


              
            
!
999px

Console