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

              
                <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'><!-- STYLUS wasn't liking my ligher font-size? -->

<div class="banner">
		<span>minimalist flat ribbon</span>
</div><!--end banner-->

<span>--intentional cut-off text--</span>
              
            
!

CSS

              
                /* VARIABLES */
$color = #4FC1E9
$font = 'Open Sans', sans-serif

/* CUSTOM MIXINS */
absolutePos(topPos, rightPos)
	content ""
	position absolute
	top topPos
	right rightPos

font()
	font-family $font
	font-weight lighter
	font-size 25px
	color #fff
	
size(h, w)
	height h
	width w

skewed(deg)
	-ms-transform skewY(deg)
	-webkit-transform skewY(deg)
	transform skewY(deg)

/* BANNER STYLES */
.banner
	position relative
	size 60px, 310px
	margin 100px auto
	background $color + 20
	font()
	&::before
		absolutePos -16px, 0
		size 60px, 90px
		skewed 20deg
		background $color - 5
	&::after
		absolutePos -32px, 20px
		size 60px, 70px
		background $color + 30
	span
		display block
		padding-top 10px
		&::before
			absolutePos 50px, 180px
			size 60px, 170px
			background $color - 14
			z-index -9
		&::after
			absolutePos 60px, 180px
			border-top 0px solid transparent
			border-bottom 50px solid transparent
			border-right 130px solid $color - 5
			
body
	font-family $font
	text-align center
	color #ddd
              
            
!

JS

              
                /* NO JS SILLY */
              
            
!
999px

Console