Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- basic -->
<div class="container">
  <div class="pricings">
    <div class="pricings__top pricings__top--free">
      <div class="pricing-tag pricing-tag--free">Free</div>
      <span class="top-header">Basic Plan</span>
      <div class="hr"></div>
      <span class="price"><sup><small>$</small></sup>0.99</span>
      <span class="per-month">Per Month</span>
     </div>
    <div class="pricings__bottom">
      <!--   Icons     -->
      <div class="logo-shaped logo-shaped--basic"><i class="fa fa-arrow-down" aria-hidden="true"></i></div>
      <ul class="props">
        <li class="props__item props__item--basic">Email Previews</li>
        <li class="props__item props__item--basic">10 GB Storage</li>
        <li class="props__item props__item--basic">Non-Responsive</li>
      </ul>
      <a href="#0" class="actBtn red">Sign up Now</a>
     </div>
  </div>
<!--  premium  -->
  <div class="pricings">
    <div class="pricings__top pricings__top--premium">
      <div class="pricing-tag pricing-tag--premium">Premium</div>
      <span class="top-header">Premium</span>
      <div class="hr"></div>
      <span class="price"><sup><small>$</small></sup>145</span>
      <span class="per-month">Per Month</span>
    </div>
    <div class="pricings__bottom">
<!--       <div class="logo-shaped logo-shaped--premium"><i class="fa fa-arrow-down" aria-hidden="true"></i></div> -->
       <div class="hex">
        <div class="hex_logo"><i class="fa fa-arrow-down" aria-hidden="true"></i></div>
      </div>
       <ul class="props">
        <li class="props__item props__item--premium">Email Previews</li>
        <li class="props__item props__item--premium">10 GB Storage</li>
        <li class="props__item  props__item--premium">100 Portfolio Items</li>
         <li class="props__item props__item--premium">Inter Active Design</li>
         <li class="props__item props__item--premium">Responsive</li>
      </ul>
      <a href="#0" class="actBtn green">Sign up Now</a>
    </div>
  </div>
<!--  standard  -->
  <div class="pricings">
    <div class="pricings__top pricings__top--standard">
      <div class="pricing-tag pricing-tag--standard">Standard</div>
      <span class="top-header">Standard</span>
      <div class="hr"></div>
      <span class="price"><sup><small>$</small></sup>50</span>
      <span class="per-month">Per Month</span>
    </div>
    <div class="pricings__bottom">
      <div class="logo-shaped logo-shaped--standard"><i class="fa fa-arrow-down" aria-hidden="true"></i></div>
       <ul class="props">
        <li class="props__item props__item--standard">Email Previews</li>
        <li class="props__item props__item--standard">10 GB Storage</li>
        <li class="props__item props__item--standard">Non-Responsive</li>
      </ul>
      <a href="#0" class="actBtn blue">Sign up Now</a>
    </div>
  </div>
</div>
              
            
!

CSS

              
                //  variables
$body-color:#DCDCDC;
$basic-bg:#DC4C40;
$premium-bg:#36CB72;
$standard-bg:#247696;
$info-bg:#EEEEEE;
$header_font-size:17px;
// mixins
@mixin font_style($size, $num) {
  font-size: $size;
  font-weight: $num;
}

@mixin border_style($size, $type, $color) {
  border-bottom: $size $type $color;
}

@mixin box-shadow_style($w, $h, $blur, $expand, $color) {
  box-shadow: $w $h $blur $expand $color;
}

;
// placeholders
%list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}

// base 
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: $body-color;
}

ul {
  @extend %list-unstyled;
}

span {
  display: block;
}

small {
  @include font_style(.5em, 100);
  margin: 0 5px;
}

