Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .content
  .title Create account
  input(type="text", placeholder="E-mail")
  input(type="password", placeholder="Password")
  input(type="checkbox", id="rememberMe")
  label(for="rememberMe")
  span I have read and agree to the 
    a(href="#") Terms of Use 
    | and 
    a(href="#") Privacy Policy
    
  button Create Account
  .social 
    span or sign up with social media
  .buttons
    button.facebook
      i.fa.fa-facebook
      | Facebook
    button.twitter
      i.fa.fa-twitter
      | Twitter
    button.google
      i.fa.fa-google-plus
      | Google
  
  .already Already have an account? 
    a(href="#") Sign In
            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Dosis:300|Lato:300,400,600,700|Roboto+Condensed:300,700|Open+Sans+Condensed:300,600|Open+Sans:400,300,600,700|Maven+Pro:400,700);

@import url('https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css');

$textColor: White;
$greyColor: #BBB;

* {
  @include box-sizing(border-box);
}

html {
  background: black;
}

body {
  font-family: "Open Sans";
  font-size: 16px;
  color: $textColor;  
  font-smoothing: antialiased;
  font-weight: 600;
}

a {
  color: $greyColor;
}

.content:before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0; bottom: 0;
  z-index: -1;

  display: block;
  background-color: black;
  background-image: url('http://ultraimg.com/images/Ho6hQWs.jpg');
  width: 100%;
  height: 100%;
  background-size: cover;

  -webkit-filter: blur(2px);
  -moz-filter: blur(2px);
  -o-filter: blur(2px);
  -ms-filter: blur(2px);
  filter: blur(2px);
}

.content {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  width: 540px;
  height: 540px;

  background-color: rgba(10, 10, 10, 0.5);
  margin: auto auto;  
  padding: 40px;
  
  @include border-radius(4px);
  @include box-shadow(0 0 10px rgba(0,0,0,1));
  
  .title {
    
    text-align: center;
    font-size: 2.0rem;
    font-weight: 600;
    
    padding-bottom: 30px;
    
  } // .title
  
  input {
    width: 100%;
    font-size: 1.2rem;
    font-family: "Open Sans";
    
    margin: 10px 0px;
    
    border: none;
    padding: 10px;
    
    @include border-radius(4px);
  
  } // input
  
  input[type=checkbox] {
    display: none;
  }
  
  label {
    display: inline-block;
    width: 20px;
    height: 20px;

    cursor: pointer;
    position: relative;

    margin-left: 5px;
    margin-right: 10px;
    top: 5px;

    &:before {
      content: "";
      display: inline-block;

      width: 20px;
      height: 20px;
      
      @include border-radius(3px);

      position: absolute;
      left: 0;
      bottom: 1px;
      background-color: #aaa;
      @include box-shadow(inset 0px 2px 3px 0px rgba(0, 0, 0, .3), 0px 1px 0px 0px rgba(255, 255, 255, .8));        
    }
  } // label
  
  input[type=checkbox]:checked + label:before {
    content: "\2713";
    @include text-shadow(1px 1px 1px rgba(0, 0, 0, .2));
    font-size: 20px;
    color: Black;
    text-align: center;
      line-height: 20px;
  }  
  
  span {
    font-size: 0.9rem;
  }
  
  button {
    width: 100%;
    font-size: 1.1rem;
    padding: 10px;
    margin: 20px 0px;
    
    background-color: #66A756;
    color: $textColor;
    border: none;
    
    @include border-radius(4px);
  }
  
  .social {
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    
    span {
      display: inline-block;
      vertical-align: baseline;
      padding: 0 20px;
      
      &:before, &:after {
        content: '';
        display: block;
        width: 500px;
        position: absolute;
        top: 0.9em;
        border-top: 1px solid $textColor;
      }
      
      &:before {
        right: 75%;
      }
      
      &:after {
        left: 75%;
      }
    }
  }
  
  .buttons {
    width: 100%;
    margin: 30px 0px;
    
    button {
      float: left;
      width: 30%;
      margin: 0px 1.5%;
      
      i {
        padding-right: 7px;
      }
      
      &.facebook {
        background-color: #4464B2;
      }
      
      &.twitter {
        background-color: #28A9E0;
      }

      &.google {
        background-color: #DA4735;
      }
      
    } // button
    
    &:after {
      content: "";
      display: block;
      clear: both;
    }
    
  } // .buttons
  
  .already {
    text-align: center;
    font-size: 0.9rem;
  }
  
} // .content




            
          
!
            
              ###
Inspired by https://dribbble.com/shots/1786153-Create-Account-Transparent-Form
###
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console