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

              
                .planContainer
  .plan
    .titleContainer
      .title Hobby
      .price
        p $6 
        span /mo
    .infoContainer
      .p.desc #[em Great for beginners and hobbyists.]
      ul.features
        li #[strong 2] Users
        li #[strong 5] Projects
        li #[strong 10GB] Storage
        li #[strong 100GB] Bandwidth
      a.selectPlan Select Plan
  .plan
    .titleContainer
      .title Developer
      .price
        p $12 
        span /mo
    .infoContainer
      .p.desc #[em Recommended for developers and experienced hobbyists.]
      ul.features
        li #[strong 5] Users
        li #[strong 15] Projects
        li #[strong 50GB] Storage
        li #[strong 500GB] Bandwidth
        li #[strong 1] Free Domain
      a.selectPlan Select Plan
  .plan
    .titleContainer
      .title BUSINESS
      .price
        p $20
        span /mo
    .infoContainer
      .p.desc #[em Ideal for small businesses and experienced developers.]
      ul.features
        li #[strong 20] Users
        li #[strong Unlimited] Projects
        li #[strong 150GB] Storage
        li #[strong 1TB] Bandwidth
        li #[strong 2] Free Domains
      a.selectPlan Select Plan
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800');

$accent-color: #9b59b6;
$text-color: #2d3b48;
$plan-padding: 1em;
$plan-margin: 1em;
$background: #efefef;
$title-size: 1.7em;
$price-size: 1.45em;
$feature-size: 1em;

body { 
  background-color: $background;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  margin: 0;
  display: flex;   
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.planContainer {
  display: flex;
  flex-wrap: wrap;
  margin: $plan-margin;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.plan {
  background: white;
  width: 20em;
  box-sizing: border-box;
  text-align: center;
  margin: $plan-margin;
  margin-bottom: $plan-margin;
  .titleContainer {
    background-color: $accent-color;
    padding: $plan-padding*1.4;
    .title {
      font-size: $title-size;
      text-transform: uppercase;
      color: white;
      font-weight: 700;
    }
    .price {
      font-size: $price-size;
      padding-top: $plan-padding*1;
      padding-bottom: $plan-padding*0.25;
      color: white;
      font-weight: 500;
      margin-top: 0;
      display: inline-block;
      width: 80%;
      p {
        font-size: $price-size;
        display: inline-block;
        margin: 0;
      }
      span {
        font-size: $price-size*0.75;
        display: inline-block;
      }
    }
  }
  .infoContainer {
    padding: $plan-padding;
    color: $text-color;
    box-sizing: border-box;
    .desc {
      padding: $plan-padding 0;
      border-bottom: 2px solid $background;
      margin: 0 auto;
      width: 90%;
      em {
        font-size: $feature-size;
        font-weight: 500;
      }
    }
    .features {
      font-size: $feature-size;
      list-style: none;
      padding-left: 0;
      li { 
        padding: $plan-padding/2;
      }
    }
    .selectPlan {
      border: 2px solid $accent-color;
      padding: $plan-padding*0.75 $plan-padding;
      border-radius: $plan-padding*2.5;
      cursor: pointer;
      transition: all 0.25s;
      margin: $plan-margin auto;
      box-sizing: border-box;
      max-width: 70%;
      display: block;
      font-weight: 700;
      &:hover {
        background-color: $accent-color;
        color: white;
      }
    }
  }
}

@media screen and (max-width: 25em) {
  .planContainer {
    margin: 0;
    .plan {
      width: 100%;
      margin: $plan-margin 0;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console