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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                h1 Lemon
.artbot
	.bb8
		.bb8-body
			.circle.circle-1
			.circle.circle-2
			.circle.circle-3
.credits
	p A simple test of PUG+SASS inspired by bb8 animation from <a href="https://codepen.io/devtips/pen/xZdJaE">DevTips</a>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Abel')


$myfont : Abel, sans-serif

*
	box-sizing: border-box
body
	background: #eee
	font: 20px $myfont
h1
	text-align: center
	font: 200% $myfont
.artbot
	margin: auto
	background-color: skyblue
	width: 20em
	height: 20em
	box-shadow: 0px 3px 20px rgba(0,0,0,0.2)
	border-radius: 4px
	border: 20px white solid
	position: relative
.bb8
	// background: #CCC
	width: 4em
	height: 4em	
	position: absolute
	top: 7em
	left: 7em
	.bb8-body
		width: 4em
		height: 4em
		background: lemonchiffon
		border-radius: 0 50%
		border: solid 8px
		overflow: hidden
		position: absolute
		animation: spin 3s linear infinite
	
		.circle
			width: 2em
			height: 2em
			border: 3px solid
			border-radius: 0 50%
			position: absolute
			background-color: #FFCC00
		.circle-1
			left: -1em
			top: 0em
		.circle-2
			left: 2em
			top: 2em
		.circle-3
			left: 1.6em
			top: 0.3em
			width: 1em
			height: 1em

	
@keyframes spin
	0%
		transform: rotate(360deg)
	100%
		transform: rotate(0deg)

.credits
	text-align : center
              
            
!

JS

              
                
              
            
!
999px

Console