Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <form class="container" action="">
  <div class="form--row">
    <label for="name" class="lt-1 caps form--row_label">Your Name</label>
    <input id="name" class="right form--row_input" type="text" value="Charles Peters" />
  <div class="form--row">
    <label for="email" class="lt-1 caps form--row_label">Your Email</label>
    <input id="email" class="right form--row_input" type="email" value="[email protected]" />
  <div class="form--row">
    <label for="startDate" class="lt-1 caps form--row_label">Start Date</label>
    <input id="startDate" value="2016-08-10" class="right form--row_input" type="date" placeholder=" "/>
  <div class="form--row">
    <label for="endDate" class="lt-1 caps form--row_label">End Date</label>
    <input id="endDate" value="2016-08-10" class="right form--row_input" type="date" placeholder=" "/>
  <div class="form--row">
    <label for="startTime" class="lt-1 caps form--row_label">Start Time</label>
    <input id="startTime" value="09:32" class="right form--row_input" type="time" />
  <div class="form--row">
    <label for="endTime" class="lt-1 caps form--row_label">End Time</label>
    <input id="endTime" value="23:57" class="right form--row_input" type="time" />
  <div class="form--row">
    <label for="options1" class="lt-1 caps form--row_label">Options</label>
    <select id="options1" class="right form--row_input"  dir="rtl">
      <option value="1">Option #1</option>
      <option value="2">Option #2</option>
      <option value="3" selected>Option #3</option>
      <option value="4">Option #4</option>
      <option value="5">Option #5</option>
  <div class="form--row">
    <label for="options2" class="lt-1 caps form--row_label">Some More Options</label>
    <select class="right form--row_input" id="options2" dir="rtl">
      <option value="0" selected="selected">EqualsTo</option>
      <option value="1">LessThan</option>
      <option value="2">GreaterThan</option>
      <option value="3">LessThanEqualsTo</option>
      <option value="4">GreaterThanEqualsTo</option>
      <option value="5" selected>Between</option>
  <div class="form--row">
    <label for="venue" class="lt-1 caps form--row_label">Event Venue</label>
    <input id="venue" class="right form--row_input" type="text" />
  <div class="form--row">
    <label for="things" class="lt-1 caps form--row_label">Anything Else</label>
    <input id="things" class="right form--row_input" type="text" />


                $blue: #3ea5ce;
$green: #99c712;
$yellow: lighten(#ffba00, 5%);
$red: #E53B3A;

$colors: $blue, $green, $red, $yellow;
$key: random( length($colors) );
$nth: nth( $colors, $key );

$main-color: $nth !default;

$top: 1.59rem;
$side: 1rem;

* {
  margin: 0;
  padding: 0;
  &, &:before, &:after { box-sizing: inherit; }

html { box-sizing: border-box; }
body { font: 300 100%/1.4 Avenir, sans-serif; }
.caps { text-transform: uppercase; }
.container {
  margin: 0 auto;
  width: 100%;
  &:after {
    content: "";
    clear: both;
    display: table;

@for $i from 1 through 5 {
  .lt-#{$i} { letter-spacing: #{$i}px; }

$dirs: center, left, right;
@each $dir in $dirs {
  .#{$dir} { text-align: $dir; }

@mixin backgrounds($c, $y) {
  background: $c;
  @for $i from 1 through $y {
    $k: 3%;
    $j: $i - 1;

    @if $i == 1 {
      &:nth-child(#{$i}) { background: $c; }
    @else {
      &:nth-child(#{$i}) { background: darken($c, ($k * $j)); }

@mixin appearance($v) {
  -webkit-appearance: $v;
  -moz-appearance: $v;
  -ms-appearance: $v;
  appearance: $v;

.form--row {
  position: relative;
  @include backgrounds($main-color, 11);
  &_label {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    height: 100%;
    padding: $top $side;
    display: block;
    @if $main-color == $yellow { color: darken($main-color, 75%); }
    @else { color: lighten($main-color, 25%); }
  &_input {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: $top $side*2 $top $side;
    color: mix(#ffffff, $main-color, 100%);
    @include appearance(none);
    &:focus { outline-color: lighten($main-color, 12.5%); }