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.

          p.StepLeft__Number.StepLeft--First.StepLeft--SubHighlight  1    
          p.StepLeft__Descr Enter Basic Information
          p.StepLeft__Number.StepLeft--SubHighlight  2  
          p.StepLeft__Descr Select Toppings
          p.StepLeft__Number.StepLeft--SubHighlight  3     
          p.StepLeft__Descr Choose Sizes
          p.StepLeft__Number.StepLeft--Highlight  4  
          p.StepLeft__Descr Extra Folk Songs
          p.StepLeft__Number  5 
          p.StepLeft__Descr.StepLeft__Descr--disabled Something Else Here 
          p.StepLeft__Number  6  
          p.StepLeft__Descr.StepLeft__Descr--disabled Shipping Info

              @import 'bourbon';

@mixin breakpoint($point) { @media screen and (min-width: $point) { @content; } }

$step-number: 6;
$step-black: #111;
$step-gray: #c1c0c1;
$step-action: #281e5d;
$step-darkgray: #dad9db;
$step-bg: #f9f9f9;
$step-item-bg: #fff;
$small-screen: 40em;
$medium-screen: 60em;
$large-screen: 90em;

.StepLeft {
  font-family: $verdana;
  overflow-x: scroll;
  background-color: $step-bg;
  border-top: 1px solid $step-darkgray;
  border-bottom: 1px solid $step-darkgray;

.StepLeft__List {
  @include clearfix();
  position: relative;
  margin: 0 auto;
  min-width: $small-screen;
  max-width: $small-screen;
  overflow-x: scroll;
  z-index: 18;

.StepLeft__Step {
  @include padding(em(33px) em(11px));
  width: percentage(1 / $step-number);
  display: inline-block;
  box-sizing: border-box;
  float: left;

  text-align: center;

.StepLeft__Number {
  @include position(relative);
  @include margin(0 null 11px null);
  @include size(em(55px));
  padding: 1.135em;
  box-sizing: border-box;
  display: inline-block;
  font-size: rem(11px);

  border: 1px solid $step-gray;
  background-color: $step-item-bg;
  color: $step-gray;
  border-radius: 100%;

  &:after {
    @include position(absolute, 50% 100% null null);
    @include transition(0.5s);
    @include size(300% 2px);
    content: '';
    display: inline-block;
    z-index: -3;
    background-color: $step-gray;

    @include breakpoint($medium-screen) { width: 310% }

    @include breakpoint($large-screen) { width: 340% }

.StepLeft--SubHighlight { cursor: pointer; }

.StepLeft--Highlight {
  border: 0px solid $step-action;
  background-color: $step-action;
  color: $step-item-bg;

.StepLeft--SubHighlight {
  border: 1px solid $step-action;
  color: $step-action;

.StepLeft__Descr {
  margin-top: 0;

  color: $step-black;
  font-size: 0.87rem;
  line-height: 1.15rem;

.StepLeft__Descr--disabled { color: $step-darkgray; }

.StepLeft--SubHighlight:after {
  @include position(absolute, 47% 90% null null);
  height: 5px;
  z-index: -2;

  background-color: $step-action;

.StepLeft--First:after {
  @include position(absolute, 41% 90% null null);
  @include size(280% 11px);
  z-index: -1;

  background-color: $step-bg;
              // For looking through previously clicked items in the Step-left bar

var SL = {
  container: '.StepLeft',
  list: '.StepLeft__List',
  step: '.StepLeft__Step',
  highlight: '.StepLeft--Highlight',
  subhighlight: '.StepLeft--SubHighlight'

// Function for animating the StepLeft and centering the selected item on Tablet screens and smaller
function GoToSelectedStep(animate) {
  if ($(window).width() < 640 && $(SL.container).length ) {

    var SL_container = $(SL.container),
        window_width = $(window).width(),
        selected_step = SL_container.find(SL.highlight).parent(SL.step),
        step_width = selected_step.width(),
        gap_width = ((window_width - step_width) / 2),
        side_step_width = $(selected_step).offset().left - $(selected_step).parent().offset().left - $(selected_step).parent().scrollLeft(),
        selected_offset = side_step_width - (gap_width - 20);

    SL_container.animate({ scrollLeft: selected_offset }, 300);

GoToSelectedStep(); // Automatically centers the highlighted number on page load

$('.StepLeft__Number').on('click', function(){

  if ($(this).hasClass('StepLeft--SubHighlight')) {
    var StepLeft_container = $(this).closest(SL.list),
      StepLeft_selected = StepLeft_container.find(SL.highlight);


  GoToSelectedStep(); // After selecting a new item, it's centered on the screen


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.


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