Pen Settings

HTML

CSS

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

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

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.

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

              
                <div class="container">
	<form>
		<div class="field" tabindex="1">
			<label for="username">
				<i class="far fa-user"></i>Your Name
			</label>
			<input name="username" type="text" placeholder="e.g. john doe" required>
		</div>
		<div class="field" tabindex="2">
			<label for="email">
				<i class="far fa-envelope"></i>Your Email
			</label>
			<input name="email" type="text" placeholder="email@domain.com" required>
		</div>
		<div class="field" tabindex="3">
			<label for="message">
				<i class="far fa-edit"></i>Your Message
			</label>
			<textarea name="message" placeholder="type here" required></textarea>
		</div>
		<button type="reset">Send Me Message</button>
		<div class="social-media">
			<span>
				Get In Touch<i class="fas fa-long-arrow-alt-right"></i>
			</span>
			<a class="fab fa-facebook-f" href="https://facebook.com/uzcho" target="blank_"></a>
			<a class="fab fa-twitter" href="https://twitter.com/uzcho_" target="blank_"></a>
			<a class="fab fa-instagram" href="https://www.instagram.com/uzcho_" target="blank_"></a>
			<a class="fab fa-codepen" href="https://codepen.io/uzcho_" target="blank_"></a>
		</div>
	</form>
</div>

<!-- This is not part of Pen -->
<a class="me" href="https://codepen.io/uzcho_/pens/popular/?grid_type=list" target="_blank" style="color:#000"></a>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Saira+Semi+Condensed&display=swap');

$all: all .5s ease;
$sai: 'Saira Semi Condensed', sans-serif;

*{
    @include tf($tf-fm: $sai);
    @include other($ot-tsi: $all)
}

body{
    background: #dfdfdf
}

.container{
    @include bm(100%, 100%, $bm-pd: 0 16px, $bm-dp: $fl);
    @include flex-center($rnw)
}

form{
    @include bm(400px, $bm-dp: $fl);
    @include flex-center($cw);
        div, label, input, textarea{
            @include bm(100%)
        }
}

.field:nth-of-type(2){
    @include bm($bm-mg: 16px 0)
}

label, input, textarea{
    @include bm($bm-pd: 8px)
}

label, [placeholder]{
    @include tf(#555)
}

label i{
    @include bm($bm-mg: 0 10px 0 0)
}

.field:focus-within label{
    @include tf(#000, $tf-ls: 2px)
}

input, textarea{
    background: rgba(255,255,255,.5);
    border: none;
    @include other($ot-br: 4px, $ot-bs: $o-b);
        &:focus{
            background: rgba(255,255,255,1);
            @include other($ot-bs: none)
        }
}

textarea{
    resize: none;
        &::-webkit-scrollbar{
            @include bm(0)
        }
}

button{
    background: #2f4ad0;
    @include bm($bm-pd: 8px 16px, $bm-mg: 16px 0 50px 0);
    @include tf(#fff);
    border: none;
    @include other($ot-br: 4px, $ot-cr: pointer, $ot-bs: $o-b);
        &:hover{
            @include tf($tf-ls: 2px);
            @include other($ot-bs: none)
        }
}

.social-media{
    @include bm($bm-dp: $fl);
    @include fb($rw, $fb-jc: $sa);
        :not(&){
            @include tf($tf-fs: 14px)
        }
        span{
            @include tf($tf-fs: 16px)
        }
        span .fas{
            @include bm($bm-mg: 0 0 0 10px)
        }
        a{
            @include tf(#000, $tf-fs: 20px)
        }
}

@media (max-width: 425px){
    form{
        @include bm(100%)
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console