123

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

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

            
          
!
999px
🕑 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.

Console