Pen Settings



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


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


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.


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.


                h1 CLICK THE BABY!
		div.msg Kathlyn : Hey! what's up?
		div.msg Kevin : Heya! Nothing much, you?
			input(type="text").chat-input Send


                $thumb-size: 4em
$thumb-offset: 2em
$primary-col: #80D49E
$online-col: #4DFF00

$chat-bar-height: 25em

=flex($type, $direction, $position)
	display: $type
	flex-flow: $direction
	justify-content: $position

	+flex(flex, column wrap, flex-start)
	background: #DDFFE8
	+flex(flex, column wrap, center)
	text-align: center
	position: absolute
	bottom: $thumb-offset
	left: $thumb-offset
	border-radius: 100%
	background: url('') no-repeat
	background-size: 150%
	background-position: 50% 0%
	width: $thumb-size
	height: $thumb-size
	transition: all .25s
		position: absolute
		height: $thumb-size / 4
		width: $thumb-size / 4
		border-radius: 100%
		background: $online-col
		right: 0
		top: 0
		border: 2px solid #FFF

	transform: scale(1.5)
	cursor: pointer
	border: solid 4px $online-col
	box-shadow: 0px 15px 10px 1px rgba(0,0,0,0.2)
		border: none
	@extend .chat-bubble-hover

	position: absolute
	left: 30%
	top: 0%
	+flex(flex, column wrap, space-between)
	height: 25em
	min-width: 20em
	padding: .1em
	background: #FFF
	transition: all 1s
	border-radius: 2px
	box-shadow: 0px 10px 10px 1px rgba(53, 127, 115, 0.8)
		+flex(flex, column wrap, flex-end)
		margin: 0 auto
		border: 1px solid darken(#FFF, 20%)
		border-radius: 5px
		height: 80%
		width: 98%
		background: linear-gradient(transparent, transparentize($primary-col, 0.8))
			+flex(flex, column wrap, center)
			margin: .3em 1em
			height: 25px
		+flex(flex, column wrap, center)
		background: linear-gradient(90deg, #3DCC70, lighten(#3DCC70, 10%))
		height: 19%
			width: 100%
			height: 100%
			+flex(flex, row wrap, center)
				height: 50%
				background: lighten(#3DCC70, 10%)
				width: 70%
				border-radius: 5px
				margin: auto
				border: none
				padding: 0 .5em 0 .5em
				transition: all .7s
				color: #FFF
				background: lighten(#3DCC70, 30%)
				outline: none
				color: #000
				+flex(flex, column wrap, center)
				width: 20%
				height: 50%
				margin: auto
				background: darken(#3DCC70, 10%)
				border: none
				text-align: center
				color: #FFF
				transition: all .25s
				border-radius: 2px
				background: lighten(#3DCC70, 30%)
				cursor: pointer
				color: darken(#3DCC70, 30%)
				outline: none
	top: -$chat-bar-height * 1.1
	opacity: 0