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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <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