Pen Settings

HTML

CSS

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

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

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.

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="signin">
  <div class="top">
    <p>SIGN IN</p>
  </div>
  <div class="middle">
    <input type="text" id="name" class="inputs" placeholder="Name" />
    <input type="password" id="pword" class="inputs" placeholder="Password" />
    <button type="button" id="submit" class="">SIGN IN</button>
  </div>
  <div class="bottom">
    <ul class="signin_withs">
      <li>SIGN IN WITH</li>
      <li class="icon-google-plus"></li>
      <li class="icon-twitter"></li>
      <li class="icon-facebook"></li>
    </ul>  
    <div class="clearfix"></div>
  </div>
</div>
              
            
!

CSS

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

@darkgrey: #4a4a4a;
@salmon: #f5795b;

body {
  background: #ebeae2;
}

div.signin {
  margin: 100px auto;
  width: 425px;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  div.top {
    background: @darkgrey;
    color: white;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #6b6a6a;
    p {
      font-family: Oxygen, sans-serif;
      font-size: 13px;
      text-align: center;
      padding: 26px 0 22px;
      
    }
  }
  div.middle {
    background: @salmon;
    padding: 20px 15px 22px;
    input.inputs {
      font-family: 'Oxygen', sans-serif;
      display: block;
      width: 100%;
      padding: 15px 10px;
      margin: 0;
      border: 0;
      font-size: 13px;
      &:first-of-type {
        border: 1px solid white;
        border-bottom-color: #e2d7d4;
        -webkit-border-radius: 4px 4px 0 0;
        -moz-border-radius: 4px 4px 0 0;
        border-radius: 4px 4px 0 0;
        &:focus {
          border-top: 1px solid red;
          border-left: 1px solid red;
          border-right: 1px solid red;
          box-shadow: 0 -3px 10px rgba(255,0,0,0.4);
        }
      }
      &:last-of-type {
        border: 1px solid white;
        -webkit-border-radius: 0 0 4px 4px;
        -moz-border-radius: 0 0 4px 4px;
        border-radius: 0 0 4px 4px;
        &:focus {
          border-bottom: 1px solid red;
          border-left: 1px solid red;
          border-right: 1px solid red;
          box-shadow: 0 3px 10px rgba(255,0,0,0.4);
        }
      }
    }
    button#submit {
      font-family: Oxygen, sans-serif;
      display: block;
      width: 100%;
      background: @salmon;
      color: white;
      border: 1px solid;
      border-top-color: #F6917C;
      border-bottom-color: #E15940;
      border-left-color: darken(@salmon, 1%);
      border-right-color: darken(@salmon, 1%);
      padding: 18px;
      margin-top: 15px;
      font-size: 12px;
      -webkit-border-radius: 4px;
      -moz-border-radius: 4px;
      border-radius: 4px;
      cursor: pointer;
      &.valid {
        background: #F04C27;
        border-bottom-color: #8E4431;
        border-left-color: #D2593C;
        border-right-color: #D2593C;
      }
    }
  }
  div.bottom {    
    background: @darkgrey;
    border-top: 1px solid #6b6a6a;
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
    
    ul.signin_withs {
      display: block;
      list-style: none;
      color: white;
      li {
        padding: 26px 0 22px;
        float: left;
        display: block;
        text-align: center;
        &:nth-child(1) {
          font-family: Oxygen, sans-serif;
          width: 52%;
          padding: 28px 30px 0;
          font-size: 13px;
        }
        &:nth-child(2) {
          width: 16%;
          cursor: pointer;
        }
        &:nth-child(3) {
          width: 16%;
          cursor: pointer;
        }
        &:nth-child(4) {
          width: 16%;
          cursor: pointer;
        }
        &[class^='icon']:hover {
          background: lighten(@darkgrey, 3%);
        }
        &[class^='icon']:active {
          background: #585757;
        }
      }
      &:after {
        content: "";
        display: table;
        clear: both;
      }
    }
  }
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
::-webkit-input-placeholder {
   color: #5a5958;
}
::-moz-placeholder {  /* Firefox 19+ */
   color: #5a5958;
}


input:focus {
  outline: 0;
}








/* FONT STUFF */

@font-face {
	font-family: 'icomoon';
	src:url('fonts/icomoon.eot');
}
@font-face {
	font-family: 'icomoon';
	src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRk9UVE8AAAgkAAsAAAAACvgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABDRkYgAAABCAAABQEAAAYsQTR+b0ZGVE0AAAYMAAAAGgAAABxnB+dsR0RFRgAABigAAAAcAAAAIAAyAARPUy8yAAAGRAAAAEsAAABgL9zcQGNtYXAAAAaQAAAAPQAAAVLgF/LMaGVhZAAABtAAAAAuAAAANvvphVloaGVhAAAHAAAAAB4AAAAkBBD/5mhtdHgAAAcgAAAAFAAAABQIAACAbWF4cAAABzQAAAAGAAAABgAFUABuYW1lAAAHPAAAANwAAAGGT9Dz6nBvc3QAAAgYAAAADAAAACAAAwAAeJw9VGtQVGUYfs+yuxzWneUiqOiygKJCiC6ggpTkmJIXNG+JMY4WGiOseGGw2bwQDl3ULctmxRmcjMy0ZHSwCcccbci8RYrglKKmoigpK+Cdozg8PWfM/rznOd/3fs97e75PEaNRFEVR8xYsLVi6dIkoBlEkXYs0aFF+Wh+jx+rnsRodFgmfGQKP539g9d/g0rxakckumwLtIkF2KQ+2i2o3x4SIWedQJVB6SYTESPyKJXnjnU7n80/i808SPxlc/C/ui/AiyifKOmW9skFMOotBPjW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BvAG8AbgAAaWNvbW9vbgAAVgBlAHIAcwBpAG8AbgAgADEALgAwAABWZXJzaW9uIDEuMAAAaQBjAG8AbQBvAG8AbgAAaWNvbW9vbgAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAABAAIBAgEDAQQBBQd1bmlFMDAwB3VuaUUwMDEHdW5pRTAwMgd1bmlGMDAwAAAAAf//AAIAAQAAAA4AAAAYAAAAAAACAAEAAwAGAAEABAAAAAIAAAAAAAEAAAAAzD2izwAAAADNZSJOAAAAAM1lIk4=) format('truetype');
	font-weight: normal;
	font-style: normal;
}

/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
	font-family: 'icomoon';
	content: attr(data-icon);
	speak: none;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

/* Use the following CSS code if you want to have a class per icon */
/*
Instead of a list of all class selectors,
you can use the generic selector below, but it's slower:
[class*="icon-"]:before {
*/
.icon-facebook:before, .icon-twitter:before, .icon-google-plus:before {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}
.icon-facebook:before {
	content: "\e000";
}
.icon-twitter:before {
	content: "\e001";
}
.icon-google-plus:before {
	content: "\e002";
}

              
            
!

JS

              
                /*var flags = {
  name: false,
  password: false
};

jQuery(document).ready(function () {
  jQuery('input#name').keyup(function () {
    var $this = jQuery(this);
    if ($this.val() != '')
    {
      flags.name = true;
    }
    else
    {
      flags.name = false;
    }
    check_flags();
  })

  jQuery('input#pword').keyup(function () {
    var $this = jQuery(this);
    if ($this.val() != '')
    {
      flags.name = true;
    }
    else
    {
      flags.name = false;
    }
    check_flags();
  })
})
  
function check_flags()
{
  if (flags.name && flags.password)
  {
    jQuery('button#submit').addClass('valid');
    return;
  }
}*/
              
            
!
999px

Console