Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                

.section.section--xl
.container
  .section.section--xl
    h3.text--center Floating Labels
  .section.section--xl
    form
      .row
        .input__container
          .icon.clear__icon 
            svg(width='10px', height='11px', viewbox='3 3 10 11', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Combined-Shape(d='M8,6.58578644 L5.17157288,3.75735931 L3.75735931,5.17157288 L6.58578644,8 L3.75735931,10.8284271 L5.17157288,12.2426407 L8,9.41421356 L10.8284271,12.2426407 L12.2426407,10.8284271 L9.41421356,8 L12.2426407,5.17157288 L10.8284271,3.75735931 L8,6.58578644 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          .accessibility__icon
          input(name="nickname").input
          label.label__placeholder(for="nickname") Nickname
          label.label__active(for="nickname") Nickname



      .row
        .input__container.error__active
          .icon.clear__icon 
            svg(width='10px', height='11px', viewbox='3 3 10 11', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Combined-Shape(d='M8,6.58578644 L5.17157288,3.75735931 L3.75735931,5.17157288 L6.58578644,8 L3.75735931,10.8284271 L5.17157288,12.2426407 L8,9.41421356 L10.8284271,12.2426407 L12.2426407,10.8284271 L9.41421356,8 L12.2426407,5.17157288 L10.8284271,3.75735931 L8,6.58578644 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          .icon.error__icon
            svg(width='4px', height='12px', viewbox='0 0 4 12', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Exclimation-Point(d='M2,11.5 C1.30964406,11.5 0.75,10.9403559 0.75,10.25 C0.75,9.55964406 1.30964406,9 2,9 C2.69035594,9 3.25,9.55964406 3.25,10.25 C3.25,10.9403559 2.69035594,11.5 2,11.5 Z M1,0.997030139 C1,0.446385598 1.44386482,0 2,0 C2.55228475,0 3,0.453036308 3,0.997030139 L3,7.00296986 C3,7.5536144 2.55613518,8 2,8 C1.44771525,8 1,7.54696369 1,7.00296986 L1,0.997030139 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          .accessibility__icon
          input(name="title").input
          label.label__placeholder(for="title") Title
          label.label__active(for="title") Title
          .error__message A title is required to continue!



      .row
        .input__container.input__drop-down
          .icon.carret__icon--down
            svg(width='10px', height='6px', viewbox='7 9 10 6', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Rectangle(d='M8.27464823,10.5295779 C7.57067945,9.68481534 7.88743329,9 8.99961498,9 L15.000385,9 C16.1047419,9 16.4264364,9.68827629 15.7253518,10.5295779 L12.6434266,14.2278881 C12.2880719,14.6543137 11.7168523,14.6602228 11.3565734,14.2278881 L8.27464823,10.5295779 Z', stroke='none', fill='#031829', fill-rule='evenodd')
          .accessibility__icon
          input(name="title").input
          //- select.input
          //-   option(value='volvo') 1/2017
          //-   option(value='saab') 1/2018
          //-   option(value='mercedes') 1/2019
          //-   option(value='audi') 1/2020

          label.label__placeholder(for="exp") Expiration Date
          label.label__active(for="exp") Expiration Date


      .row
        .input__container.has__character-counter
          .icon.clear__icon 
            svg(width='10px', height='11px', viewbox='3 3 10 11', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Combined-Shape(d='M8,6.58578644 L5.17157288,3.75735931 L3.75735931,5.17157288 L6.58578644,8 L3.75735931,10.8284271 L5.17157288,12.2426407 L8,9.41421356 L10.8284271,12.2426407 L12.2426407,10.8284271 L9.41421356,8 L12.2426407,5.17157288 L10.8284271,3.75735931 L8,6.58578644 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          textarea(name="review", rows="3").input
          .character-counter-container
            label.label__character-counter Min 50 Characters
            .accessibility__icon
            
          label.label__placeholder(for="review") Review
          label.label__active(for="review") Review


  .section.section--s
    form(action="")
      .row
        .input__container
          .icon.clear__icon 
            svg(width='10px', height='11px', viewbox='3 3 10 11', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Combined-Shape(d='M8,6.58578644 L5.17157288,3.75735931 L3.75735931,5.17157288 L6.58578644,8 L3.75735931,10.8284271 L5.17157288,12.2426407 L8,9.41421356 L10.8284271,12.2426407 L12.2426407,10.8284271 L9.41421356,8 L12.2426407,5.17157288 L10.8284271,3.75735931 L8,6.58578644 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          .accessibility__icon
          input(name="cc-number").input
          label.label__placeholder(for="cc-number") Credit Card Number
          label.label__active(for="cc-number") Card Number

        .input__container.error__active.one-third
          .icon.error__icon
            svg(width='4px', height='12px', viewbox='0 0 4 12', version='1.1', xmlns='http://www.w3.org/2000/svg', xmlns:xlink='http://www.w3.org/1999/xlink')
              defs
              path#Exclimation-Point(d='M2,11.5 C1.30964406,11.5 0.75,10.9403559 0.75,10.25 C0.75,9.55964406 1.30964406,9 2,9 C2.69035594,9 3.25,9.55964406 3.25,10.25 C3.25,10.9403559 2.69035594,11.5 2,11.5 Z M1,0.997030139 C1,0.446385598 1.44386482,0 2,0 C2.55228475,0 3,0.453036308 3,0.997030139 L3,7.00296986 C3,7.5536144 2.55613518,8 2,8 C1.44771525,8 1,7.54696369 1,7.00296986 L1,0.997030139 Z', stroke='none', fill='#FFFFFF', fill-rule='evenodd')
          .accessibility__icon
          input.input.masked(type='tel', pattern='(1[0-2]|0[1-9])\/(1[5-9]|2\d)', data-valid-example='05/18' name="cc-expiration")

          label.label__placeholder(for="cc-expiration") Expires
          label.label__active(for="cc-expiration") Expires
          .error__message Invalid date

        .input__container.one-third
          .accessibility__icon
          input(name="cc-cvv", type='tel').input
          label.label__placeholder(for="cc-cvv") CVV
          label.label__active(for="cc-cvv") CVV

        .input__container.one-third
          .accessibility__icon
          input(name="cc-zip", type='tel').input
          label.label__placeholder(for="cc-zip") Zip Code
          label.label__active(for="cc-zip") Zip
        
        
  .section.section--m
    h5.text--center Still needs some work on...
    .note
      ul(style="text-align: left;")
        li An input with a credit card logo on the right side
        li Profit!?!?!
//-   .section.section--xxl
//-     h1 This is an extra large section with an h1
//-     p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
  
//-   .section.section--xl
//-     h2 Large section with an h2
//-     p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
  
//-   .section.section--l
//-     h3 Medium sized section with an h3
//-     p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
//-   .section.section--m 
//-    h4 this is a small section with an h4
//-    p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
//-    p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
//-   .section.section--s 
//-    h4 this is a small section with an h4
//-    p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.
//-    p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer.


//-   h1 This is an example of an h1
//-   h2 This is an example of an h2, it needs to be two lines without looking weird
//-   h3 This is an example of an h3
//-   h4 This is an example of an h4, it's cool
//-   h5 This is an example of an h5, but it's longer too
//-   h6 This is an example of an h6 check it out
//-   p Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
//-   .section.section--xl
//-     .text__callout.text--blue this is a text link
//-     .text__callout.text--red this is a price modifier
//-     .text--small this is some small text
//-     .text--small.text--muted some muted small text
//-     .text--extra-small.text-muted super tiny text
    
//-   .section.section--xl
//-     .btn.btn__cta.btn--large CTA Large
//-     .btn.btn__cta CTA
//-     .btn.btn__primary.btn--large Primary Large
//-     .btn.btn__primary Primary
//-     .btn.btn__secondary Secondary
//-     .btn.btn__secondary.btn--small Secondary Small
              
            
!

CSS

              
                $color__500: rgba(3,23,40,0.94);
$color__400: rgba(3,23,40,0.78);
$color__300: rgba(3,23,40,0.64);
$color__200: rgba(3,23,40,0.34);
$color__100: rgba(3,23,40,0.24);
$color__50: rgba(3,23,40,0.14);
$color__chewy-blue: #128CED;
$color__price: #D0011B;

$font__weight--extra-bold: 600;
$font__weight--bold: 500;
$font__weight--light: 300;

$font__size--xxl: 36px;
$font__size--xl: 28px;
$font__size--l: 22px;
$font__size--m: 18px;
$font__size--s: 16px;
$font__size--xs: 13px;
$font__size--xxs: 11px;

$margin--xxl: 64px;
$margin--xl: 48px;
$margin--l: 34px;
$margin--m: 24px;
$margin--s: 16px;
$margin--xs: 8px;

$easeInOutCubic: 0.645, 0.045, 0.355, 1;

body {
  font-family: SFUIText-Regular;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: $font__size--s;
  color: $color__300;
  line-height: 24px;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  background-color: $color__50;
}
* {
  box-sizing: border-box;
}
.container {
  max-width: 375px;
  margin: $margin--xl auto;
  min-height: 100%;
  overflow: scroll;
  box-shadow: 0 1px 0 0 rgba(3,23,40,0.12), 0 1px 2px 0 rgba(3,23,40,0.10), 0 2px 4px 0 rgba(3,23,40,0.03), 0 2px 8px 0 rgba(3,23,40,0.07);
  background-color: #FCFCFC;
}
.half-width {
  width: 50%;
  float: left;
  display: inline-block;
}

h1, h2, h3, h4, h5, h6, p {
  // margin-top: 0;
  margin: 0;
}
h1, h2, h3 {
  color: $color__500;
}
h4, h5, h6 {
  color: $color__400;
}
h1 {
  font-size: $font__size--xxl;
  line-height: 40px;
  margin-bottom: $margin--s;
  font-weight: $font__weight--light;
}
h2 {
  font-size: $font__size--xl;
  line-height: 32px; 
  margin-bottom: $margin--s;
  font-weight: $font__weight--extra-bold;
}
h3 {
  font-size: $font__size--l;
  line-height: 24px;
  margin-bottom: $margin--xs;
  font-weight: $font__weight--bold;
}
h4 {
  font-size: $font__size--m;
  line-height: 24px;
  margin-bottom: $margin--xs;
}
h5 {
  font-size: $font__size--s;
  line-height: 24px;
  margin-bottom: $margin--xs;
}
h6 {
  font-size: $font__size--xs;
  line-height: 16px;
  margin-bottom: $margin--xs;
}
p + p {
  margin-top: $margin--s;
}




.text__callout {
  font-weight: $font__weight--bold;
}
.text--blue {
  color: $color__chewy-blue;
}
.text--red {
  color: $color__price;
}
.text--muted {
  color: $color__200;
}
.text--small {
  font-size: $font__size--xs;
}
.text--extra-small {
  font-size: $font__size--xxs;
  text-transform: uppercase;
}
.text--center {
  text-align: center;
}
.text--right {
  text-align: right;
}
.text--invert {
  color: #fff;
}



h1 + p, h2 + p {
  margin-top: $margin--s;
}
h3 + p,h4 + p,h5 + p, h6 + p {
  margin-top: $margin--xs;
}




.section--xxl {
  margin-top: $margin--xxl;
  // margin-bottom: $margin--xxl;
}
.section--xl {
  margin-top: $margin--xl;
  // margin-bottom: $margin--xl;
}
.section--l {
  margin-top: $margin--l;
  // margin-bottom: $margin--l;
}
.section--m {
  margin-top: $margin--m;
  // margin-bottom: $margin--m;
}
.section--s {
  margin-top: $margin--s;
  // margin-bottom: $margin--s;
}

// Codepen specific
.section + h1 {
  margin-top: $margin--l;
}

.btn {
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
  font-weight: $font__weight--bold;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  margin-bottom: $margin--xs;
  transform: all .3s ease-out;
  
  // So you can't select the text of the button
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;   
  
  &.btn__cta {
    color: rgba(255,255,255,1);
    text-shadow: 0 1px 4px $color__50;
    background: #EF6C00;
    background-image: linear-gradient(-180deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.11) 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 1px 0 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.06), 0 2px 8px 0 rgba(0,0,0,0.14);
    
    &:active {
      color: rgba(255,255,255,.64);
      text-shadow: 0 1px 4px rgba(3,23,40,0.0);
      background: #EF6C00;
      background-image: linear-gradient(-180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.01) 98%);
      box-shadow: 0 0 0 0 rgba(255,255,255,0.19), 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 0 0 rgba(0,0,0,0.17), inset 0 2px 8px 0 rgba(0,0,0,0.05), inset 0 1px 0 0 rgba(0,0,0,0.04), inset 0 2px 2px 0 rgba(0,0,0,0.07);
    }
  }
  &.btn__primary {
    background-image: linear-gradient(-180deg, rgba(255,255,255,0.00) 0%, rgba(0,0,0,0.09) 100%);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.19), 0 0 0 1px rgba(0,0,0,0.04), 0 1px 0 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.06), 0 2px 8px 0 rgba(0,0,0,0.14);
    color: $color__400;
    
    &:active {
      color: $color__200;
      background: #FFFFFF;
      background-image: linear-gradient(-180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.01) 98%);
      box-shadow: 0 0 0 0 rgba(255,255,255,0.19), 0 0 0 1px rgba(255,255,255,0.04), inset 0 0 0 0 rgba(0,0,0,0.17), inset 0 2px 8px 0 rgba(0,0,0,0.05), inset 0 1px 0 0 rgba(0,0,0,0.04), inset 0 2px 2px 0 rgba(0,0,0,0.07);
    }
  }
  &.btn__secondary {
    border: 2px solid $color__chewy-blue;
    color: $color__chewy-blue;
    display: inline-block;
    line-height: 44px;
    
    &:active, &:hover {
      background-color: $color__chewy-blue;
      color: rgba(255,255,255,.64);
    }
  }
  &.btn--large {
    height: 56px;
    line-height: 56px;
    padding: 0;
    font-size: $font__size--m;
  }
  &.btn--small {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
}
input, textarea {
  font-family: SFUIText-Regular;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: $font__size--s;
  color: $color__300;
  line-height: 24px;
  -webkit-text-size-adjust: 100%;
}
textarea:focus, input:focus{
    outline: none;
}
input, select {
  height: 64px;
  font-size: 16px;
  line-height: 32px;
  padding: 0 0;
  border: 0 none;
  display: block;
  width: 100%;
  position: relative;
  background-color: transparent;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
}
select {
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  
  &:focus {
    outline: none;
  }
}
label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
  
  &.label__placeholder {
    top: 20px;
    color: rgba(3,23,40,0.40);
    left: 8px;
  }
  &.label__active {
    font-size: $font__size--xs;
    color: $color__200;
    font-weight: $font__weight--bold;
    line-height: 16px;
    top: 14px;
    opacity: 0;
    left: 8px;
    -webkit-transform: translate3d(0, 3px, 0);
       -moz-transform: translate3d(0, 3px, 0);
            transform: translate3d(0, 3px, 0);
    transform-origin: 0 0;
  }
  &.label__passive {
    font-size: $font__size--xxs;
    color: rgba(3,23,40,0.44);
    line-height: 8px;
    top: 16px;
    opacity: 0;
  }
  &.label__character-counter {
    font-size: $font__size--xs;
    line-height: 16px;
    color: $color__200;
    position: absolute;
    left: 0;
    bottom: -14px;
    display: inline-block;
    top: auto;
    opacity: 0;
    // -webkit-transform: translate3d(0, 16px, 0);
    //    -moz-transform: translate3d(0, 16px, 0);
    //         transform: translate3d(0, 16px, 0);
  }
}
form {
  background-color: #fff;
  box-shadow: 0 -2px 4px 0 rgba(3,23,40,0.02), 0 2px 4px 0 rgba(3,23,40,0.02);
  display: inline-block;
  width: 100%;
  position: relative;
  
  &:after, &:before {
    content: '';
    position: absolute;
    display: inline-block;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E4E7E9;
    z-index: 3;
  }
  &:after {;
    bottom: 0;
    top: auto;
  }
}
textarea {
  resize: none;
  padding: 0;
  border: 0;
  width: 100%;
  padding-top: 20px;
  padding-right: 40px;
  padding-bottom: 0;
  display: block;
  box-sizing: padding-box;
  overflow: hidden;
  background-color: transparent;
  margin: 0;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
}
.icon {
  opacity: 0;
  position: absolute;
  height: 24px;
  width: 24px;
  right: 16px;
  top: 50%;
  opacity: 0;
  z-index: 1;
  -webkit-transform: translate3d(0, -50%, 0);
  -moz-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
}
.row {
  padding: 0 8px;
}
.accessibility__icon {
  position: absolute;
  height: 2px;
  left: 8px;
  right: 8px;
  bottom: 0;
  z-index: 9;
  border-radius: 100px;
  background-color: $color__chewy-blue;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
  -webkit-transform: scaleX(0);
     -moz-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: 0 0;
      -ms-transform-origin: 0 0;
          transform-origin: 0 0;
}
.clear__icon {
  background-color: $color__100;
  font-weight: bold;
  border-radius: 100px;
  z-index: 1;
  color: white;
  text-align: center;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
}
.carret__icon--down {
  opacity: 1;
  
  svg {
    position: absolute;
    left: 6px;
    top: 8px;
    
    path {
      fill: $color__300;
      -webkit-transition: 0.3s;
      -moz-transition: 0.3s;
      transition: 0.3s;
    }
  }
}
.error__icon {
  background-color: $color__price;
  border-radius: 100px;
  
  svg {
    position: absolute;
    left: 10px;
    top: 5px
  }
}
.error__message {
  font-size: $font__size--xs;
  line-height: 16px;
  position: absolute;
  bottom: -20px;
  color: $color__price;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
}
.input__container {
  position: relative;
  padding: 0 8px;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
  
  &.error__active {
    margin-bottom: 32px;
    
    &.input__container--content {
      padding-bottom: 0;
    }
    .error__icon {
      opacity: 1;
    }
  }
  .character-counter-container {
    position: relative;
    height: 0;
    -webkit-transition: 0.2s cubic-bezier($easeInOutCubic);
       -moz-transition: 0.2s cubic-bezier($easeInOutCubic);
            transition: 0.2s cubic-bezier($easeInOutCubic);
  }
  &:after, .character-counter-container:after {
    content: '';
    position: absolute;
    display: inline-block;
    top: auto;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #E4E7E9;
    z-index: 3;
    bottom: 0;
  }
  &.has__character-counter {
    .character-counter-container:after, .accessibility__icon {
      top: -1px;
      left: 0;
      right: 0;
    }
  }
  & + .input__container:before {
    display: none;
  }
  &.has__character-counter {
    margin-bottom: 0;
    padding-bottom: 0;
    
    .icon {
      top: 32px;
    }
    &:after {
      display: none;
    }
    .character-counter-container .accessibility__icon {
      top: -1px;
    }
  }
  // Is Focused
  &.input__container--focus {
    .label__active {
      color: #128CED;
    }
    .accessibility__icon {
      -webkit-transform: scaleX(1);
         -moz-transform: scaleX(1);
              transform: scaleX(1);
    }
    .character-counter-container {
      height: 32px;
    }
    &.has__character-counter {
      .accessibility__icon {
        -webkit-transform:  scaleX(1);
           -moz-transform:  scaleX(1);
                transform:  scaleX(1);
      }
      .label__character-counter {
        opacity: 1;
        -webkit-transform: translate3d(0, -24px, 0);
           -moz-transform: translate3d(0, -24px, 0);
                transform: translate3d(0, -24px, 0);
      }
    }
  }
  
  // Has content
  &.input__container--content {
    .character-counter-container {
      height: 32px;
    }
    label {
      &.label__placeholder {
        opacity: 0;
      }
    }
    .label__active {
      opacity: 1;
        -webkit-transform: translate3d(0, 0px, 0) scale(.85);
           -moz-transform: translate3d(0, 0px, 0) scale(.85);
                transform: translate3d(0, 0px, 0) scale(.85);
    }
    input, textarea, .label__placeholder {
      -webkit-transform: translate3d(0, 6px, 0);
         -moz-transform: translate3d(0, 6px, 0);
              transform: translate3d(0, 6px, 0);
    }
    // textarea {
    //   -webkit-transform: translate3d(0, 11px, 0);
    //      -moz-transform: translate3d(0, 11px, 0);
    //           transform: translate3d(0, 11px, 0);
    // }
    &.error__active {
      margin-bottom: 0;
    }
    .error__icon {
      opacity: 0;
    }
    .error__message {
      opacity: 0;
        -webkit-transform:  translate3d(0, -4px, 0);
           -moz-transform:  translate3d(0, -4px, 0);
                transform:  translate3d(0, -4px, 0);
    }
    .label__character-counter {
      opacity: 1;
        -webkit-transform: translate3d(0, -24px, 0);
           -moz-transform: translate3d(0, -24px, 0);
                transform: translate3d(0, -24px, 0);
    }
    &.has__character-counter {
    }
  }
  
  
  // Has content & is focused
  &.input__container--focus.input__container--content {
    label {
      &.label__active {
        opacity: 1;
        -webkit-transform: translate3d(0, 0px, 0);
           -moz-transform: translate3d(0, 0px, 0);
                transform: translate3d(0, 0px, 0);
      }
      &.label__placeholder, &.label__passive {
        opacity: 0;
      }
      
    }
    .clear__icon {
      opacity: 1;
    }
    .accessibility__icon {
      background-color: $color__chewy-blue;
      -webkit-transform: scaleX(1);
         -moz-transform: scaleX(1);
              transform: scaleX(1);
    }
    input, textarea, .label__placeholder {
        -webkit-transform: translate3d(0, 7px, 0);
           -moz-transform: translate3d(0, 7px, 0);
                transform: translate3d(0, 7px, 0);
    }
    
    textarea {
      -webkit-transform: translate3d(0, 12px, 0);
         -moz-transform: translate3d(0, 12px, 0);
              transform: translate3d(0, 12px, 0);
    }
    .carret__icon--down svg path {
      fill: $color__chewy-blue;
    }
  }
}

@media screen and (max-device-width: 480px){
  textarea {
    text-indent: -3px;
  }
}

.note {
  color: $color__200;
  font-size: $font__size--xs;
  text-align: center;
}
.container > :last-child {
  margin-bottom: $margin--l;
}

.half-width + .half-width {
  box-shadow: inset 1px 0 0 0 rgba(3, 23, 40, 0.1);
}
.one-third {
  width: 33.33%;
  float: left;
  
  // & + .one-third {
  //   box-shadow: inset 1px 0 0 0 rgba(3, 23, 40, 0.1);
  // }
}

              
            
!

JS

              
                  $(document)
    .one('focus.autoExpand', 'textarea.autoExpand', function(){
        var savedValue = this.value;
        this.value = '';
        this.baseScrollHeight = this.scrollHeight;
        this.value = savedValue;
    })
    .on('input.autoExpand', 'textarea.autoExpand', function(){
        var minRows = this.getAttribute('data-min-rows')|0, rows;
        this.rows = minRows;
        rows = Math.ceil((this.scrollHeight - this.baseScrollHeight) / 17);
        this.rows = minRows + rows;
    });

(function ($) {
  var InputActionHandler = {
    hasContent: function ($el) {
      return $el.val() !== '';
    },
    toggleContentClass: function ($el) {
      if (this.hasContent($el)) {
        $el.closest('.input__container').addClass('input__container--content');
      } else {
        $el.closest('.input__container').removeClass('input__container--content');
      }
    },
    init: function ($inputs) {
      $inputs.each(function (i, input) {
        var $input = $(input);
        InputActionHandler.toggleContentClass($input);
        $input.off('focus.actionHandler').on('focus.actionHandler', function () {
          $(this).closest('.input__container').addClass('input__container--focus');
          console.log(input);
        });
        $input.off('blur.actionHandler').on('blur.actionHandler', function () {
          var $this = $(this);
          $this.closest('.input__container').removeClass('input__container--focus');
          InputActionHandler.toggleContentClass($this);
        });
        $input.on('input.actionHandler', function () {
          InputActionHandler.toggleContentClass($(this));
          $('.input__container__input').off('input.actionHandler');
        });
      });
    }
  };
  
  $(function () {
    InputActionHandler.init($('.input'));
  });
}(jQuery));
// Applied globally on all textareas with the "autoExpand" class

              
            
!
999px

Console