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

              
                #container
  h1.title Login Form
  p.description Fill out the form below to sell your soul to the css overlord.
  input(placeholder='Username').loginInput
  input(placeholder='Password', type='Password').loginInput
  #footer
    span#register 
      a(href='#').register Register
    input#anim(type="checkbox" name="animation")
    label#circle(for='anim') Login
              
            
!

CSS

              
                @import "nib"

@import url('https://fonts.googleapis.com/css?family=Bree+Serif')

body
  background url('https://imgur.com/VM0LduR.png')
  padding-top 50px
  
.title
  font-family 'Bree Serif'
  margin-left 45px
  font-size 1.8em
 
.description
  margin-left 45px
  margin-right 45px
  color #678889
  font-size .8em
  text-shadow 1px 1px 0 rgba(256,256,256,1.0)
  margin-bottom 20px
  
#container
  width 300px
  height 350px
  background #f3f3f3
  padding-top 30px
  margin auto
  border-radius 5px
  border 1px solid #fff
  position relative
  
.loginInput
  display block
  width 70%
  height 40px
  margin auto
  margin-top 10px
  margin-bottom 10px
  box-sizing border-box
  transition all 0.30s ease-in-out
  border 1px solid #ddd
  border-radius 5px
  outline none
  padding: 0 25px
  font-size 1.2em
  text-shadow 1px 1px 0 rgba(256,256,256,1.0)
  &:hover
    background-color #dfe9ec
  &:focus
    box-shadow: 0 0 5px rgba(81, 203, 238, 1)
    border: 1px solid rgba(81, 203, 238, 1)
    background-color #dfe9ec
  &:nth-child(3)
    margin-bottom 20px

#footer
  position absolute
  top 285px
  right 0
  left 0
  bottom 0
  background-color #d4dedf
  overflow hidden
  padding-top 30px
  border-top 1px solid #fff;
  text-align center
  
#register
  display inline
  padding-right 50px
  font-family 'Bree Serif'
  font-size 1.2em
  text-shadow 0px 1px 0 rgba(256,256,256,0.5)
  .register
    text-decoration none
    color black
    &:hover
      color #3f9db8
#circle
  display inline
  margin 0 auto
  text-align center
  font-size 1.2em
  color #fff
  width 100px
  height 30px
  font-family 'Bree Serif'
  border-radius 5px
  padding 5px 15px
  
  background #56c2e1
  border 1px solid #46b3d3
  border-radius 5px
  transition all 0.30s ease-in-out
  cursor pointer
  &:hover
    background #3f9db8
    border 1px solid rgba(256,256,256,0.75)
    box-shadow inset 0 1px 3px rgba(0,0,0,0.5);

#anim
  display none
  margin 0
  &:checked + #circle
    
    color transparent
    padding-top 30px
    padding-right 20px
    font-size 0
    border-radius 50%
    border-color #488214
    background-color #BCED91
    background-repeat no-repeat
    background-position center center
    background-image url('//imgur.com/RbhLLwJ.gif')
              
            
!

JS

              
                
              
            
!
999px

Console