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

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="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>
    </fieldset>
    <input class="login__submit" type="submit" value="Login">
    <a href="#" class="login__forgot-password">Forgot Password?</a>
  </form>
</div>

              
            
!

CSS

              
                @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

body
  background-color: #eaeaea

a
  color: #1dabb8
  text-decoration: none

input
  margin: 0


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

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

.login__header
  background-color: #282830
  +border-top-radius($login-border-radius)
  color: #fff
  font-size: 14px
  padding: $login-padding
  text-align: center
  text-transform: uppercase
  position: relative
  &:after
    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)

.login__form
  padding: $login-padding
  +clearfix

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

.login__fieldset
  .login__input:first-child
    +border-top-radius
  .login__input:last-child
    +border-bottom-radius
    border-bottom-width: 1px

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

.login__forgot-password
  font-size: 12px
  float: left
  margin-top: 28px
  &:before
    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

              
            
!

JS

              
                
              
            
!
999px

Console