cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <div class="plan blue"> 
  <header>
    <h2><span></span></h2>
  </header>
  <section class="offer">
    <p></p>
  </section>
  <section class="list"> 
<ul>
  <li></li>
  <li></li>
  <li></li>
</ul>  
  </section>
  <footer>
    <a href="#" class="button"></a>
  </footer>
  <div class="d-left"></div>
  <div class="d-bottom"></div>
</div>
<div class="plan green"> 
  <header>
    <h2><span></span></h2>
  </header>
  <section class="offer">
    <p></p>
  </section>
  <section class="list"> 
<ul>
  <li></li>
  <li></li>
  <li></li>
</ul>  
  </section>
  <footer>
    <a href="#" class="button"></a>
  </footer>
  <div class="d-left"></div>
  <div class="d-bottom"></div>
</div>
<div class="plan gold"> 
  <header>
    <h2><span></span></h2>
  </header>
  <section class="offer">
    <p></p>
  </section>
  <section class="list"> 
<ul>
  <li></li>
  <li></li>
  <li></li>
</ul>  
  </section>
  <footer>
    <a href="#" class="button"></a>
  </footer>
  <div class="d-left"></div>
  <div class="d-bottom"></div>
</div>

            
          
!
            
              @import "bourbon";

@import url(https://fonts.googleapis.com/css?family=Raleway:400,700,500,300);

$a:100%;
//Colors
$size-1:17em;
$size-2:$size-1/6.2;
$size-3:$size-2*1.6;
$size-4:$size-3*1.2;
$rad:2px; 
//Sizes
$c:#323232;
$color:lighten($c,2%);
$color-2:#f8f8f8;
$color-3:#dbe0e5;
$color-4:#4192D9;
$color-5:#fff;
$color-6:#ededed;
$color-7:#656b6e;
$color-8:#45BF55;
$color-9:#FFD420;
$color-10:#888792;

//Contents

// Plan 1
$company-name-1:'Company';
$company-name-2:'Name';

$plan-name:'Free Plan';

$list-item-1:'4 Social networks';
$list-item-2:'Statistics';
$list-item-3:'Manage your social feed';

$button-mention:'More';
 
// Plan 2
$b-plan-name:'$5/Month';

$b-list-item-1:'Any Social networks';
$b-list-item-2:'Statistics / 1 free domain';
$b-list-item-3:'All social options enabled';

// Plan 3
$c-plan-name:'$10/Month';

$c-list-item-1:'All social options enabled';
$c-list-item-2:'Up to 3 free domains';
$c-list-item-3:'Video chat + screen sharing';


*{
-webkit-font-smoothing:antialiased;
box-sizing:border-box;}
html,body{
width:100%;
height:100%;
padding:0;
margin:0;
}
body{
@include background(linear-gradient( #a9b5b9,  #959aaf) top left);
font-family:"Raleway",helvetica,sans-serif;
}
#container{
width:$size-1*3+2;
margin:4em auto;
}
.plan{
  width:$size-1;
  height:auto;
  background:$color-2;
  margin:.4em 0 .4em 1.4em;
  float:left;
  box-shadow:0 0 1em rgba(0,0,0,.15);
  header{
    height:$size-2;
    width:100%;
    display:block;
    background:$color;
    text-align:center;
    float:left;
    border-top-left-radius:$rad;
    border-top-right-radius:$rad;
    h2{
      color:$color-3;
      text-transform:uppercase;
      line-height:.2;
      font-weight:500;
      &:before{content:$company-name-1;}
      span{
        text-transform:capitalize;
        display:inline-block;
        color:$color-7;
        &:after{content:$company-name-2;}
      }
    }
  }//END header
  
  .offer{
    height:$size-3;
    width:100%;
    text-align:center;
    font-size:$size-1/9;
    line-height:2.4;
    float:left;
    text-transform:uppercase;
    font-weight:600;
  }//END offer
.list{
    width:100%;
    ul{
      list-style:none;
      padding:0;
      margin:0;
      display:block;
      width:$a;
      float:left;
      height:auto;
      overflow:hidden;
      background:$color-6;
      li{
        width:$a;
        display:block;  
        height:auto;
        padding:1.6em;
        text-align:center;
        box-shadow:inset 0 -.15em 0 rgba(0,0,0,.1);
        color:#888792;
      }
    }
  }//END list
  footer{
    display:block;
    float:left;
    height:$size-4*1.1;
    width:$a;
    background:$color-5;
    border-bottom:$size-4/9 solid $color;
      border-bottom-left-radius:$rad;
    border-bottom-right-radius:$rad;
    padding:1em; 
    .button{
      display:block;
      width:$size-4;
      margin:$size-2/22.85 auto;
      padding:$size-4/24; 
      text-align:center;
      text-decoration:none;
      font-size:1.85em;
      font-weight:400;
      border-radius:3px;
      color:$color-5;
      &:after{content:$button-mention}
      
    }
  }//END footer
 &.blue{ 
      background:$color-4;
      color:$color-5;
      p:after{content:$plan-name;}
      .list ul{
        li{
          &:nth-child(1):after{content:$list-item-1;}
          &:nth-child(2):after{content:$list-item-2;}
          &:nth-child(3):after{content:$list-item-3;}
        }
      }
    }
  &.green{
      background:$color-8;
      color:$color-5;
      p:after{content:$b-plan-name;}
      .list ul{      
        li{
          &:nth-child(1):after{content:$b-list-item-1;}
          &:nth-child(2):after{content:$b-list-item-2;}
          &:nth-child(3):after{content:$b-list-item-3;}
         }  
        }
       }
  &.gold{
    background:$color-9;
    color:$color-5;
    p:after{content:$c-plan-name;}
    .list ul{      
      li{
       &:nth-child(1):after{content:$c-list-item-1;}
       &:nth-child(2):after{content:$c-list-item-2;}
       &:nth-child(3):after{content:$c-list-item-3;}
      }  
    }
  }
}

.plan.blue{
  .button{
        background:$color-4 ;
   }
}
.plan.green{
  .button{
        background:$color-8;
   }
}
.plan.gold{
  .button{
        background:$color-9;
   }
}
 
.plan:before{
  content:'';
  display:block;
  height:$size-1*1.759;
  width:1em;
  position:absolute; 
  transform:skewY(-45deg);  
  margin:.4785em -.95em;
  border-radius:$rad;
  
  
}
.plan:after{
  content:'';
  display:block;
  height:1em;
  width:$size-1;
  background:darken($color,5%);
  position:absolute;
  transform:skewX(-43.5deg);
  margin:$size-1*1.758 -.48em;
  border-radius:$rad;
}

.blue:before{
 @include background(linear-gradient(
        darken($color,5%) 9.3%, 
        darken($color-4,5%) 9.4%,  
        darken($color-4,5%) 37.145%,  
        darken($color-6,5%) 37.145%,
        darken($color-6,5%) 51.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 51.7%,   
        darken($color-6,5%) 66.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 66.5%,
        darken($color-6,5%) 80.5%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-5,5%) 81% , 
        darken($color-5,5%) 98.6%, 
        darken($color,5%) 98.6% )); 
}


.green:before{
 @include background(linear-gradient(
      darken($color,5%) 9.3%, 
        darken($color-8,5%) 9.4%,  
        darken($color-8,5%) 37.145%,  
        darken($color-6,5%) 37.145%,
        darken($color-6,5%) 51.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 51.7%,   
        darken($color-6,5%) 66.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 66.5%,
        darken($color-6,5%) 80.5%,
        #cacaca 80.5%,  
        #cacaca 80.7%,  
        darken($color-5,5%) 81% , 
        darken($color-5,5%) 98.6%, 
        darken($color,5%) 98.6% ));
}

.gold:before{
 @include background(linear-gradient(
       darken($color,5%) 9.3%, 
        darken($color-9,5%) 9.4%,  
        darken($color-9,5%) 37.145%,  
        darken($color-6,5%) 37.145%,
        darken($color-6,5%) 51.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 51.7%,   
        darken($color-6,5%) 66.2%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-6,5%) 66.5%,
        darken($color-6,5%) 80.5%,
        #cacaca 51.2%,  
        #cacaca 51.7%,  
        darken($color-5,5%) 81% , 
        darken($color-5,5%) 98.6%, 
        darken($color,5%) 98.6% ));
}


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console