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.

              doctype html
html lang="en"
    meta charset="UTF-8"
      title Calendar
      link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700" rel="stylesheet" type="text/css"
    header role="banner"
        | August
          | 2013
      a href="#"
        | Add event
    section role="main"
        li Sun
        li Mon
        li Tue
        li Wed
        li Thu
        li Fri
        li Sat
        li.l-date--passed 28
        li.l-date--passed 29
        li.l-date--passed 30
        li.l-date--passed 31
        li 1
        li 2
        li 3
        li 4
        li 5
        li 6
        li.l-date--event data-event="15:00 - New Haircut"
          | 7
        li 8
        li 9
        li 10
        li 11
        li 12
        li 13
        li 14
        li 15
        li 16
        li 17
        li 18
        li 19
        li 20
        li 21
        li 22
        li 23
        li 24
        li 25
        li 26
        li 27
        li 28
        li 29
        li 30
        li 31

              @import compass

/* Dirty ! Dirty ! Dirty ! (Code smell according @_flexbox) */

  margin: 0 
  padding: 0

  background: #249991

  margin: 5% auto 0
  width: 280px 

  color: white 
  text-transform: uppercase
  font-weight: 300 
  font-size: 38px
    display: block
    font-weight: 300 
    font-style: normal 
    font-size: 16px

  padding: 50px 0
  background: #4ecdc4 
  text-align: center 
  font-family: 'Roboto Condensed', sans-serif
    display: inline-block 
    padding: 5px 20px 
    border-radius: 20px 
    background: #44b3ab
    color: white 
    text-decoration: none 
    text-transform: uppercase 
    font-weight: 300 
    font-size: 12px
    transition: all .3s ease-in-out
      background: #249991
      color: #ccc

  overflow: hidden 
  padding: 15px
  background: white 
  font-family: 'Helvetica'

    list-style-type: none
    position: relative 
    display: inline-block 
    float: left
    width: 35px 
    height: 35px 
    text-align: center 
    line-height: 35px 
    zoom: 1 
    *display: inline
  cursor: pointer
  transition: background .3s ease-in-out
    background: #efefef

  position: absolute 
  top: 5px 
  right: 5px 
  display: block 
  width: 5px 
  height: 5px 
  border-radius: 50%
  background: #ff6b6b

  color: #e66b6b
  text-transform: uppercase 
  font-weight: bold 
  font-size: 10px

  color: #555 
  font-size: 14px

  color: #bababa
  position: absolute
  width: 150px
  left: 50%
  top: -125%
  margin-left: -75px
  background: #249991
  color: white
    content: '\25BE'
    position: absolute
    font-size: 25px
    color: #249991
    bottom: -19px
    left: 46%
              $('.l-date--event').on('mouseenter', function(){
  var EventTip = $('<span class="eventTip" />');
  var EventDescribe = $(this).attr('data-event');

$('.l-date--event').on('mouseleave', function(){
🕑 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.