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

              
                <!-- lets build a full screen login area! -->
<div id="wrap">
  <h2>Click the button below to see a super simple fullscreen login</h2>  
     <button class="clicky"><i class="fa  fa-external-link"></i> Go Fullscreen</button>
     <div id="fullscreen">
       <a href="#" class="close"><i class="fa fa-times"></i></a>
          <div class="form-wrap">
            <h1>Member Login</h1>
            <form action="" method="get">
              <label>Username</label><input type="text" name="input" value="Username">
             <label>Password</label><input type="text" name="input" value="Password">
              <button name="submit">Login</button> 
          </form>
       </div>

  </div>
</div>
       <a href="https://cdpn.io/fzAHq" class="plug">Improved Plugin Version</a>

     
              
            
!

CSS

              
                @import "compass/css3";

@import url('//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css');
@import url('//fonts.googleapis.com/css?family=Droid+Sans');

html,body {
  background: #4d88e9;
  padding:0;
  margin:0;
}

//button 
button {
  @include border-radius(10px 10px, 10px 10px);
  border: 1px solid #295aaa;
  padding: 10px 14px 10px 14px;
  background: #a7c6f9;
  @include text-shadow(rgba(black, 0.2) 1px 1px 0);
  @include box-shadow(rgba(62,106,166,0.6) 2px 2px 2px);
  @include background-image(linear-gradient(rgb(101,146,220), #3064b8)); 
  font-weight: 100;
  color: #d2ddf0;
  font-size: 1em;
  &:active {
    @include box-shadow(rgba(62,106,166,0.6) 2px 2px 2px inset);    
  }
  i {
    color: #fff;
  }
}

//basic wrapper
#wrap {
  box-sizing: border-box;
  min-width: 320px;
  max-width: 600px;
  margin: 0 auto;
  overflow: visibe;
  text-align: center;
  h2 {
    font-size: 2em;
    padding: 30px;
    font-family: 'Droid Sans', Arial, sans-serif;
    color: #fff;
    @include text-shadow(rgba(black, 0.2) 1px 1px 0);
  }
  #fullscreen {
     display: none;
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding:0;
    margin:0;
    i {
     position: absolute;
      top: 20px;
      right: 20px;
      font-size: 1em;
      color: #c0c0c0;
    }
    .form-wrap {
      margin: 150px auto;
      min-height: 300px;
      max-width: 600px;
      min-width: 320px;
      h1 {
       font-family: 'Droid Sans', Arial, sans-serif;
       color: #c0c0c0;
      }
      form label {
        display: none;
        width: 100%;
      }
      form input {
        margin: 0 auto;
        border: 1px solid #c0c0c0;
        box-sizing: border-box;
        -moz-box-sizing: border-box;
        display: block;
        width: 70%;
        padding: 10px;
        margin-bottom: 10px;
        @include border-radius(10px 10px, 10px 10px);
        @include box-shadow(rgba(black,0.1) 0px 0px 10px);    
        font-size: 0.875em;
        color: #444;
        &:hover{
            @include box-shadow(rgba(black,0.2) 1px 1px 1px inset);     
        }
         &:active {
            @include box-shadow(rgba(black,0.4) 1px 1px 1px inset);     
        }       
      }
         button {
          float: right;
           margin-right: 90px;
           color: #fff;
        }     
    }
  }
  
}

a.plug {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-family: 'Droid Sans', Arial, sans-serif;
  text-decoration: none;
  color: #fff;
}
              
            
!

JS

              
                //Look out for this as a JQuery plugin => coming soon. 
//Writing it for fun, so comments & suggestions welcome.

//See plugin version at https://cdpn.io/fzAHq
$(document).ready(function($){
   
    var full = $('#fullscreen');
    $(full).data('state','open');
    $('button').click(function(){
      if($(full).data('state') == 'open'){
        $(full).fadeIn(300);
        $(full).data('state','close');
        //console.log($(full).data('state') );
      }
    });
    $('.close').click(function(){
      if($(full).data('state') == 'close'){
        $(full).fadeOut();
        $(full).data('state','open');
       //console.log($(full).data('state') );
      }
    });  
});
  

              
            
!
999px

Console