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

              
                .container
	.card.smith
		blockquote ES6 is a large and important update to JavaScript that I'm really excited about. Whether you are building with a framework like React or websites in Vanilla JS, you are going to love everything about ES6. Wes' tutorials are among some of the best in our industry — I'd recommend learning ES6 with Wes to anyone looking to modernize and improve their JS skillset.
		section.info
			span.rectangle
			img(src="https://es6.io/images/dan.jpeg", alt="")
			cite Dan Abramov
				span.name <strong>@dan_abramov</strong>
				span.work React.js Core Developer • Creator of Redux • Facebook Engineer
			
	.card.nicole
		blockquote Wes is one of the most talented teachers I have ever seen in action. Since we started working together in 2012, his knowledge, energy and humour has helped 500+ students break past difficult learning hurdles and given them the skills and confidence to create amazing things. HackerYou wouldn’t be the same without Wes on our instructor team, and anyone who has the chance to learn from him should prepare to be inspired and delighted.
		section.info
			span.rectangle
			img(src="https://es6.io/images/heather.jpg", alt="")
			cite Heather Payne
				span.name <strong>@heatherpayne</strong>
				span.work CEO of HackerYou • Founder of Ladies Learning Code
              
            
!

CSS

              
                body
	background: #c5c5c5
	margin: 20px
	font-family: 'Nunito Sans', sans-serif
.container
	display: flex
	@media(max-width: 940px)
		display: block
		padding: 1em
	.card
		box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)
		background: #fff
		height: 100%
		width: 50%
		border-radius: 3px
		&:nth-child(1)
			margin-right: 2em
			width: 40%
			@media(max-width: 940px)
				margin-right: 0
				width: 100%
				padding-bottom: 0
		&:nth-child(2)
			width: 60%
			@media(max-width: 940px)
				margin-top: 2em
				width: 100%
				padding-bottom: 0
		blockquote
			&:before,
				content: '"'
				padding-right: 0.5em
			&:after
				content: '"'
				padding-left: 0.5em
		@media(max-width: 940px)
			width: 100%
			padding: 1em 0
		.info
			border-bottom-left-radius: 3px
			border-bottom-right-radius: 3px
			background: #F7F7F7
			padding: 1em
			border-top: 1px solid #ccc
			position: relative
			&:after
				content: ""
				display: table
				clear: both
			span.rectangle
				&:after
					content: ''
					position: absolute
					left: 120px
					top: -10px
					transform: rotate(45deg)
					width: 20px
					height: 20px
					background: #fff
					border-right: 1px solid #ccc
					border-bottom: 1px solid #ccc
					display: block
			@media(max-width: 940px)
				margin: 0
			img
				border-radius: 50%
				display: block
				width: 100px
				margin: 10px 20px 0 0
				border: 3px solid #fff
				float: left
			cite
				display: block
				font-size: 20px
				margin-top: 20px
				@media (max-width: 480px)
					font-size: 16px
				span
					font-size: 12px
					position: relative
					margin-left: 20px
					cursor: pointer
					bottom: 3px
				.name
					@media (max-width: 414px)	
						margin-left: 0
						display: inline-block
				strong
					border-bottom: 1px solid orangered
					@media (max-width: 414px)
						display: block
						width: 85px
						margin-top: 10px
				.work
					display: block
					margin-top: 1em
					border-bottom: none
					font-style: normal
					@media (max-width: 320px)
						margin-top: 4em
              
            
!

JS

              
                
              
            
!
999px

Console