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.

              <div class="login">
  <div class="login__header">Login</div>
  <form class="login__form" action="#" method="post">
    <fieldset class="login__fieldset">
      <input class="login__input" type="email" placeholder="Email" required>
      <input class="login__input" type="password" placeholder="Password" required>
    <input class="login__submit" type="submit" value="Login">
    <a href="#" class="login__forgot-password">Forgot Password?</a>

              @import compass

// Override Compass Defaults
$default-border-radius: 3px

// Base HTML Styles
body, input
  font-family: Arial, Helvetica, sans-serif
  font-size: 14px
  color: #3d3d3d

  background-color: #eaeaea

  color: #1dabb8
  text-decoration: none

  margin: 0

// Login Component
$login-width: 300px
$login-border-radius: 5px
$login-padding: 20px

  background-color: #fff
  border-radius: $login-border-radius
  margin: 50px auto
  width: $login-width
  +box-shadow(0 0 10px #b2b3b4)

  background-color: #282830
  color: #fff
  font-size: 14px
  padding: $login-padding
  text-align: center
  text-transform: uppercase
  position: relative
    position: absolute
    background-color: #fff
    content: ''
    display: block
    height: $login-padding / 2
    width: $login-padding / 2
    left: 50%
    margin-left: -($login-padding / 2) / 2
    bottom: -($login-padding / 2) / 2
    transform: rotate(45deg)

  padding: $login-padding

  border: 1px solid #dcdcdc
  border-bottom-width: 0
  padding: 12px 10px
  width: 100%
  outline: none
  box-sizing: border-box

    border-bottom-width: 1px

  background-color: #1dabb8
  border: none
  color: #fff
  cursor: pointer
  float: right
  font-weight: bold
  margin-top: 20px
  padding: 12px $login-padding
    background-color: #198d98

  font-size: 12px
  float: left
  margin-top: 28px
    background-color: #e5e5e5
    border-radius: 10px
    content: '?'
    color: black
    display: inline-block
    height: 20px
    line-height: 20px
    margin-right: 10px
    text-align: center
    width: 20px

🕑 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.