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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                .info
 %h1 Pricing Table
 %span
  Made with
  %i.fa.fa-heart.animated.infinite.pulse
  by
  %a{:href => "http://andytran.me"} Andy Tran
  .spoilers
   (3 Tables!) | (Active Class!) | (Very Swag!)
.container
 .column
  .pricing-table
   %h2.title Hatchling Plan
   .price
    %span $
    %span 3.96
    %span / month
   %ul
    %li
     .fa.fa-check
     Single Domain
    %li
     .fa.fa-check
     Unlimited Disk Space
    %li
     .fa.fa-check
     Unlimited Bandwidth
    %li
     .fa.fa-check
     Shared SSL Certificate
    %li
     .fa.fa-times
     FREE Toll Free Number
   %a.button{:href => '#'} Sign Up Now
 .column
  .pricing-table.best
   %h2.title Baby Plan
   .price
    %span $
    %span 6.36
    %span / month
   %ul
    %li
     .fa.fa-check
     Unlimited Domain
    %li
     .fa.fa-check
     Unlimited Disk Space
    %li
     .fa.fa-check
     Unlimited Bandwidth
    %li
     .fa.fa-check
     Shared SSL Certificate
    %li
     .fa.fa-times
     FREE Toll Free Number
   %a.button{:href => '#'} Sign Up Now
 .column
  .pricing-table
   %h2.title Business Plan
   .price
    %span $
    %span 10.36
    %span / month
   %ul
    %li
     .fa.fa-check
     Unlimited Domain
    %li
     .fa.fa-check
     Unlimited Disk Space
    %li
     .fa.fa-check
     Unlimited Bandwidth
    %li
     .fa.fa-check
     FREE Priate SSL &amp; IP
    %li
     .fa.fa-check
     FREE Toll Free Number
   %a.button{:href => '#'} Sign Up Now
              
            
!

CSS

              
                @import 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-97/variables.less';
@import 'https://s3-us-west-2.amazonaws.com/s.cdpn.io/169963/mixins.less';
@accent: #2ecc71;
body {
  background: #e9e9e9;
  font-family: 'Roboto', sans-serif;
  text-align: center;
  .font-smoothing;
}

.container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  .column {
    width: 33%;
    padding: 0 15px;
    .box-size;
    float: left;
    &:nth-child(2) {
      .pricing-table {
        -webkit-animation-duration: 1.5s;
        -moz-animation-duration: 1.5s;
        animation-duration: 1.5s;
      }
    }
    &:nth-child(3) {
      .pricing-table {
        -webkit-animation-duration: 2s;
        -moz-animation-duration: 2s;
        animation-duration: 2s;
      }
    }
  }
  &:before,
  &:after {
    content: '';
    display: block;
    clear: both;
  }
}

.pricing-table {
  position: relative;
  background: @gray;
  margin: 0 auto;
  .border-radius;
  .transitions;
  -webkit-animation: 1s slideDown ease;
  overflow: hidden;
  .title {
    margin: 0;
    padding: 15px 5px;
    color: @white;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
  }
  .price {
    background: fade(@black, 10%);
    padding: 30px 10px;
    color: @white;
    span {
      display: inline-block;
      font-size: 14px;
      font-weight: 600;
      &:nth-child(2) {
        font-size: 48px;
      }
    }
  }
  ul {
    background: @white;
    margin: 0;
    padding: 0;
    color: @gray;
    font-size: 14px;
    text-align: left;
    li {
      padding: 15px 30px;
      .fa {
        margin: 0 11px 0 0;
      }
      &:nth-child(2n) {
        background: fade(@black, 5%);
      }
    }
  }
  .button {
    display: block;
    background: fade(@black, 10%);
    margin: 15px;
    padding: 15px;
    .border-radius;
    color: @white;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
  }
  &.best {
    background: @accent;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
  }
}

.info {
  width: 300px;
  margin: 25px auto 60px;
  text-align: center;
  h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 400;
    color: @dark_gray;
  }
  span {
    color: @gray;
    font-size: 12px;
    a {
      color: @black;
      text-decoration: none;
    }
    .fa {
      color: @accent;
    }
    .spoilers {
      color: @light_gray;
      margin-top: 5px;
      font-size: 10px;
    }
  }
}

@-webkit-keyframes slideDown {
  0% { opacity: 0; top: -60px; }
  50% { top: 10px; }
  100% { opacity: 1; top: 0; }
}
              
            
!

JS

              
                
              
            
!
999px

Console