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

              
                <div class="wrap">
  <div class="form">
      <form method="post">
        <div class="form-area">
          <div class="form-list">
            <label for="form-name" class="form-label">Name</label>
            <input type="text" required="required" placeholder="NY KIM" class="form-input"/>
            <div class="form-background"></div>
          </div>
          <div class="form-list">
            <label for="form-email" class="form-label">Email</label>
            <input type="email" required="required" placeholder="nykim@nykim.net" class="form-input"/>
            <div class="form-background"></div>
          </div>
        </div>
        <input type="submit" class="form-button" value="Register" />
      </form>
    </div>
</div>
              
            
!

CSS

              
                
@import url('https://fonts.googleapis.com/css?family=Ubuntu');

// Break Point 
$tablet-width		: 767px;
$mobile-width		: 640px;

// Tablet 
@mixin tablet {
	@media screen and (max-width: #{$tablet-width}) {
		@content;
	}
}

// Mobile
@mixin mobile {
	@media screen and (max-width: #{$mobile-width}) {
		@content;
	}
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Ubuntu', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  background-color: #e8e8ea;
  
}
  

.wrap {
  width: 440px;
  padding: 2%;
  margin: 60px auto;
  background: #fff;
  box-shadow: 0 20px 30px -20px rgba(2, 2, 2, 0.8), 0 20px 30px 0px rgba(30, 30, 30, 0.3);
  
  @include tablet {
    width: 380px;
  }
  
  @include mobile {
    width: 320px;
  }
  
}
  
.form {
  width: 100%;
  margin: 0 auto;
  padding: 60px 30px;
  box-sizing: border-box;
  background: #d2b8f5;
  background: -moz-linear-gradient(-45deg, #d2b8f5 0%, #fc78b1 100%);
  background: -webkit-linear-gradient(-45deg, #d2b8f5 0%,#fc78b1 100%);
  background: linear-gradient(135deg, #d2b8f5 0%,#fc78b1 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2b8f5', endColorstr='#fc78b1',GradientType=1 );
  
  
  .form-list {
    position: relative;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    width: 100%;
    height: 60px;
    margin-top: 12px;
    border-radius: 3px;
    box-sizing: border-box;
    border: 1px solid transparent;
    
    &:first-child {
      margin-top: 0;
    }
    @include tablet {
      height: 50px;
    }
    @include mobile {
      height: 40px;
    }
    
    .form-label {
      display: block;
      z-index: 1;
      position: relative;
      height: 100%;
      margin-right: 0;
      padding-left: 26px;
      color: #fff;
      font-size: 14px;
      font-weight: 400;
      line-height: 62px;
      @include tablet {
        padding-left: 22px;
        font-size: 13px;
        line-height: 50px;
      }
      
      @include mobile {
        padding-left: 18px;
        font-size: 11px;
        line-height: 39px;
      }
    }
    
    .form-input {
      z-index: 1;
      display: inline-block;
      position: relative;
      overflow: hidden;
      -ms-flex-positive: 1;
      -webkit-flex-grow: 1;
      flex-grow: 1;
      height: 58px;
      padding: 0 20px;
      font-size: 16px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.85);
      border: 0;
      outline: 0;
      text-overflow: ellipsis;
      white-space: nowrap;
      background-color: transparent;
      
      @include tablet {
        padding: 0 14px;
        height: 47px;
        font-size: 14px;
      }
      
      @include mobile {
        padding: 0 10px;
        height: 36px;
        font-size: 11px;
      }
      
      &:-webkit-autofill {
          -webkit-box-shadow: inset 0 0 0px 9999px transparent;
      }

      &:focus,
      &:-webkit-autofill:focus {
          -webkit-box-shadow: inset 0 0 0px 9999px transparent, 0 0 8px rgba(0, 0, 0, 0); 
      }
      
      &:focus + .form-background {
        transition: background-color .2s;
        background-color: rgba(255,255,255,0.35);
        
      }
      
      &::-webkit-input-placeholder {
          color: rgba(255,255,255,0.4);
          font-size: 14px;
        
          @include tablet {
            font-size: 12px;
          }
          @include mobile {
            font-size: 10px;
          }
        
      }
      &:-ms-input-placeholder {
          color: rgba(255,255,255,0.4);
          font-size: 14px;
        
          @include tablet {
            font-size: 12px;
          }
          @include mobile {
            font-size: 10px;
          }
      }
      &::-moz-placeholder {
          color: rgba(255,255,255,0.4);
          font-size: 14px;
        
          @include tablet {
            font-size: 12px;
          }
          @include mobile {
            font-size: 10px;
          }
      }
    }
    
    .form-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255,255,255,0.18);
      transition: background-color .2s;
      border-radius: 30px;
    }
  }
  
  .form-button {
    display: block;
    cursor: pointer;
    width: 100%;
    margin: 50px auto 0;
    padding: 20px 0;
    font-size: 14px;
    color: #fff;
    line-height: 0.8; //20px*0.8=16px
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 30px;
    transition: background-color .2s;
    
    &:hover,
    &:active,
    &:focus {
      color: #fe78b5;
      background-color: rgba(255,255,255,0.8);
      outline: 0;
      transition: background-color .2s, color .2s;
    }
    
      @include tablet {
        font-size: 16px;
        padding: 16px 0;
      }
      @include mobile {
        font-size: 13px;
        padding: 13px 0;
      }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console