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="bar-1">
  <span class="bar-meter" style="width:92%"></span>
  completeness: 92%
</div>
<div class="bar-2">
  <span class="bar-meter" style="width:74%"></span>
  completeness: 74%
</div>
<div class="bar-3">
  <span class="bar-meter" style="width:38%"></span>
  completeness: 38%
</div>
            
          
!
            
              body {
  background:#e5e5e5; 
  color:#555; 
  font-family:open sans;}

// mixin definition for bar-wrapper, actual dynamic bar and text
@mixin bar($size:17px, $bar-color:#5bb75b, $text-color:#fff, $text-shadow-color:#444, $bg-color:#ddd) {
  // wrapper properties
  border-radius: 5px;
  position:relative; 
  background:$bg-color; 
  border: solid 1px #999; 
  height:$size; 
  box-shadow: inset 0 0 2px 0 rgba(0,0,0,0.2); 
  cursor:pointer;
  // text properties
  text-shadow: 
    1px 1px 1px $text-shadow-color, -1px -1px 1px $text-shadow-color,
    1px -1px 1px $text-shadow-color, -1px 1px 1px $text-shadow-color, 
    1px 1px 2px $text-shadow-color, 1px 2px 2px $text-shadow-color,;
  font-family: verdana; 
  position:relative; 
  z-index:2; 
  color:$text-color; 
  white-space:nowrap; 
  font-size:$size/1.6; 
  display:block; 
  text-align:center; 
  letter-spacing:0.5px; 
  line-height:1.7;
  
  // actual dynamic bar
  .bar-meter {background-image:linear-gradient(lighten($bar-color,7), darken($bar-color,7));
    border-radius:5px 0 0 5px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    border:solid 1px rgba(0,0,0,0.35); 
    border-right: solid 1px rgba(0,0,0,0.45); 
    border-bottom:solid 1px rgba(0,0,0,0.45); 
    display:block; 
    height:100%; 
    position:absolute; 
    left:0; 
    top:0; 
    z-index:-1;
  }
  // stripes on dynamic bar
  .bar-meter:before {
    background-image: linear-gradient(-45deg, 
      rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 2%, 
      transparent 2%, transparent 50%, 
      rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2) 52%, 
      transparent 52%, transparent); 
    background-size:16px 16px; 
    content:""; 
    position:absolute; 
    left:0; 
    top:0; 
    width:100%; 
    height:100%; 
    display:block; 
    z-index:3;
  }
}

// individual bars
.bar-1 {@include bar(36px, #5bb75b, #fff, #333, #ccc); 
  margin-bottom:24px;}
.bar-2 {@include bar(28px, #49afcd, #fff, #333, #ccc); 
  margin-bottom:24px;}
.bar-3 {@include bar(18px, #f5a100, #fff, #333, #ccc);}

            
          
!
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