// layout
.container {
  min-width: 745px;
  max-width: 840px;
  margin: 4em auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.pricings {
  text-align: center;
  width: 240px;
  max-width: 100%;
  @include box-shadow_style(0, 2px, 3px, 1px, #b5b5b5);
}

.pricings__top,
.pricings__bottom {
  padding: 1.6em 2.3em;
  // border:1px solid red;
}

.pricings__top {
  position: relative;
  color: #fff;
  min-height: 190px;
  overflow: hidden;
  &--free {
    background: $basic-bg;
  }
  &--premium {
    background: $premium-bg;
  }
  &--standard {
    background: $standard-bg;
  }
  .top-header {
    @include font_style(20px, 600);
    padding: 0 30px 7px;
    margin-bottom: 3px;
    @include border_style(1px, solid, rgba(255, 255, 255, 0.5));
  }
  .price {
    @include font_style(3em, 400);
  }
  .per-month {
    @include font_style(17px, 300);
  }
}

//  pricing tags
.pricing-tag {
  position: absolute;
  height: 40px;
  width: 130px;
  line-height: 40px;
  left: 0;
  top: 0;
  transform: rotate(-45deg) translate(-30px, -20px);
  @include font_style(14px, 400);
  &--free {
    background-color: #35495D;
  }
  &--premium {
    background-color: #EE682D;
  }
  &--standard {
    background-color: #EFC32B;
  }
}

// logo geometric shapes only for basic and standard
.logo-shaped {
  position: absolute;
  left: 50%;
  top: -25px;
  color: #fff;
  height: 50px;
  width: 50px;
  line-height: 50px;
  border: 3px solid $info-bg;
  transform: translateX(-50%);
  z-index: 55;
  &--basic {
    border-radius: 50%;
    background-color: $basic-bg;
  }
  &--standard {
    height: 50px;
    width: 50px;
    background: red;
    background-color: $standard-bg;
  }
}

// logo shaped for premium
.hex {
  position: absolute;
  left: 50%;
  top: -15px;
  color: #fff;
  height: 30px;
  width: 50px;
  background-color: $info-bg;
  line-height: 30px;
  transform: translateX(-50%);
  &:before,
  &:after {
    position: absolute;
    left: 0;
    content: '';
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
  }
  &:before {
    border-top: 15px solid $info-bg;
    top: 30px;
  }
  &:after {
    border-bottom: 15px solid $info-bg;
    bottom: 30px;
  }
  .hex_logo {
    position: absolute;
    height: 26px;
    width: 43px;
    background: $premium-bg;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    // transform:scale(.9);
    z-index: 100;
    &:before,
    &:after {
      position: absolute;
      left: 0;
      content: '';
      border-left: 21.5px solid transparent;
      border-right: 21.5px solid transparent;
    }
    &:before {
      border-top: 13px solid $premium-bg;
      top: 26px;
    }
    &:after {
      border-bottom: 13px solid $premium-bg;
      bottom: 26px;
    }
  }
}

//  pricings bottom
.pricings__bottom {
  position: relative;
  background: $info-bg;
  .props {
    margin-top: 10px;
  }
  .props__item {
    @include font_style(14px, 400);
    padding: 15px 0;
    @include border_style(1px, solid, #fff);
    &:before {
      margin-right: 10px;
    }
    &--basic {
      color: $basic-bg;
      &:before {
        content: "\f00c";
        font-family: FontAwesome;
        // font-size:12px;
      }
    }
    &--premium {
      color: $premium-bg;
      &:before {
        content: "\f046";
        font-family: FontAwesome;
      }
    }
    &--standard {
      color: $standard-bg;
      &:before {
        content: "\f00c";
        font-family: FontAwesome;
      }
    }
  }
  .actBtn {
    display: block;
    color: #fff;
    padding: 9px 7px;
    text-decoration: none;
    margin-top: 1em;
    transition: all 300ms ease;
    &:hover {
      position: relative;
      top: -3px;
      @include box-shadow_style(0, 3px, 3px, 1px, #ccc);
    }
  }
  .red {
    background: $basic-bg;
  }
  .green {
    background: $premium-bg;
  }
  .blue {
    background: $standard-bg;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console