css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

      p OCT | 2013
        li SUN
        li MON
        li TUE
        li WED
        li THU
        li FRI
        li SAT
              @import url(http://weloveiconfonts.com/api/?family=entypo)
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300)

  background-color: #3F3F3F
  color: #FEF9FA
  font-family: 'Roboto Condensed', sans-serif
/* entypo */
  font-family: 'entypo', sans-serif

  float: left
  margin-left: 25px
  float: right
  margin-right: 25px

  margin: 30px auto
  width: 350px
  height: 410px
    margin: 0 auto
  width: 350px
  height: 400px
  background-color: #3C9BDC
  height: 300px
  height: 50px
  position: relative
  z-index: 10
  border-bottom: 1px solid #1993C3
  text-align: center
  line-height: 50px
  font-size: 14px
    content: ""
    position: absolute
    z-index: -1
    top: 51px
    left: 0
    border-bottom: 1px solid #67B0E6
    width: 100%
    display: inline
  @extend .header
  border-top: 1px solid #1993C3
  border-bottom: 0
    top: 0

  counter-reset: item 26
.days.days-previous-month li:before
  content: ''
  counter-reset: item
.days li
  display: block
.days li:before
  content: counter(item)
  counter-increment: item
  display: block
ul, ol
  font-size: 14px
    width: 50px
    height: 50px
    float: left
    text-align: center
    font-size: 12px
    line-height: 50px
    box-sizing: border-box
    user-select: none
    cursor: pointer
      background-color: #368EC9
      border-top: 1px solid #2774A5
      border-left: 1px solid #2774A5
      border-right: 1px solid #2774A5
      border-bottom: 1px solid #86C3EA
      border-radius: 3px
.passed, .weekdays
  color: #7DBDE9
              var daysInMonth = {
var today = new Date();
var dayToday = today.getDate() - 1;
var thisMonth = today.getMonth();
var lastMonth = thisMonth == 0 ? 11 : thisMonth - 1;

var firstDayOfThisMonth = new Date(today.getFullYear(), thisMonth, 1).getDay();

var lastMonthList = document.querySelector('.days-previous-month');
for(var i = 0; i < firstDayOfThisMonth; i++) {
  var li = document.createElement('li');

var thisMonthList = document.querySelector('.days-this-month');
for(var i = 0; i < daysInMonth[thisMonth]; i++) {
  var li = document.createElement('li');
  var className = i >= dayToday ? 'future' : 'passed';
🕑 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.
Loading ..................