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

              
                <form action="#" id="login-form">
  <div class="heading">Login to Everdwell</div>
  <div class="left">
    <label for="email">Email</label> <br />
    <input type="email" name="email" id="email" /> <br />
    <label for="password">Password</label> <br />
    <input type="password" name="password" id="pass" /> <br />
    <input type="submit" value="Login" />
  </div>
  <div class="right">
    <div class="connect">Connect with</div>
    <a href="" class="facebook">
<!--       <span class="fontawesome-facebook"></span> -->
      <i class="fa fa-facebook" aria-hidden="true"></i>
    </a> <br />
    <a href="" class="twitter">
<!--       <span class="fontawesome-twitter"></span> -->
      <i class="fa fa-twitter" aria-hidden="true"></i>
    </a> <br />
    <a href="" class="google-plus">
<!--       <span class="fontawesome-google-plus"></span> -->
      <i class="fa fa-google-plus" aria-hidden="true"></i>
    </a>
  </div>
</form>  
              
            
!

CSS

              
                @import "compass/css3";

[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;
}


body {
  @include background(
    linear-gradient(left, #272838, #2b2d41, #393549, #433545)
  );
  font-family: 'Raleway', sans-serif;
}

form#login-form {
  background: #fff;
  width: 40em;
  margin: 2em auto;
  overflow: hidden;
  position: relative;
  
  @include border-radius(0.3em);
  @include box-shadow(0 0 0.2em #000);
  
  div.heading {
    background: #f85f64;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    padding: 1.5em;
    font-size: 1.1em;
  }
  
  div.left {
    width: 45%;
    float: left;
    padding: 1.7em 1.5em 2.5em 1.5em;
    
    @include box-sizing(border-box);
  }
  
  div.right {
    width: 45%;
    float: right;
    padding: 1.7em 1.5em 2.5em 1.5em;
    
    @include box-sizing(border-box);
  }
  
  &:before, &:after {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
  }
  
  &:before {
    content: 'or';
    color: gray;
    height: 0.5em;
    width: 0.5em;
    top: 1.75em;
  }
  
  &:after {
    content: '';
    background: rgba(gray, 0.3);
    height: 8em;
    width: 0.12em;
    top: -7em;
    left: .5em;
    z-index: 900;
    
    @include box-shadow(0 9.6em 0 0 rgba(gray, 0.3));
  }
}

div.left {
  label {
    display: inline-block;
    color: gray;
    font-size: 1.1em;
    margin-top: 0.6em;
  }
    
  input[type="email"], input[type="password"] {
    border: 0.1em solid darken(#eee, 6%);
    padding: 1em;
    margin: 0.6em 0;
    max-width: 88.5%;
    
    @include border-radius(0.2em);
    @include box-shadow(0 0 0.2em rgba(darken(#eee, 6%), 0.2));
    @include transition(0.15s all ease-in-out);
    
    &:focus {
      outline: none;
      border: 0.1em solid darken(#aaa, 10%);
    }
  }
  
  input[type="submit"] {
    background: #f85f64;
    color: #fff;
    outline: none;
    text-transform: uppercase;
    padding: 1.2em;
    overflow: hidden;
    border: none;
    letter-spacing: 0.1em;
    margin: 0.5em 0;
    font-weight: bold;
    
    @include border-radius(0.4em);
    @include transition(0.15s all ease-in-out);
    
    &:hover {
      background: rgba(#f85f64, 0.8);
    }
  }
}

div.right {
  
  div.connect {
    color: gray;
    font-size: 1.1em;
    text-align: center;
  }
  
  a {
    display: inline-block;
    font-size: 1.5em;
    text-decoration: none;
    color: white;
    width: 9em;
    padding: 0.55em 0.3em;
    clear: both;
    text-align: center;    
    margin: 0.5em 0.1em;
    
    @include border-radius(0.3em);
  }
  
  a.facebook {
    background: #3a589a;
    margin-top: 0.8em;
    @include transition(0.15s all ease-in-out);
    
    &:hover {
      background: rgba(#3a589a, 0.8);
    }
  }
  
  a.twitter {
    background: #4099ff;
    @include transition(0.15s all ease-in-out);
    
    &:hover {
      background: rgba(#4099ff, 0.8);
    }
  }
  
  a.google-plus {
    background: #e9544f;
    @include transition(0.15s all ease-in-out);
    
    &:hover {
      background: rgba(#e9544f, 0.8);
    }
  }
}
              
            
!

JS

              
                /*
  Inspired by https://dribbble.com/shots/1613291-Everdwell-Login.

  2014 by Kaushalya Mandaliya
  http://seebeetee.com / @kmandalwala
*/
              
            
!
999px

Console