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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                .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
              
            
!

CSS

              
                @accent: #1abc9c;
@accent_2: #2ecc71;
@accent_hover: #16a085;

body {
  background: #f7f7f7 url("https://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);
  }
}
              
            
!

JS

              
                /* 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

Console