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

              
                .pricing.animated.swing
 .thumbnail.animated.pulse.infinite
  .fa.fa-paper-plane
 .title
  Paper Package
 .content
  .sub-title
   $69
   %i per year
  %ul
   %li
    .fa.fa-check
    Complete Access To All Themes
   %li
    .fa.fa-check
    Perpetual Theme Updates
   %li
    .fa.fa-check
    Premium Technical Support
   %li
    .fa.fa-close
    Complete Access To All Plugins
   %li
    .fa.fa-close
    Layered Photoshop Files
   %li
    .fa.fa-close
    No Yearly Fees
  %a{:href => "https://www.elegantthemes.com/cgi-bin/members/register.cgi?sub=16"}
   Sign Up
 .clickMe
  Click
              
            
!

CSS

              
                @accent: #3498db;
@accent_hover: #2980b9;

body {
  background: #DF4F32 url("https://33.media.tumblr.com/53b1b2ec56944c977cdd7ee10a9b4ba4/tumblr_n8zm0yzydj1st5lhmo1_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";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  &::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    background: #DF4F32; /* IE Fallback */
    background: rgba(44, 62, 80,.9);
    width: 100%;
    height: 100%;
  }
}

.pricing {
  position: absolute;
  background: @accent;
  width: 280px;
  top: 50%;
  left: 50%;
  margin: -117px 0 0 -140px;
  padding: 40px 0 20px;
  color: #fff;
  -webkit-box-shadow: 0 0 3px rgba(0,0,0,.3);
     -moz-box-shadow: 0 0 3px rgba(0,0,0,.3);
          box-shadow: 0 0 3px rgba(0,0,0,.3);
  & .thumbnail {
    background: #fff; /* IE Fall */
    background: rgba(255,255,255,.2);
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    -webkit-border-radius: 100%;
       -moz-border-radius: 100%;
            border-radius: 100%;
    font-size: 36px;
    line-height: 90px;
    text-align: center;
  }
  & .title {
    cursor: pointer;
    background: @accent_hover;
    margin: 40px 0 0;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
  }
  & .content {
    display: none;
    & .sub-title {
      background: #eee;
      padding: 10px;
      color: #666;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
    }
    & ul {
      list-style: none;
      background: #fff;
      margin: 0;
      padding: 0;
      color: #666;
      font-size: 14px;
      & li {
        padding: 10px 20px;
        &:nth-child(2n) {
          background: #f3f3f3;
        }
        & .fa {
          width: 16px;
          margin-right: 10px;
          text-align: center;
        }
        & .fa-check {
          color: #2ecc71;
        }
        & .fa-close {
          color: #e74c3c;
        }
      }
    }
    & a {
      display: block;
      background: @accent_hover;
      max-width: 80px;
      margin: 0 auto;
      margin-top: 20px;
      padding: 10px 15px;
      color: #fff;
      font-size: 18px;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      -webkit-transition: 0.2s linear;
         -moz-transition: 0.2s linear;
          -ms-transition: 0.2s linear;
           -o-transition: 0.2s linear;
              transition: 0.2s linear;
      &:hover {
        background: #34495e; /* IE Fallback */
        background: rgba(52,73,94,.7);
      }
    }
  }
}

.clickMe {
  background: #fff; /* IE Fallback */
  background: rgba(255,255,255,.8);
  position: absolute;
  top: 180px;
  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

              
                $( ".title" ).click(function() {
  $(".content").slideToggle();
});
              
            
!
999px

Console