cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              doctype html
html lang="en"
  head
    meta charset="UTF-8"
      title Calendar
      link href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700" rel="stylesheet" type="text/css"
  body
    header role="banner"
      time
        | August
        em
          | 2013
      a href="#"
        | Add event
    section role="main"
      ul.m-box--weeks
        li Sun
        li Mon
        li Tue
        li Wed
        li Thu
        li Fri
        li Sat
      ul.m-box--date
        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
      ul.m-box--date
        li 4
        li 5
        li 6
        li.l-date--event data-event="15:00 - New Haircut"
          i.m-bullet--event>
          | 7
        li 8
        li 9
        li 10
      ul.m-box--date
        li 11
        li 12
        li 13
        li 14
        li 15
        li 16
        li 17
      ul.m-box--date
        li 18
        li 19
        li 20
        li 21
        li 22
        li 23
        li 24
      ul.m-box--date
        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

html
  background: #249991

body 
  margin: 5% auto 0
  width: 280px 

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

header 
  padding: 50px 0
  background: #4ecdc4 
  text-align: center 
  font-family: 'Roboto Condensed', sans-serif
  a 
    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
    &:hover
      background: #249991
      color: #ccc

[role="main"] 
  overflow: hidden 
  padding: 15px
  background: white 
  font-family: 'Helvetica'

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

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

.m-box--weeks 
  color: #e66b6b
  text-transform: uppercase 
  font-weight: bold 
  font-size: 10px

.m-box--date
  color: #555 
  font-size: 14px

.l-date--passed
  color: #bababa
  
.eventTip 
  position: absolute
  width: 150px
  left: 50%
  top: -125%
  margin-left: -75px
  background: #249991
  color: white
  &:before 
    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');
  EventTip.html(EventDescribe);
  $(this).append(EventTip);
});

$('.l-date--event').on('mouseleave', function(){
  $('.eventTip').remove();
});
            
          
!
999px
🕑 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 ..................

Console