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 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.

            
              <section class="page-section">
		<div class="page-section-wrapper">
				<header class="page-section-header">
						<h1 class="page-section-header-title">Stay Tuned for Updates</h1></header>
				<div class="page-section-content">
						<form action="/" method="POST" class="material-form">
								<section class="material-form-field">
										<div class="material-form-field-controls">
												<div class="form-field-controls-group">
														<input type="email" id="email" required="required" placeholder="Email" title="Please enter Email" class="material-form-field-input">
													<label for="email" class="material-form-field-label">Email</label>
												</div>
										</div>
								</section>
						</form>
				</div>
		</div>
</section>
            
          
!
            
              $materialInputPadding ?= 0.5em
$materialInputWidth ?= 25em
$materialInputFontSize ?= 1.5em
$materialInputColour ?= white

/* -- import Roboto Font -- */
@import url("//fonts.googleapis.com/css?family=Roboto400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic&subset=latin,cyrillic")

$fontFamily ?= "RobotoDraft", "Roboto", "Helvetica Neue, Helvetica, Arial", sans-serif
	
// the meat of CSS
.material
	&-form
		&-field
			position relative
			max-width $materialInputWidth
			margin 0 auto
			&-input
				&::-webkit-input-placeholder
					font-family $fontFamily
					color transparent
				padding $materialInputPadding 0
				font-size $materialInputFontSize
				color inherit
				font-family inherit
				width 100%
				background transparent
				border-width 0 0 1px 0
				transition 0.4s ease border-color
				&:focus
					&:valid, &:invalid
						border-bottom-width 2px
					&:valid
						border-color green
					&:invalid
						border-color red
				&:focus, &[value], &:valid
					&::-webkit-input-placeholder
						color transparent
					& + .material-form-field-label
						transform translateY(-1.1em)
				& + .material-form-field-label
					transition 0.4s ease all
					cursor pointer
					transform translateY(0)
					font-size $materialInputFontSize
					left 0
					top $materialInputPadding * 1.1
					position absolute
					color $materialInputColour
				&:focus
					outline none
		& + label
			position absolute
			left 0.5em
// strictly for the demo
body
	font-family $fontFamily
	background #3AADFF
	color white
.page
	&-section
		min-height 100vh
		&-header
			width 100%
			&-title
				font-size 2.5em
				margin-bottom 1em
				font-weight 300
		&-wrapper
			width 100%
			padding 10%
			box-sizing border-box
		display flex
		flex-wrap wrap
		align-items center
		text-align center
            
          
!
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