css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <div class="container">
  <div class="row">
    <div class="col-xs-12">
      
      <div class="h5">Basic</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Clickable</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Numbered - <code>.numbered</code></div>
      <div class="rl-multi-step numbered">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Checked - <code>.checked</code></div>
      <div class="rl-multi-step checked">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active completed">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item active completed">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active completed">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Validation</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Subtitle</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
              <p class="rl-item-subtitle">Information about this step.</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
              <p class="rl-item-subtitle">Information about this step.</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
              <p class="rl-item-subtitle">Information about this step.</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Badges</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
              <p class="badge">10</p>
            </div>
          </li>
          <li class="rl-multi-step-item active">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
              <p class="badge">2</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
      <div class="h5">Loading Step</div>
      <div class="rl-multi-step">
        <ul class="rl-multi-step-list">
          <li class="rl-multi-step-item active current rl-multi-step-loading">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step One</p>
            </div>
          </li>
          <li class="rl-multi-step-item active rl-multi-step-loading">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Two</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error rl-multi-step-loading">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Three</p>
            </div>
          </li>
          <li class="rl-multi-step-item active error rl-multi-step-loading">
            <div class="rl-item-wrap">
              <p class="rl-item-title">Step Four</p>
            </div>
          </li>
        </ul>
      </div>
      
    </div>
  </div>
</div>
            
          
!
            
              // Variables
@base-margin: 1em;
@base-padding: .5em;
@base-border-radius: .2em;
@screen-xs-max: 786px;

@text-color: #263238;
@text-color-inverted: #fff;
@clickable-hover: #d8f1ff;

@brand-primary: #4285f4;
@brand-success: #54b948;
@brand-danger: #d50000;

@gray-dark: #333;
@gray-light: #999;
@gray-lighter: #eee;

@icon-danger: '\f071';
@icon-success: '\f00c';

@animation-time: 0.5s;


// Multi-step code

.rl-multi-step {
	margin: (@base-margin / 2) 0;
}

// Setting up flexbox for list
.rl-multi-step-list {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	list-style-type: none;
	padding: 0;
	.rl-multi-step-item:first-child { margin-left: 0; }
	.rl-multi-step-item:last-child { margin-right: 0; }
}

// Defaults for each 'step'
.rl-multi-step-item {
	position: relative;
	width: 100%;
	margin: 0 (@base-margin / 6);
	@media only screen and (max-width: @screen-xs-max) {
		margin: 0 (@base-margin / 6);
	}
	z-index: 2;
	border-radius: @base-border-radius;

	// Step title and subtitle defaults
	.rl-item-title,
	.rl-item-subtitle {
		position: relative;
		margin: 0;
		z-index: 2;
	}
	@media only screen and (max-width: @screen-xs-max) {
		.rl-item-subtitle { display: none; }
	}
	.rl-item-title {
		color: @brand-primary;
		font-weight: 600;
		margin: 0;
	}

	// Different step states [ active, current, completed, error]
	&.active:hover { cursor: pointer; }
	&.current .rl-item-title,
	&.current .rl-item-subtitle {
		color: @text-color-inverted;
	}
	&.active.current:hover .rl-item-title,
	&.active.current:hover .rl-item-subtitle {
		color: @brand-primary;
	}
	&.error:after {
		position: absolute;
		top: 50%;
		z-index: 2;
		transform: translateY(-50%);
		right: .5em;
		font-family: FontAwesome;
		content: @icon-danger;
		color: @brand-danger;
	}
}

// Creates the 'arrow' effect / background colors
.rl-item-wrap {
	padding: @base-padding;
	position: relative;
	height: 100%;
	&:before, &:after {
		position: absolute;
		left: 0;
		content: ' ';
		width: 100%;
		height: 50.5%;
		z-index: 1;
		background-color: @gray-lighter;
	}

	// Top of the arrow
	&:before {
		top: 0;
		transform: skew(20deg);
		border-radius: .2em .2em 0 0;
	}
	// Bottom of the arrow
	&:after {
		bottom: 0;
		transform: skew(-20deg);
		border-radius: 0 0 .2em .2em;
	}
}

// Changing arrow colors based on state
.current .rl-item-wrap:before,
.current .rl-item-wrap:after {
	background-color: @brand-primary;
}

.active:hover .rl-item-wrap:before,
.active:hover .rl-item-wrap:after {
	background-color: @clickable-hover;
}

.rl-multi-step-item.error {
	.rl-item-title,
	.rl-item-subtitle {
		padding-right: (@base-padding * 2);
	}
}

// Changing step styles based on :first/:last step
.rl-multi-step-item:first-child .rl-item-wrap,
.rl-multi-step-item:last-child .rl-item-wrap {
	width: 100%;
	border-radius: @base-border-radius;
	&:before, &:after { width: 50%; }
}

// If first step, only point on the right
.rl-multi-step-item:first-child .rl-item-wrap {
	background: linear-gradient(to right, @gray-lighter 95%, transparent 5%);
	&:before, &:after { left: 50%; }
}
.active.rl-multi-step-item:first-child:hover .rl-item-wrap {
	background: linear-gradient(to right, @clickable-hover 95%, transparent 5%);
}
.current.rl-multi-step-item:first-child .rl-item-wrap {
	background: linear-gradient(to right, @brand-primary 95%, transparent 5%);
}

// If last step, only indent on the left
.rl-multi-step-item:last-child .rl-item-wrap {
	background: linear-gradient(to left, @gray-lighter 95%, transparent 5%);
	&:before, &:after { right: 50%; }
}
.active.rl-multi-step-item:last-child:hover .rl-item-wrap {
	background: linear-gradient(to left, @clickable-hover 95%, transparent 5%);
}
.current.rl-multi-step-item:last-child .rl-item-wrap {
	background: linear-gradient(to left, @brand-primary 95%, transparent 5%);
}

// MSI Checked & Complete
.checked .rl-multi-step-item.completed:after {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	right: .5em;
	font-family: FontAwesome;
	content: @icon-success;
	color: @brand-success;
}

// MSI Numbered
.numbered .rl-multi-step-item {
	counter-increment: step-counter;
	.rl-item-wrap { padding-left: (@base-padding * 5); }

	// Adds number to step
	&:before {
		content: counter(step-counter);
		position: absolute;
		top: 50%;
		left: .75em;
		transform: translateY(-50%);
		min-width: 1.65em;
		padding: (@base-padding / 2) @base-padding;
		z-index: 2;
		font-size: .85em;
		background-color: @gray-light;
		color: @text-color-inverted;
		font-weight: 600;
		text-align: center;
		border-radius: @base-border-radius;
	}
}

// MSI w/ badge counts
.rl-item-wrap .badge {
	position: absolute;
	right: .5em;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}
.error .rl-item-wrap .badge {
	right: 2em;
	~ .rl-item-title,
	~ .rl-item-subtitle {
		padding-right: 3em;
	}
}

// MSI CSS Loader
.rl-multi-step-loading { opacity: .75; }

.current.rl-multi-step-loading:before {
	border-color: @text-color-inverted;
	border-top-color: transparent;
	opacity: 1;
}

.rl-item-wrap .busy { display: none; }

.busy-css {
	z-index: 3;
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -.5em;
	margin-left: -.5em;
	border-radius: 50%;
	width: 1em;
	height: 1em;
	border: .25em solid @gray-dark;
	border-top-color: transparent;
	animation: spin (@animation-time * 2) infinite linear;
}

.rl-multi-step-loading:before {
	.busy-css;
	opacity: 1;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
            
          
!
999px
🕑 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.
Loading ..................

Console