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 id='myForm'></div>
</div>

            
          
!
            
              /* Fuselage Framework
 * http://fuselage.skosh.io
 */

/*! normalize.css v3.0.2 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}html{font-size:62.5%;overflow-x:hidden}*{box-sizing:border-box}body,h1,h2,h3,h4,h5,h6,p,blockquote,hr,figure{margin:0;padding:0}img{max-width:100%;vertical-align:middle}a{text-decoration:none}hr{border-top:none}textarea{height:auto;min-height:50px}.group:after{content:"";display:table;clear:both}.hidden{display:none}.left{float:left}.right{float:right}.disabled,[disabled]{cursor:not-allowed !important}[readonly]{cursor:not-allowed !important}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rounded{border-radius:1000px}.radius{border-radius:1rem}.primary{background:#C94534;color:#fff}hr.primary{border-color:#C94534}.primary-text{color:#C94534}.secondary{background:#367F96;color:#fff}hr.secondary{border-color:#367F96}.secondary-text{color:#367F96}.tertiary{background:#B29167;color:#fff}hr.tertiary{border-color:#B29167}.tertiary-text{color:#B29167}.info{background:#789;color:#fff}hr.info{border-color:#789}.info-text{color:#789}.success{background:#3B8C0C;color:#fff}hr.success{border-color:#3B8C0C}.success-text{color:#3B8C0C}.warn{background:#FFB83F;color:#fff}hr.warn{border-color:#FFB83F}.warn-text{color:#FFB83F}.alert{background:#CE4844;color:#fff}hr.alert{border-color:#CE4844}.alert-text{color:#CE4844}.gray{background:#e9e9e9}hr.gray{border-color:#b6b6b6}.gray-text{color:#b6b6b6}.row{margin-left:-1.3090170126rem;margin-right:-1.3090170126rem}.row:after{content:"";display:table;clear:both}.row .row{margin:0 -1.3090170126rem}.column{display:relative;float:left;margin-top:0;padding-right:1.3090170126rem;padding-left:1.3090170126rem}.one-whole{width:100%}.one-half{width:50%}.one-third{width:33.3333333333%}.two-thirds{width:66.6666666667%}.one-fourth{width:25%}.three-fourths{width:75%}.one-fifth{width:20%}.two-fifths{width:40%}.three-fifths{width:60%}.four-fifths{width:80%}.one-sixth{width:16.6666666667%}.five-sixths{width:83.3333333333%}.one-eighth{width:12.5%}.three-eighths{width:37.5%}.five-eighths{width:62.5%}.seven-eighths{width:87.5%}.one-tenth{width:10%}.three-tenths{width:30%}.seven-tenths{width:70%}.nine-tenths{width:90%}.one-twelfth{width:8.3333333333%}.five-twelfths{width:41.6666666667%}.seven-twelfths{width:58.3333333333%}.one-twelfths{width:91.6666666667%}@media screen and (min-width: 320px){.small-one-whole{width:100%}.small-one-half{width:50%}.small-one-third{width:33.3333333333%}.small-two-thirds{width:66.6666666667%}.small-one-fourth{width:25%}.small-three-fourths{width:75%}.small-one-fifth{width:20%}.small-two-fifths{width:40%}.small-three-fifths{width:60%}.small-four-fifths{width:80%}.small-one-sixth{width:16.6666666667%}.small-five-sixths{width:83.3333333333%}.small-one-eighth{width:12.5%}.small-three-eighths{width:37.5%}.small-five-eighths{width:62.5%}.small-seven-eighths{width:87.5%}.small-one-tenth{width:10%}.small-three-tenths{width:30%}.small-seven-tenths{width:70%}.small-nine-tenths{width:90%}.small-one-twelfth{width:8.3333333333%}.small-five-twelfths{width:41.6666666667%}.small-seven-twelfths{width:58.3333333333%}.small-one-twelfths{width:91.6666666667%}}@media screen and (min-width: 640px){.medium-one-whole{width:100%}.medium-one-half{width:50%}.medium-one-third{width:33.3333333333%}.medium-two-thirds{width:66.6666666667%}.medium-one-fourth{width:25%}.medium-three-fourths{width:75%}.medium-one-fifth{width:20%}.medium-two-fifths{width:40%}.medium-three-fifths{width:60%}.medium-four-fifths{width:80%}.medium-one-sixth{width:16.6666666667%}.medium-five-sixths{width:83.3333333333%}.medium-one-eighth{width:12.5%}.medium-three-eighths{width:37.5%}.medium-five-eighths{width:62.5%}.medium-seven-eighths{width:87.5%}.medium-one-tenth{width:10%}.medium-three-tenths{width:30%}.medium-seven-tenths{width:70%}.medium-nine-tenths{width:90%}.medium-one-twelfth{width:8.3333333333%}.medium-five-twelfths{width:41.6666666667%}.medium-seven-twelfths{width:58.3333333333%}.medium-one-twelfths{width:91.6666666667%}}@media screen and (min-width: 960px){.large-one-whole{width:100%}.large-one-half{width:50%}.large-one-third{width:33.3333333333%}.large-two-thirds{width:66.6666666667%}.large-one-fourth{width:25%}.large-three-fourths{width:75%}.large-one-fifth{width:20%}.large-two-fifths{width:40%}.large-three-fifths{width:60%}.large-four-fifths{width:80%}.large-one-sixth{width:16.6666666667%}.large-five-sixths{width:83.3333333333%}.large-one-eighth{width:12.5%}.large-three-eighths{width:37.5%}.large-five-eighths{width:62.5%}.large-seven-eighths{width:87.5%}.large-one-tenth{width:10%}.large-three-tenths{width:30%}.large-seven-tenths{width:70%}.large-nine-tenths{width:90%}.large-one-twelfth{width:8.3333333333%}.large-five-twelfths{width:41.6666666667%}.large-seven-twelfths{width:58.3333333333%}.large-one-twelfths{width:91.6666666667%}}@media screen and (min-width: 1280px){.xlarge-one-whole{width:100%}.xlarge-one-half{width:50%}.xlarge-one-third{width:33.3333333333%}.xlarge-two-thirds{width:66.6666666667%}.xlarge-one-fourth{width:25%}.xlarge-three-fourths{width:75%}.xlarge-one-fifth{width:20%}.xlarge-two-fifths{width:40%}.xlarge-three-fifths{width:60%}.xlarge-four-fifths{width:80%}.xlarge-one-sixth{width:16.6666666667%}.xlarge-five-sixths{width:83.3333333333%}.xlarge-one-eighth{width:12.5%}.xlarge-three-eighths{width:37.5%}.xlarge-five-eighths{width:62.5%}.xlarge-seven-eighths{width:87.5%}.xlarge-one-tenth{width:10%}.xlarge-three-tenths{width:30%}.xlarge-seven-tenths{width:70%}.xlarge-nine-tenths{width:90%}.xlarge-one-twelfth{width:8.3333333333%}.xlarge-five-twelfths{width:41.6666666667%}.xlarge-seven-twelfths{width:58.3333333333%}.xlarge-one-twelfths{width:91.6666666667%}}@media screen and (min-width: 1500px){.xxlarge-one-whole{width:100%}.xxlarge-one-half{width:50%}.xxlarge-one-third{width:33.3333333333%}.xxlarge-two-thirds{width:66.6666666667%}.xxlarge-one-fourth{width:25%}.xxlarge-three-fourths{width:75%}.xxlarge-one-fifth{width:20%}.xxlarge-two-fifths{width:40%}.xxlarge-three-fifths{width:60%}.xxlarge-four-fifths{width:80%}.xxlarge-one-sixth{width:16.6666666667%}.xxlarge-five-sixths{width:83.3333333333%}.xxlarge-one-eighth{width:12.5%}.xxlarge-three-eighths{width:37.5%}.xxlarge-five-eighths{width:62.5%}.xxlarge-seven-eighths{width:87.5%}.xxlarge-one-tenth{width:10%}.xxlarge-three-tenths{width:30%}.xxlarge-seven-tenths{width:70%}.xxlarge-nine-tenths{width:90%}.xxlarge-one-twelfth{width:8.3333333333%}.xxlarge-five-twelfths{width:41.6666666667%}.xxlarge-seven-twelfths{width:58.3333333333%}.xxlarge-one-twelfths{width:91.6666666667%}}h5,.h5{font-size:0.5rem;line-height:1}@media screen and (min-width: 320px){h5,.h5{font-size:0.6rem}}@media screen and (min-width: 640px){h5,.h5{font-size:0.7rem}}@media screen and (min-width: 960px){h5,.h5{font-size:0.9rem}}@media print{h5,.h5{font-size:0.6rem}}h4,.h4{font-size:0.809017rem;line-height:1}@media screen and (min-width: 320px){h4,.h4{font-size:0.9708204rem}}@media screen and (min-width: 640px){h4,.h4{font-size:1.1326238rem}}@media screen and (min-width: 960px){h4,.h4{font-size:1.4562306rem}}@media print{h4,.h4{font-size:0.9708204rem}}h3,.h3{font-size:1.3090170126rem;line-height:1}@media screen and (min-width: 320px){h3,.h3{font-size:1.5708204151rem}}@media screen and (min-width: 640px){h3,.h3{font-size:1.8326238176rem}}@media screen and (min-width: 960px){h3,.h3{font-size:2.3562306226rem}}@media print{h3,.h3{font-size:1.5708204151rem}}h2,.h2{font-size:2.1180340329rem;line-height:1}@media screen and (min-width: 320px){h2,.h2{font-size:2.5416408395rem}}@media screen and (min-width: 640px){h2,.h2{font-size:2.9652476461rem}}@media screen and (min-width: 960px){h2,.h2{font-size:3.8124612593rem}}@media print{h2,.h2{font-size:2.5416408395rem}}h1,.h1{font-size:3.4270510784rem;line-height:1}@media screen and (min-width: 320px){h1,.h1{font-size:4.1124612941rem}}@media screen and (min-width: 640px){h1,.h1{font-size:4.7978715098rem}}@media screen and (min-width: 960px){h1,.h1{font-size:6.1686919412rem}}@media print{h1,.h1{font-size:4.1124612941rem}}body{font-family:"Open Sans",Arial,sans-serif;font-size:1.53rem;line-height:1.618034;font-weight:200;color:#2E2E2E;-webkit-text-size-adjust:100%}@media screen and (min-width: 640px){body{font-size:1.8rem}}@media print{body{font-size:14px}}h1,h2,h3,h4,h5,h6,hr,p,blockquote,pre,table,ul,ol,dl,figure,address,.highlight{margin-bottom:2.6180340252rem}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin-bottom:0}small{color:#838383;font-size:70%;font-weight:100}.headline{font-family:"Open Sans",Arial,sans-serif;font-weight:100;font-size:4.2360680659rem;line-height:1}@media screen and (min-width: 640px){.headline{font-size:6.8541021569rem}}@media screen and (min-width: 960px){.headline{font-size:11.0901703293rem}}@media print{.headline{font-size:4.2360680659rem}}.deck{color:#838383;font-size:1.618034rem;line-height:1.25}@media screen and (min-width: 320px){.deck{font-size:2.0225425rem}}@media screen and (min-width: 640px){.deck{font-size:2.6180340252rem}}@media screen and (min-width: 960px){.deck{font-size:2.6180340252rem}}@media print{.deck{font-size:1rem}}.byline{font-size:1.618034rem;font-weight:normal}@media screen and (min-width: 320px){.byline{font-size:2.0225425rem}}@media print{.byline{font-size:0.9rem}}.drop-cap span.initial-phrase{color:#367F96;font-variant:small-caps}.drop-cap::first-letter{color:#367F96;float:left;font-size:324%;line-height:0.95}figcaption,.caption{color:#5D5D5D;font-size:1.618034rem}@media print{figcaption,.caption{font-size:1rem}}h1,h2{font-weight:100}blockquote{color:#838383;border-left:1px solid #aaa;padding-left:2.6180340252rem;font-weight:200}blockquote>:last-child{margin-bottom:0}dt{font-weight:bold}dd{margin-left:2.6180340252rem}dd+dt{margin-top:2.6180340252rem}pre,code,kbd{font-family:"Merriweather",Times,serif;border-radius:0.5rem;background-color:#e9e9e9}code{padding:1px 5px}kbd{font-weight:bold}pre{padding:2.6180340252rem;position:relative;overflow-x:scroll;white-space:pre;word-wrap:normal}pre:after{content:attr(rel);position:absolute;top:1.0472136101rem;right:1.0472136101rem}pre>code{border:0;padding-right:0;padding-left:0}h1 a:not(.button),h2 a:not(.button),h3 a:not(.button),h4 a:not(.button),h5 a:not(.button),h6 a:not(.button),hr a:not(.button),p a:not(.button),blockquote a:not(.button),pre a:not(.button),table a:not(.button),ul a:not(.button),ol a:not(.button),dl a:not(.button),figure a:not(.button),address a:not(.button){color:#C94534}h1 a:not(.button):hover,h2 a:not(.button):hover,h3 a:not(.button):hover,h4 a:not(.button):hover,h5 a:not(.button):hover,h6 a:not(.button):hover,hr a:not(.button):hover,p a:not(.button):hover,blockquote a:not(.button):hover,pre a:not(.button):hover,table a:not(.button):hover,ul a:not(.button):hover,ol a:not(.button):hover,dl a:not(.button):hover,figure a:not(.button):hover,address a:not(.button):hover{border-bottom:1px solid #C94534}h1 a:not(.button).disabled,h1 a:not(.button)[disabled],h2 a:not(.button).disabled,h2 a:not(.button)[disabled],h3 a:not(.button).disabled,h3 a:not(.button)[disabled],h4 a:not(.button).disabled,h4 a:not(.button)[disabled],h5 a:not(.button).disabled,h5 a:not(.button)[disabled],h6 a:not(.button).disabled,h6 a:not(.button)[disabled],hr a:not(.button).disabled,hr a:not(.button)[disabled],p a:not(.button).disabled,p a:not(.button)[disabled],blockquote a:not(.button).disabled,blockquote a:not(.button)[disabled],pre a:not(.button).disabled,pre a:not(.button)[disabled],table a:not(.button).disabled,table a:not(.button)[disabled],ul a:not(.button).disabled,ul a:not(.button)[disabled],ol a:not(.button).disabled,ol a:not(.button)[disabled],dl a:not(.button).disabled,dl a:not(.button)[disabled],figure a:not(.button).disabled,figure a:not(.button)[disabled],address a:not(.button).disabled,address a:not(.button)[disabled]{color:#7c7c7c;border-bottom:1px solid}h1 a:not(.button).disabled:hover,h1 a:not(.button)[disabled]:hover,h2 a:not(.button).disabled:hover,h2 a:not(.button)[disabled]:hover,h3 a:not(.button).disabled:hover,h3 a:not(.button)[disabled]:hover,h4 a:not(.button).disabled:hover,h4 a:not(.button)[disabled]:hover,h5 a:not(.button).disabled:hover,h5 a:not(.button)[disabled]:hover,h6 a:not(.button).disabled:hover,h6 a:not(.button)[disabled]:hover,hr a:not(.button).disabled:hover,hr a:not(.button)[disabled]:hover,p a:not(.button).disabled:hover,p a:not(.button)[disabled]:hover,blockquote a:not(.button).disabled:hover,blockquote a:not(.button)[disabled]:hover,pre a:not(.button).disabled:hover,pre a:not(.button)[disabled]:hover,table a:not(.button).disabled:hover,table a:not(.button)[disabled]:hover,ul a:not(.button).disabled:hover,ul a:not(.button)[disabled]:hover,ol a:not(.button).disabled:hover,ol a:not(.button)[disabled]:hover,dl a:not(.button).disabled:hover,dl a:not(.button)[disabled]:hover,figure a:not(.button).disabled:hover,figure a:not(.button)[disabled]:hover,address a:not(.button).disabled:hover,address a:not(.button)[disabled]:hover{border-bottom-color:#7c7c7c}button,.button{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #C94534;color:#C94534}button:hover,.button:hover{background:#C94534;color:#fff}button.disabled,button[disabled],.button.disabled,.button[disabled]{border-color:#d77163;color:#d77163}button.disabled:hover,button[disabled]:hover,.button.disabled:hover,.button[disabled]:hover{background:rgba(255,255,255,0);color:#d77163}button.extended,.button.extended{width:100%}button.secondary,.button.secondary{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #367F96;color:#367F96}button.secondary:hover,.button.secondary:hover{background:#367F96;color:#fff}button.secondary.disabled,button.secondary[disabled],.button.secondary.disabled,.button.secondary[disabled]{border-color:#4ba3be;color:#4ba3be}button.secondary.disabled:hover,button.secondary[disabled]:hover,.button.secondary.disabled:hover,.button.secondary[disabled]:hover{background:rgba(255,255,255,0);color:#4ba3be}button.tertiary,.button.tertiary{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #B29167;color:#B29167}button.tertiary:hover,.button.tertiary:hover{background:#B29167;color:#fff}button.tertiary.disabled,button.tertiary[disabled],.button.tertiary.disabled,.button.tertiary[disabled]{border-color:#c7ae90;color:#c7ae90}button.tertiary.disabled:hover,button.tertiary[disabled]:hover,.button.tertiary.disabled:hover,.button.tertiary[disabled]:hover{background:rgba(255,255,255,0);color:#c7ae90}button.info,.button.info{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #789;color:#789}button.info:hover,.button.info:hover{background:#789;color:#fff}button.info.disabled,button.info[disabled],.button.info.disabled,.button.info[disabled]{border-color:#9aa7b3;color:#9aa7b3}button.info.disabled:hover,button.info[disabled]:hover,.button.info.disabled:hover,.button.info[disabled]:hover{background:rgba(255,255,255,0);color:#9aa7b3}button.success,.button.success{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #3B8C0C;color:#3B8C0C}button.success:hover,.button.success:hover{background:#3B8C0C;color:#fff}button.success.disabled,button.success[disabled],.button.success.disabled,.button.success[disabled]{border-color:#53c411;color:#53c411}button.success.disabled:hover,button.success[disabled]:hover,.button.success.disabled:hover,.button.success[disabled]:hover{background:rgba(255,255,255,0);color:#53c411}button.warn,.button.warn{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #FFB83F;color:#FFB83F}button.warn:hover,.button.warn:hover{background:#FFB83F;color:#fff}button.warn.disabled,button.warn[disabled],.button.warn.disabled,.button.warn[disabled]{border-color:#ffcf7c;color:#ffcf7c}button.warn.disabled:hover,button.warn[disabled]:hover,.button.warn.disabled:hover,.button.warn[disabled]:hover{background:rgba(255,255,255,0);color:#ffcf7c}button.alert,.button.alert{display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #CE4844;color:#CE4844}button.alert:hover,.button.alert:hover{background:#CE4844;color:#fff}button.alert.disabled,button.alert[disabled],.button.alert.disabled,.button.alert[disabled]{border-color:#db7774;color:#db7774}button.alert.disabled:hover,button.alert[disabled]:hover,.button.alert.disabled:hover,.button.alert[disabled]:hover{background:rgba(255,255,255,0);color:#db7774}button.tiny,.button.tiny{font-size:1rem;padding:0.6545085063rem}button.small,.button.small{font-size:1.25rem;padding:1.3090170126rem}button.large,.button.large{font-size:2.0225425rem;padding:2.6180340252rem}input[type="text"],input[type="password"],input[type="date"],input[type="datetime"],input[type="datetime-local"],input[type="month"],input[type="week"],input[type="email"],input[type="number"],input[type="search"],input[type="tel"],input[type="time"],input[type="url"],input[type="color"],textarea,input[type="file"],select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#FFFFFF;border:1px solid #AFAFAF;border-radius:0;display:block;margin-bottom:1.7453560168rem;outline:none;padding:1.190015466rem 1.0472136101rem 1.0472136101rem;-webkit-transition:all 0.2s linear;-moz-transition:all 0.2s linear;-ms-transition:all 0.2s linear;-o-transition:all 0.2s linear;transition:all 0.2s linear;width:100%}input[type="text"]:focus,input[type="password"]:focus,input[type="date"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="time"]:focus,input[type="url"]:focus,input[type="color"]:focus,textarea:focus,input[type="file"]:focus,select:focus{background-color:#F8F8F8;border:1px solid #505050}select{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGhlaWdodD0iNTEycHgiIGlkPSJMYXllcl8xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiIgd2lkdGg9IjUxMnB4IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48cG9seWdvbiBwb2ludHM9IjM5Ni42LDE2MCA0MTYsMTgwLjcgMjU2LDM1MiA5NiwxODAuNyAxMTUuMywxNjAgMjU2LDMxMC41ICIvPjwvc3ZnPg==");background-origin:content-box;background-position:100% center;background-repeat:no-repeat;background-size:1.8rem;cursor:pointer;line-height:normal}label{cursor:pointer;display:block;font-size:80%}input,textarea{border:1px solid #909090;display:inline-block}input[type="checkbox"],input[type="radio"]{border:0;cursor:pointer;margin-bottom:1.3090170126rem}input[type="checkbox"]+label,input[type="radio"]+label{display:inline-block;margin-left:0.6545085063rem;margin-right:1.3090170126rem;margin-bottom:0;vertical-align:baseline}input[type="range"]{border:0}input[type="file"]{cursor:pointer;text-align:start}input[type="file"]::file-upload-button{visibility:hidden;width:0}input[type="file"]::-webkit-file-upload-button{visibility:hidden;width:0}input[type="file"]::-moz-file-upload-button{visibility:hidden;width:0}input.disabled:not(.button),input[disabled]:not(.button),select.disabled:not(.button),select[disabled]:not(button),textarea.disabled,textarea[disabled],input[readonly]:not(.button),select[readonly]:not(button),textarea[readonly]{background-color:#E4E4E4;color:#777777}input.disabled:not(.button)+label,input[disabled]:not(.button)+label,select.disabled:not(.button)+label,select[disabled]:not(button)+label,textarea.disabled+label,textarea[disabled]+label,input[readonly]:not(.button)+label,select[readonly]:not(button)+label,textarea[readonly]+label{color:#AAAAAA;cursor:not-allowed}fieldset{padding:1.9392844631rem}fieldset legend{padding:0 0.4363390042rem}table{background:#fff;border:1px solid #d0d0d0;font-size:80%;table-layout:auto;width:100%}table caption{font-size:2.6180340252rem;font-weight:100;margin-bottom:1.0472136101rem;text-align:left}table thead,table tfoot{background:#e9e9e9}table tr:nth-of-type(even){background:#f3f3f3}table td{padding:1.0472136101rem;text-align:left}table td:nth-child(n+2){padding-top:1.0472136101rem}table th{font-size:1.82028825rem;font-weight:100;padding:1.0472136101rem;text-align:left}@media print{table th{font-size:1rem;font-weight:bold}}table[class*="responsive"] thead,table[class*="responsive"] tfoot{background:#e9e9e9;display:none}table[class*="responsive"] td{display:block;padding:1.0472136101rem;text-align:left}table[class*="responsive"] td:nth-child(n+2){padding-top:0}table[class*="responsive"] td:before{content:attr(data-th) ":\a";font-size:1.25rem;font-weight:400;white-space:pre}@media screen and (min-width: 319px){table.xsmall-responsive thead{display:table-header-group}table.xsmall-responsive tfoot{display:table-footer-group}table.xsmall-responsive td{display:table-cell;font-size:inherit}table.xsmall-responsive td:before{display:none}table.xsmall-responsive td:nth-child(n+2){padding-top:1.0472136101rem}}@media screen and (min-width: 639px){table.small-responsive thead{display:table-header-group}table.small-responsive tfoot{display:table-footer-group}table.small-responsive td{display:table-cell;font-size:inherit}table.small-responsive td:before{display:none}table.small-responsive td:nth-child(n+2){padding-top:1.0472136101rem}}@media screen and (min-width: 959px){table.medium-responsive thead{display:table-header-group}table.medium-responsive tfoot{display:table-footer-group}table.medium-responsive td{display:table-cell;font-size:inherit}table.medium-responsive td:before{display:none}table.medium-responsive td:nth-child(n+2){padding-top:1.0472136101rem}}@media screen and (min-width: 1279px){table.large-responsive thead{display:table-header-group}table.large-responsive tfoot{display:table-footer-group}table.large-responsive td{display:table-cell;font-size:inherit}table.large-responsive td:before{display:none}table.large-responsive td:nth-child(n+2){padding-top:1.0472136101rem}}@media screen and (min-width: 1499px){table.xlarge-responsive thead{display:table-header-group}table.xlarge-responsive tfoot{display:table-footer-group}table.xlarge-responsive td{display:table-cell;font-size:inherit}table.xlarge-responsive td:before{display:none}table.xlarge-responsive td:nth-child(n+2){padding-top:1.0472136101rem}}@media print{body{background:#FFFFFF;color:#000000}a{color:#000000;word-wrap:break-word}a[href]:after{content:" (" attr(href) ") "}a[href^="#"]:after{display:none}img{max-width:100%}blockquote,q:after{content:" (Source: " attr(cite) ")"}}body{background:url("../img/stripe-bg2.png") fixed}.drop-shadow{box-shadow:0 0 20px -5px rgba(153,153,153,0.9)}section{padding:5.2360680503rem 0}.container{margin:0 auto;max-width:800px;padding:0 1.3090170126rem}.container:after{content:"";display:table;clear:both}hr{border-bottom:1px solid #e9e9e9;border-top:none}.icon:hover{border-bottom:none}.icon>svg{display:inline-block;width:16px;height:16px;vertical-align:middle}.icon>svg path{fill:#5D5D5D}code,pre,kbd{font-size:1.45rem}.site-header{background:#fff;border-bottom:1px solid #e9e9e9;box-shadow:0 0 20px -5px rgba(153,153,153,0.9);min-height:60px;position:fixed;width:100%;z-index:100}.site-header .container{position:relative}.site-title{color:#C94534;float:left;font-size:2.6180340252rem;line-height:60px;margin-bottom:0}.site-title img{max-height:40px}#menu-icon li{display:block;float:right;width:30px;height:33px;line-height:0;padding-top:20px;text-align:center}#menu-icon li svg{width:27px;height:22px}#menu-icon li svg path{fill:#367F96}@media screen and (min-width: 640px){#menu-icon{display:none}}.site-nav{background:rgba(230,230,230,0.9);position:fixed;left:0;top:0;width:100%;transform:translateY(-100%);-webkit-transform:translateY(-100%);transition-property:transform;transition-duration:0.4s}.site-nav.is-visible{height:100%;padding-top:25%;top:60px;transform:translateY(0)}.site-nav.is-visible li{display:block;font-size:2.6180340252rem;list-style:none;padding:1.3090170126rem;text-align:center}@media screen and (min-width: 640px){.site-nav{background:none;height:auto;width:auto;left:auto;list-style:none;position:absolute;right:1.3090170126rem;text-align:right;top:75px}.site-nav .page-link{display:block;padding:5px 10px}.site-nav li{display:inline-block;float:right;margin-left:1.3090170126rem}}.hero{padding:2.6180340252rem 0 5.2360680503rem}.hero .home-nav a{text-align:center;width:100%}@media screen and (min-width: 960px){.hero .home-nav{margin-top:5.2360680503rem}}.hero .logo{-webkit-animation:translateDown 0.5s cubic-bezier(0.7, 0, 0.3, 1) both;animation:translateDown 0.5s cubic-bezier(0.7, 0, 0.3, 1) both;display:block;margin:0 auto 2.6180340252rem;max-width:700px;opacity:1;width:100%}.headline{color:#b6b6b6}@-webkit-keyframes translateDown{from{opacity:0;-webkit-transform:translate3d(0, -200px, 0)}}@keyframes translateDown{from{opacity:0;-webkit-transform:translate3d(0, -200px, 0);transform:translate3d(0, -200px, 0)}}section.process{background:#5D5D5D;color:#fff}.process-icons{margin-top:2.6180340252rem}.process-icons .column{padding:0 2.6180340252rem;text-align:center}.process-icons .column img{margin-bottom:1.3090170126rem;max-width:100px;width:100%}@media screen and (min-width: 640px){.process-icons .column p{text-align:left}}section.articles{background:#fff}section.about{background:#e9e9e9}section.technologies{background:#fff}.headshot{border-radius:50%;display:block;margin-left:auto;margin-right:auto;max-width:400px;width:100%}section.work{background:#fff}section.contact{background:#367F96;color:#fff}section.contact .call-to-action{text-align:center;width:100%;display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #fff;color:#fff}section.contact .call-to-action:hover{background:#fff;color:#C94534}section.contact .call-to-action.disabled,section.contact .call-to-action[disabled]{border-color:#fff;color:#fff}section.contact .call-to-action.disabled:hover,section.contact .call-to-action[disabled]:hover{background:rgba(255,255,255,0);color:#fff}section.contact .call-to-action i.fa{margin-bottom:1.3090170126rem}.site-footer{border-top:1px solid #e9e9e9;padding:2.6180340252rem 0}.site-footer .footer-info{color:#5D5D5D;font-size:1.25rem;text-align:center}.social-media-list{list-style:none;margin-left:0}.page-title{color:#367F96;font-weight:100;margin-top:2.6180340252rem}.page-content{padding:2.6180340252rem 0 0}.page-content.inner{padding:9.163119088rem 0 0}.page-heading{font-size:2.9452882783rem}.post{padding-top:2.6180340252rem}.post-meta{font-size:1.5rem;color:#5D5D5D}.post-link{display:block;font-size:24px}.post-list .post-preview:nth-last-of-type(n+2){border-bottom:1px solid #e9e9e9;margin-bottom:2.6180340252rem}.post-header h1{color:#367F96}.post-content{background:#fff;margin-bottom:2.6180340252rem;padding:2.6180340252rem 0}.post-content p a.button{margin-bottom:0}.post-meta{font-size:1.25rem;color:#5D5D5D}figure.image,figure.code{position:relative;margin-bottom:5.2360680503rem}figure.image figcaption,figure.code figcaption{font-size:1.25rem;font-style:italic;text-align:center;z-index:10}figure.image figcaption:before,figure.code figcaption:before{border-top:1px solid #b6b6b6;display:block;content:'';margin:1.3090170126rem 25% 0.8726780084rem;width:50%}@media screen and (min-width: 1280px){figure.image figcaption,figure.code figcaption{left:-125px;position:absolute;width:110px;top:0;text-align:right}figure.image figcaption:before,figure.code figcaption:before{margin:0 0 0.8726780084rem 50%}}.input-form{position:relative}.input-form input{border:0;border-radius:1rem;box-shadow:0 0 20px -5px rgba(153,153,153,0.9);color:#C94534;line-height:initial}.input-form input:focus{border:0}.input-form .isValid{display:none}.input-form.valid input{color:#3B8C0C}.input-form.valid .isValid{color:#3B8C0C;display:inline;position:absolute;right:1.3090170126rem;top:1.3090170126rem}#sidebar{background-color:#5D5D5D;color:#fff;padding:2.6180340252rem}#sidebar .call-to-action{text-align:center;width:100%;display:inline-block;font-weight:normal;line-height:1;margin-bottom:2.6180340252rem;padding:1.7453560168rem;text-align:center;background:rgba(255,255,255,0);border:1px solid #fff;color:#fff}#sidebar .call-to-action:hover{background:#fff;color:#367F96}#sidebar .call-to-action.disabled,#sidebar .call-to-action[disabled]{border-color:#fff;color:#fff}#sidebar .call-to-action.disabled:hover,#sidebar .call-to-action[disabled]:hover{background:rgba(255,255,255,0);color:#fff}#sidebar .call-to-action i.fa{margin-bottom:1.3090170126rem}.highlight{background:#fff}.highlight .c{color:#998;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .k{font-weight:bold}.highlight .o{font-weight:bold}.highlight .cm{color:#998;font-style:italic}.highlight .cp{color:#999;font-weight:bold}.highlight .c1{color:#998;font-style:italic}.highlight .cs{color:#999;font-weight:bold;font-style:italic}.highlight .gd{color:#000;background-color:#fdd}.highlight .gd .x{color:#000;background-color:#faa}.highlight .ge{font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .gi .x{color:#000;background-color:#afa}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:bold}.highlight .gu{color:#aaa}.highlight .gt{color:#a00}.highlight .kc{font-weight:bold}.highlight .kd{font-weight:bold}.highlight .kp{font-weight:bold}.highlight .kr{font-weight:bold}.highlight .kt{color:#458;font-weight:bold}.highlight .m{color:#099}.highlight .s{color:#d14}.highlight .na{color:#008080}.highlight .nb{color:#0086B3}.highlight .nc{color:#458;font-weight:bold}.highlight .no{color:#008080}.highlight .ni{color:#800080}.highlight .ne{color:#900;font-weight:bold}.highlight .nf{color:#900;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:#000080}.highlight .nv{color:#008080}.highlight .ow{font-weight:bold}.highlight .w{color:#bbb}.highlight .mf{color:#099}.highlight .mh{color:#099}.highlight .mi{color:#099}.highlight .mo{color:#099}.highlight .sb{color:#d14}.highlight .sc{color:#d14}.highlight .sd{color:#d14}.highlight .s2{color:#d14}.highlight .se{color:#d14}.highlight .sh{color:#d14}.highlight .si{color:#d14}.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .bp{color:#999}.highlight .vc{color:#008080}.highlight .vg{color:#008080}.highlight .vi{color:#008080}.highlight .il{color:#099}.help-text{color:#b6b6b6;font-size:1.618034rem;margin-bottom:0;text-align:right}.help-text [for="helpTrigger"]{margin-bottom:0}.modal-control{font-size:1.8rem}.modal-engine{display:none}.modal-close{color:#C94534;position:absolute;right:2.6180340252rem;top:2.6180340252rem}.modal{bottom:0;left:0;opacity:0;padding-top:5.2360680503rem;position:absolute;right:0;top:0;transition:all 0.5s cubic-bezier(0.6, -0.5, 0.3, 1.5);z-index:-100}.modal-bg{background:rgba(0,0,0,0.7);bottom:0;left:0;opacity:0;padding-top:5.2360680503rem;position:fixed;right:0;top:0;transition:all 0.5s cubic-bezier(0.6, -0.5, 0.3, 1.5)}.modal-inner{background:#fff;border-radius:1rem;box-shadow:0 0 20px -5px rgba(153,153,153,0.9);margin:0 auto;max-width:960px;padding:2.6180340252rem;position:relative;transform:scale(0.5);transition:all 0.5s cubic-bezier(0.6, -0.5, 0.3, 1.5);width:90%}.modal-engine:checked ~ #helpModal{opacity:1;z-index:800}.modal-engine:checked ~ #helpModal .modal-bg{opacity:1}.modal-engine:checked ~ #helpModal .modal-inner{transform:scale(1)}

/*# sourceMappingURL=main.min.css.map */

