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 id="datepicker" class="calendar"></div>
              
            
!

CSS

              
                body
  background #f7f6f3
  font-family sans-serif

.calendar
  position absolute
  width 280px
  left 50%
  top 50%
  margin -145px 0px 0px -140px
  background #fff
  border-radius 4px
  overflow hidden

.ui-datepicker-header
  height 50px
  line-height 50px
  color #b0aead
  background #e9e5e3
  margin-bottom 10px

.ui-datepicker-prev, .ui-datepicker-next
  width 20px
  height 20px
  text-indent 9999px
  border 2px solid #b0aead
  border-radius 100%
  cursor pointer
  overflow hidden
  margin-top 12px

.ui-datepicker-prev
  float left
  margin-left 12px
  &:after
    transform rotate(45deg)
    margin -43px 0px 0px 8px

.ui-datepicker-next
  float right
  margin-right 12px
  &:after
    transform rotate(-135deg)
    margin -43px 0px 0px 6px

.ui-datepicker-prev:after, .ui-datepicker-next:after
  content ''
  position absolute
  display block
  width 4px
  height 4px
  border-left 2px solid #b0aead
  border-bottom 2px solid #b0aead

.ui-datepicker-prev:hover, .ui-datepicker-next:hover, .ui-datepicker-prev:hover:after, .ui-datepicker-next:hover:after
  border-color #5ed1cc

.ui-datepicker-title
  text-align center

.ui-datepicker-calendar
  width 100%
  text-align center
  thead
    tr
      th
        span
          display block
          width 40px
          color #00a8b2
          margin-bottom 5px
          font-size 13px

.ui-state-default
  display block
  text-decoration none
  color #b5b5b5
  line-height 40px
  font-size 12px
  &:hover
    background rgba(0,0,0,0.02)

.ui-state-highlight
  color #8dd391

.ui-state-active
  color #5ED1CC

.ui-datepicker-unselectable
  .ui-state-default
    color #eee
    border 2px solid transparent


              
            
!

JS

              
                $(function() {
  $( "#datepicker" ).datepicker({ firstDay: 1});
});
              
            
!
999px

Console