Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <ul class="chart">
	<li class="axis">
<div class="label">MVP</div>
<div class="label">All Star</div>
<div class="label">Slugger</div>
<div class="label">Rookie</div>
<div class="label">Triple A</div></li>
	<li class="bar teal" style="height: 95%;" title="95">
<div class="percent">95<span>%</span></div>
<div class="skill">Karate</div></li>
	<li class="bar salmon" style="height: 90%;" title="90">
<div class="percent">90<span>%</span></div>
<div class="skill">Taekwondo</div></li>
	<li class="bar peach" style="height: 80%;" title="80">
<div class="percent">80<span>%</span></div>
<div class="skill">Nunchucks</div></li>
	<li class="bar lime" style="height: 75%;" title="75">
<div class="percent">75<span>%</span></div>
<div class="skill">Bow Staff</div></li>
	<li class="bar grape" style="height: 40%;" title="40">
<div class="percent">40<span>%</span></div>
<div class="skill">Suplex</div></li>
              @import "compass/css3";



// Color Pallette
$orange:        #ff9e2c;
$gray:          #999;
$grayLight:     lighten($gray, 20%);
$teal:          #4ecdc4;
$salmon:        #ff6b6b;
$lime:          #97f464;
$peach:         lighten($orange, 20%);
$grape:         #ab64f4;

// Calculates REMs out of pixels
@mixin font-size($sizeValue: 16) {
  font-size: $sizeValue + px;
  font-size: ($sizeValue / 16) + rem;
// Media Queries
@mixin bp($point) {
  @if $point == ocean {
    @media (min-width: 1000px) { @content; }
  @else if $point == lake {
    @media (min-width: 700px) { @content; }

  body { font-family: 'Open Sans', sans-serif; }
.chart {
  clear: both;
  padding: 0;
  width: 100%;
  @include bp(lake) {
    background: url("") right top repeat-x;
	  height: 425px;
	  margin: 0 auto emCalc(-32px);
  li {
    display: block;
    height: 125px;
    padding: emCalc(25px) 0;
    position: relative;
    text-align: center;
    vertical-align: bottom;
    @include border-radius(4px 4px 0 0);
    @include box-shadow(inset 0 1px 0 0 rgba(255,255,255,.6));
    @include bp(lake) {
      display: inline-block;
      height: 425px;
	    margin: 0 1.8% 0 0;
	    width: 15%;
  .axis { 
    display: none;
    top: emCalc(-45px);
    width: 8%;
    @include bp(lake) {
      display: inline-block;
  .label {
    background: $grayLight;
    margin: -9px 0 71px 0;
  .percent {
    letter-spacing: -3px;
    opacity: .4;
    width: 100%;
    @include font-size(30);
    @include bp(lake) {
      position: absolute;
      @include font-size(62);
    span {
      @include font-size(30);
  .skill {
    font-weight: 800;
    opacity: .5;
    overflow: hidden;
    text-transform: uppercase;
    width: 100%;
    @include font-size(14);
    @include bp(lake) {
      bottom: 20px;
      position: absolute;
      @include font-size(16);
  .teal { 
    background: $teal;
    border: 1px solid $teal;
    @include background-image(linear-gradient(lighten($teal, 10%), $teal 70%));
  .salmon { 
    background: $salmon; 
    border: 1px solid $salmon;
    @include background-image(linear-gradient(lighten($salmon, 10%), $salmon 70%));
  .lime { 
    background: $lime;
    border: 1px solid $lime;
    @include background-image(linear-gradient(lighten($lime, 10%), $lime 70%));
  .peach { 
    background: $peach;
    border: 1px solid $peach;
    @include background-image(linear-gradient(lighten($peach, 10%), $peach 70%));
  .grape { 
    background: $grape;
    border: 1px solid $grape;
    @include background-image(linear-gradient(lighten($grape, 10%), $grape 70%));
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.