octocatstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              .list.animated.tada
 %h1
  What To Do
  %a.add{:href => "#"}
   .fa.fa-plus
 %ul
  %li
   %a{:href => "#"}
    .fa.fa-check
   Bake a Cake for someone's birthday
  %li
   %a{:href => "#"}
    .fa.fa-check
   Go for a jog around the neighborhood
  %li
   %a{:href => "#"}
    .fa.fa-check
   Fix the leak on the roof
  %li
   %a{:href => "#"}
    .fa.fa-check
   Get a job by Sunday
  %li
   %a{:href => "#"}
    .fa.fa-check
   Help a friend fix the car
  .hoverMe
   Hover
            
          
!
            
              @accent: #1abc9c;
@accent_2: #2ecc71;
@accent_hover: #16a085;

body {
  background: #f7f7f7 url("http://38.media.tumblr.com/376a46baffe3444282f3b414a2fd0d46/tumblr_n9hxcf3Bm91st5lhmo1_1280.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  font-family: "Roboto";
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  &::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    background: #16a085; /* IE Fallback */
    background: rgba(22, 160, 133,.8);
    width: 100%;
    height: 100%;
  }
}

.list {
  position: absolute;
  width: 360px;
  top: 50%;
  left: 50%;
  margin: -122px 0 100px -180px;
  -webkit-box-shadow: 0 0 3px rgba(0,0,0,.1);
     -moz-box-shadow: 0 0 3px rgba(0,0,0,.1);
          box-shadow: 0 0 3px rgba(0,0,0,.1);
  & h1 {
    position: relative;
    background: @accent;
    color: #fff;
    margin: 0;
    padding: 10px 20px;
    font-family: "Roboto";
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 400;
    & a {
      position: absolute;
      top: 50%;
      right: 20px;
      background: #fff; /* IE Fallback */
      background: rgba(255,255,255,.15);
      width: 24px;
      height: 24px;
      margin: -12px 0 0 0;
      color: #fff;
      font-size: 14px;
      line-height: 24px;
      text-align: center;
      text-decoration: none;
      -webkit-transition: 0.3s linear;
         -moz-transition: 0.3s linear;
          -ms-transition: 0.3s linear;
           -o-transition: 0.3s linear;
              transition: 0.3s linear;
      &:hover {
        background: rgba(255,255,255,.2);
      }
    }
  }
  & ul {
    list-style: none;
    margin: 0;
    padding: 0;
    & li {
      background: #fff;
      height: 40px;
      color: #666;
      line-height: 40px;
      padding: 0 20px 0 0;
      & a {
        display: inline-block;
        background: @accent_2;
        width: 0px;
        height: 40px;
        margin-right: 16px;
        color: #fff;
        text-align: center;
        text-decoration: none;
        opacity: 0;
        -webkit-transition: 0.2s linear;
           -moz-transition: 0.2s linear;
            -ms-transition: 0.2s linear;
             -o-transition: 0.2s linear;
                transition: 0.2s linear;
      }
      &:nth-child(2n) {
        background: #f7f7f7;
      }
      &:hover a {
        width: 40px;
        opacity: 1;
      }
    }
  }
}

.hoverMe {
  background: #fff; /* IE Fallback */
  background: rgba(255,255,255,.8);
  position: absolute;
  top: 95px;
  left: -60px;
  padding: 5px 7px;
  -webkit-border-radius: 3px;
     -moz-border-radius: 3px;
          border-radius: 3px;
  color: @accent;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  &:before {
    content: '';
    position: absolute;
    top: 6px;
    right: -5px;
    width: 0px;
    height: 0px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5 solid #fff; /* IE Fallback */
    border-left: 5px solid rgba(255,255,255,.8);
  }
}
            
          
!
            
              /* Add Randomized Reminder */
$( ".add" ).click(function(event) {
  var items = Array( "Say hi to everyone in the neighborhood.", "Go join the neighborhood clean up", "Spend the half the day cleaning my room", "Purchase pro on CodePen.io" );

  var item = items[Math.floor(Math.random()*items.length)];

  $("ul").add( "<li><a href='#'><div class='fa fa-check'></div></a> " + item + "</li>" ).fadeIn().appendTo("ul");
  shuffle(item);
});

/* Closes Reminder when Check Button is clicked*/
$( "ul > li > a" ).click(function() {
  $(this).parent( "li" ).slideUp(200);
});
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console