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="login">
    <h1>Login</h1>

    <form class="form" method="post" action="#">

      <p class="field">
        <input type="text" name="login" placeholder="Username" required/>
        <i class="fa fa-user"></i>
      </p>

      <p class="field">
        <input type="password" name="password" placeholder="Password" required/>
        <i class="fa fa-lock"></i>
      </p>

      <p class="submit"><input type="submit" name="sent" value="Login"></p>


    </form>
  </div> <!--/ Login-->

<div class="copyright">
    <p>Copyright &copy; 2014. Created by <a href="http://febbygunawan.com" target="_blank">Febby Gunawan</a></p>
              
            
!

CSS

              
                /*variables*/
$loginfonts: 13px/20px "Open Sans", Tahoma, Verdana, sans-serif;

//colors
$fontscolor: #a7a599;
$loginbg: #31302b;
$headerbg: #1abc9c;
$buttoncolor: #16a085;
$buttonhover: rgba(26, 188, 156, 1);
$iconhover: #27ae60;

/*general style*/

/*google font*/
@import "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,300,400,700)";

body {
  font: $loginfonts;
  color: $fontscolor;
  background: $loginbg;
}

/*Login form style*/

/* === Logo === */
.logo {
  background-position: center;
  height: 60px;
  width: 140px;
  margin: 100px auto 30px auto;
}

/* === Form === */
.form {
  width: 100%;

  .field {
    position: relative;
    margin: 0 50px;

    i {
      font-size: 18px;
      left: 0px;
      top: 0px;
      position: absolute;
      height: 44px;
      width: 44px;
      color: #f7f3eb;
      background: #676056;
      text-align: center;
      line-height: 44px;
      transition: all 0.3s ease-out;
      pointer-events: none;
    }
  }
}

/* === Login styles === */
.login {
  position: relative;
  margin: 100px auto;
  width: 370px;
  height: 315px;
  background: white;
  border-radius: 3px;

  &:before {
    content: "";
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    z-index: -1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  h1 {
    line-height: 55px;
    font-size: 24px;
    font-weight: bold;
    font-family: "Open Sans", sans-serif;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    background: $headerbg;

    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
  }

  .submit {
    text-align: center;
  }
  p {
    &:first-child {
      margin-top: 30px;
    }

    .remember {
      float: left;

      label {
        color: #a7a599;
        font-size: 12px;
        cursor: pointer;
      }
    }

    .forgot {
      float: right;
      margin-right: 50px;

      a {
        color: #a7a599;
        font-size: 12px;
        text-decoration: none;
        font-style: italic;
        transition: all 0.3s ease-out;

        &:hover {
          color: #f2672e;
        }
      }
    }
  }
}

/*input style*/
/* === Input Form === */
::-webkit-input-placeholder {
  color: #ded9cf;
  font-family: "Open Sans";
}

:-moz-placeholder {
  color: #ded9cf !important;
  font-family: "Open Sans";
}

.form input[type="text"],
input[type="password"] {
  font-family: "Open Sans", Calibri, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 15px 10px 55px;
  position: relative;
  width: 200px;
  height: 24px;
  color: #676056;
  border: none;
  background: #f7f3eb;
  color: #777;
  transition: color 0.3s ease-out;
}

.form input[type="text"] {
  margin-bottom: 15px;
}

.form input[type="text"]:hover ~ i,
.form input[type="password"]:hover ~ i {
  color: $iconhover;
}

.form input[type="text"]:focus ~ i,
.form input[type="password"]:focus ~ i {
  color: $iconhover;
}

.form input[type="text"]:focus,
.form input[type="password"]:focus,
.form button[type="submit"]:focus {
  outline: none;
}

.form input[type="submit"] {
  margin-top: 15px;
  width: 270px;
  text-align: center;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  padding: 12px 0;
  letter-spacing: 0;
  box-shadow: inset 0px 0px 0px 0px $buttonhover;

  color: #fff;
  background-color: $buttoncolor;
  text-shadow: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  margin-bottom: 20px;
  -webkit-animation: shadowFadeOut 0.4s;
  -moz-animation: shadowFadeOut 0.4s;
}

.form input[type="submit"]:hover,
input[type="submit"]:focus {
  color: #fff;
  box-shadow: inset 0px 46px 0px 0px $buttonhover;
  -webkit-animation: shadowFade 0.4s;
  -moz-animation: shadowFade 0.4s;
}

/*keyframes for input animation*/

@keyframes shadowFade {
  0% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 46px 0px 0px $buttonhover;
    color: #fff;
  }
}

@keyframes shadowFadeOut {
  0% {
    box-shadow: inset 0px 46px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
}

@-webkit-keyframes shadowFade {
  0% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 46px 0px 0px $buttonhover;
    color: #fff;
  }
}

@-webkit-keyframes shadowFadeOut {
  0% {
    box-shadow: inset 0px 46px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
}

@-moz-keyframes shadowFade {
  0% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 46px 0px 0px $buttonhover;
    color: #fff;
  }
}

@-moz-keyframes shadowFadeOut {
  0% {
    box-shadow: inset 0px 44px 0px 0px $buttonhover;
    color: #fff;
  }
  100% {
    box-shadow: inset 0px 0px 0px 0px $buttonhover;
    color: #fff;
  }
}

/*continued styling for input */
.form input[type="checkbox"] {
  display: none;
}

/*.form input[type="checkbox"] + label span {
    display:inline-block;
    width:16px;
    height:16px;
    margin: -2px 4px 0 50px;
    vertical-align:middle;
    background:url("../img/checkbox.png") left top no-repeat;
    cursor:pointer;
}
.form input[type="checkbox"]:checked + label span {
    background:url("../img/checkbox.png") -16px top no-repeat;
}*/

/* === Copyright === */
.copyright {
  margin-top: 30px;
  text-align: center;
  p,
  a {
    color: #828078;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease-out;
    a:hover {
      color: #f2672e;
    }
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console