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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              .calendar
    h1.month December 2013
    ol.day-names
        li Sunday
        li Monday
        li Tuesday
        li Wednesday
        li Thursday
        li Friday
        li Saturday
    ol.days
        li
            .date 1
            .event Event with Long Name
        li
            .date 2
        li
            .date 3
        li
            .date 4
        li
            .date 5
        li
            .date 6
        li
            .date 7
        li
            .date 8
        li
            .date 9
        li
            .date 10
        li
            .date 11
        li
            .date 12
        li
            .date 13
            .event.all-day.begin.span-2 Event Name
        li
            .date 14
        li
            .date 15
            .event.all-day.end Event Name
        li
            .date 16
        li
            .date 17
        li
            .date 18
        li
            .date 19
        li
            .date 20
        li
            .date 21
            .event Event Name
            .event Event Name
        li
            .date 22
            .event.span-2 Event with Longer Name
        li
            .date 23
            .event.clear &nbsp;
            .event Event Name
        li
            .date 24
        li
            .date 25
        li
            .date 26
        li
            .date 27
        li
            .date 28
        li
            .date 29
        li
            .date 30
        li
            .date 31
        li.outside
            .date 1
        li.outside
            .date 2
        li.outside
            .date 3
        li.outside
            .date 4
            
            
          
!

CSS

            
              @import "compass/css3";

/* =========
   Get Fonts */
@import url(https://fonts.googleapis.com/css?family=Quicksand);

/* ================
   Assign Variables */
$primary-color: #6EB590;
$secondary-color: #9987B5;

/* ===========================
   Setup Mixins/Helper Classes */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* ==========
   Setup Page */
*, *:before, *:after { box-sizing: border-box; }
body { padding: 3em; background-image: url(https://subtlepatterns.com/patterns/retina_wood.png); color: grey; font-family: 'Quicksand', sans-serif; }

/* ================
   Calendar Styling */
.calendar {
  background: white;
  padding: 3em;
  border-radius: 10px;
  .month { margin-top: 0; font-weight: normal; font-size: 3em; color: $primary-color; }
  ol { 
    list-style: none; margin: 0; padding:0; @extend .clearfix;
    li { float: left; width: percentage(1/7); }
  }
  .day-names {
    border-bottom: 1px solid #eee;
    li { text-transform: uppercase; margin-bottom: .5em}
  }
  .days {
    li {
      border-bottom: 1px solid #eee;
      min-height: 8em;
      .date { margin: .5em 0; }
      .event { 
        background: $primary-color; 
        font-size: .75em;
        padding: 0 .75em;
        line-height: 2em; 
        color: white;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 1em;
        margin-bottom: 1px;
        &.span-2 { width: 200%; }
        &.begin { border-radius: 1em 0 0 1em;}
        &.end { border-radius: 0 1em 1em 0;}
        &.all-day { background: $secondary-color; }
        &.clear { background: none;}
      }
      &:nth-child(n+29) { border-bottom: none; }
      &.outside .date { color: #ddd; }
    }
  }
}
            
          
!

JS

            
              
            
          
!
999px

Console