/* Custom Styles */
$spacing-unit: 26px;
body {
  background: snow;
  padding: $spacing-unit 0;
}

h1 {
  color: white;
  font-size: 90px;
  font-weight: 100;
}

#myForm {
  background: white;
  box-shadow: 0 0 20px -5px rgba(153,153,153,0.9);
  // box-shadow: 0 1px 3px rgba(128,128,128,.2);
  
  form {
    margin-bottom: $spacing-unit;
    padding: $spacing-unit / 2;

    input[type='submit'] {
        clear: both;
        float: left;
        margin-bottom: 0;
    }
  }
}

a.repeat-control {
    cursor: pointer;
    float: right;

    &:nth-child(n+2) {
        margin-right: $spacing-unit / 2;
    }
}

fieldset {
  fieldset {
    margin-bottom: $spacing-unit;
  }
}
            
          
!
            
              // Repeatable component
var Repeatable = React.createClass({
    getInitialState: function() {
        // The initial state is a copy of the passed-in children elements
        return {
            repeatedItems: [new Array().concat(this.props.children)]
        };
    },
    handleClick: function(cmd) {
        var newItems = this.state.repeatedItems;
        
        // The list is added to or removed from based on the user controls
        if (cmd == 'inc' && newItems.length < this.props.maxRepeat) {
            newItems.push(new Array().concat(this.props.children));
        } else if (cmd == 'dec' && newItems.length > this.props.minRepeat) {
            newItems.splice(-1,1);
        }

        // The list is updated and the UI re-rendered
        this.setState({
            repeatedItems: newItems
        });
    },
    render: function() {
        var titleRepeat = this.props.titleRepeat;
        // Since the children are an array of elements, loop through twice
        // This is brittle in handling children with nested elements
        return (
            <div>
                {this.state.repeatedItems.map(function(itemGroup, i) {
                    return (
                        <fieldset key={i + 1}>
                            <legend>{titleRepeat}</legend>

                            {itemGroup.map(function(item) {
                                return React.cloneElement(item, {id: item.props.id + '-' + (i + 1)});
                            })}
                        </fieldset>
                    );
                })}

                {/* User controls */}
                <a onClick={this.handleClick.bind(this, 'dec')} className='button tiny repeat-control'>Remove</a>
                <a onClick={this.handleClick.bind(this, 'inc')} className='button tiny repeat-control'>Add</a>
            </div>
        );
    }
});

