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.

              @import "compass/css3";

$track-w: 19em;
$track-h: 3em;
$track-r: 1.25em;

$thumb-w: 10.75em;
$thumb-h: 4em;
$thumb-r: 1.375em;
$thumb-br-in: .625em;
$thumb-br-out: .75em;

$diff-h: ($thumb-h - $track-h)/2;

@mixin track() {
  width: $track-w; height: $track-h;
  border-radius: $track-r;
  box-shadow: 0 1px 1px #b4c5ab, 
    inset 0 0 .5em  #4c9116, 
    inset 0 .25em .5em #4c9116, 
    inset 0 .5em 1em #4c9116, 
    inset 0 1px 1px #458507;
  background: #81c83a;

@mixin thumb() {
  box-sizing: border-box;
  border: solid .25em transparent;
  padding: .25em;
  width: $thumb-w; height: $thumb-h;
  border-radius: $thumb-r;
    inset 0 1px 1px rgba(#f7f7f7, .875), 
    inset 0 -1px 1px rgba(#bbb, .75);
    radial-gradient(#{at $thumb-w - 1.5*$thumb-r calc(50% - #{1.875*$thumb-r})}, #f7f8fa, transparent .625em), 
    radial-gradient(circle at $thumb-w - 1.5*$thumb-r 50%, 
        #afafaf, #9a9b9f $thumb-br-in, #dddee0 calc(#{$thumb-br-in} + 1px), 
        #dddee0 $thumb-br-out, rgba(#dddee0, 0) calc(#{$thumb-br-out} + 1px)), 
    linear-gradient(#9ea1a6, #fdfdfe) content-box, 
    linear-gradient(#fff, #9c9fa4) padding-box, 
    linear-gradient(#eee, #a4a7ab) border-box;
  background-size: 100% 225%, 100%, 100%, 100%, 100%;
  cursor: ew-resize;

html {
  height: 100%;
  background: radial-gradient(at 50% 0, #f7f7f7, #c0c0c0);

input[type='range'] {
  &::-webkit-slider-thumb {
    -webkit-appearance: none;
  position: absolute;
  top: 50%; left: 50%;
  border: solid 0 transparent;
  border-width: 0 $track-h/2;
  padding: 0;
  width: $track-w; height: 2*$track-h;
  border-radius: .25em;
  transform: translate(-50%, -50%);
  background: transparent;
  font-size: 1em;
  cursor: pointer;
  &::-webkit-slider-runnable-track {
    @include track();
  &::-moz-range-track {
    @include track();
  &::-ms-track {
    border: none;
    @include track();
    color: transparent;
  &::-webkit-slider-thumb {
    position: relative;
    margin-top: -$diff-h;
    @include thumb();
  &::-moz-range-thumb {
    @include thumb();
  &::-ms-thumb {
    @include thumb();
  &::-ms-fill-lower, &::-ms-tooltip {
    display: none;
  /deep/ #thumb, &::-webkit-slider-thumb {
    &:before {
      position: absolute;
      top: 50%; right: $thumb-r - $thumb-br-out;
      padding: $thumb-br-out - $thumb-br-in;
      width: 2*$thumb-br-out; height: 2*$thumb-br-out;
      border-radius: 50%;
      transform: translateY(-50%);
        radial-gradient(circle at 50% 10%, #f7f8fa, #9a9b9f) content-box, 
        linear-gradient(#ddd, #bbb);
      content: '';
  &:focus {
    outline: none;
    box-shadow: 0 0 .25em grey;
Loading ..................