// Dropdown component
var Dropdown = React.createClass({
    render: function() {
        return (
            <label htmlFor={this.props.id}>{this.props.title}
                <select id={this.props.id} name={this.props.id} onChange={this.props.handleChange}>
                    {this.props.options.map(function(option, i) {
                        return <option val={option} key={i}>{option}</option>
                    })}
                </select>
            </label>
        );
    }
});

// InputGroup component
var InputGroup = React.createClass({
    render: function() {
        return (
            <label htmlFor={this.props.id}>{this.props.title}
                <input id={this.props.id} name={this.props.id} type={this.props.type} />
            </label>
        );
    }
});

// Form component
var Form = React.createClass({
    getInitialState: function() {
        return {
            otherDiet: false
        };
    },
    handleChangeDiet: function(event) {
        this.setState({
            otherDiet: event.target.value == 'Other'
        });
    },
    render: function() {
        return (
            <form>
                <fieldset>
                    <legend>RSVP</legend>

                    <InputGroup id={'name'} type={'text'} title={'Name'} />
                    <InputGroup id={'email'} type={'email'} title={'Email Address'} />

                    <Dropdown
                        id={'diet'}
                        type={'select'}
                        title={'Dietary Considerations'}
                        options={DIETARY_OPTIONS}
                        handleChange={this.handleChangeDiet} />

                    {this.state.otherDiet
                        ? <InputGroup id={'otherDiet'} type={'text'} title={'Please Specify'} />
                        : null
                    }

                    {/* Pass in minimum, maximum, and title for each repeating unit */}
                    <Repeatable minRepeat={1} maxRepeat={5} titleRepeat='Invitee'>
                            <InputGroup 
                                id={'inviteeName'} 
                                type='text' 
                                title='Invite Name' 
                                key={'inviteeName'} />

                            <InputGroup 
                                id={'inviteeEmail'} 
                                type='email' 
                                title='Invitee Email' 
                                key={'inviteeEmail'} />
                    </Repeatable>

                    <input type='submit' className='button' />
                </fieldset>
            </form>
        );
    }
});

var DIETARY_OPTIONS = ['None', 'Gluten-free', 'Nut-free', 'Vegan', 'Other'];

React.render(<Form />, document.getElementById('myForm'));
            
          
!
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