Pen Settings



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


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.


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.


                mixin getCheckbox(id, title, checked, disabled)"checkbox", id="#{id}" checked!=checked disabled!=disabled)
mixin getLinkOption(label, description)
		a.setting-link(href="#")!= label
		if description
				p.setting-detail-text!= description
mixin getOption(label, icon, description, checked, disabled)
		- var slugifiedLabel = label.split(" ").concat("-");
		- var additionalClassNames = disabled ? "disabled" : null;
			label.setting-label(for=slugifiedLabel)!= label
			+getCheckbox(slugifiedLabel, description, checked, disabled)
		if description
				p.setting-detail-text!= description
mixin getButton(icon, title)
		if block
		if icon
			span(class="android-icon material-icons")!= icon
mixin getFieldset(title)
		legend.settings-container-heading!= title
		if block
				+getButton("keyboard_backspace", "Go back")
					+getOption("Developer options", null, null, true)
				+getButton("more_vert", "More options")
				+getLinkOption("Take bug report")
				+getLinkOption("Desktop backup password", "No password set for device backup to desktop")
				+getOption("Stay awake", null, "Screen will never timeout without charging")
				+getOption("Enable Bluetooth HCI snoop log", null, "Capture all bluetooth HCI packets in a file")
				+getOption("Enable OEM unlock", null, "Allow the device to be OEM unlocked", true)
				+getLinkOption("Running Services", "View and control currently running services")
					+getOption("USB debugging", null, "Debug mode when USB is connected", true)
					+getLinkOption("Revoke USB debugging authorizations")
					+getOption("Power menu bug reports", null, "Include option in power menu for taking a bug report", true)
					+getLinkOption("Select mock location app", "No mock location app set up")
					+getOption("Enable view attribute inspection")
					+getLinkOption("Select debug app", "No debug application set")
					+getOption("Wait for d&#101;bugger", null, "Debugged application waits for d&#101;bugger to attatch before executing", false, true)
					+getOption("Verify apps over USB", null, "Check apps installed via ADB/ADT for harmful behavior")
					+getLinkOption("Logger buffer sizes", "256k per log buffer")
						+getOption("Wireless display certification", null, "Show options for wireless display certification")


                // demo purposes
/* -- import Roboto Font -- */
@import url("//,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic&subset=latin,cyrillic")
@import url("")
	background radial-gradient(#333, hsl(200,30%,6%))
	font-family "RobotoDraft", "Roboto", "Helvetica Neue, Helvetica, Arial", sans-serif
	&-camera, &-camera2, &-speaker
		display inline-block
		vertical-align middle
		width 1.3em
		height 1.3em
		background radial-gradient(#333, #000, #555, #ddd)
		border-radius 50%
		margin 0 2em 0 1em
		border-radius 30%
		background radial-gradient(#333, hsl(200,30%,6%))
		width 2em
		height 1em
		margin-right 0.2em
		border-radius 4em
		width 4em
		height 0.5em
		background radial-gradient(#333, hsl(200,30%,6%))
		height 2.3em
		padding 0.75em
		height 2.5em
		background linear-gradient(#ddd, hsl(200,60%,5%))
		margin-top 1em
		border-bottom-right-radius 2.5em
		border-bottom-left-radius 2.5em
		width 20em
		// position relative
		height 35em
		border-top-right-radius 2.5em
		border-top-left-radius 2.5em
		margin 5% auto
		background #000
		//position absolute
		//max-height 80%
		// overflow-y scroll
		//width 100%
		margin 0 0.75em
		background white
		overflow-y scroll
		height 86%
		float right
		border 0
		cursor pointer
		display inline-block
		background transparent
		padding 0.4em 0
	padding 1em 0
	& + &
		border-top 0.1em solid #ccc
		font-weight 500
		font-size 1.07em
		display inline-block
		cursor pointer
			margin-top 0.5em
			font-size 0.8em
			opacity 0.6
		padding 0 0.5em
			background white - 15
				background #ddd
				display block
				text-transform uppercase
				font-size 0.7em
				width 100%
				padding 1em 1em 0.5em 1em
				box-sizing border-box
				font-weight bold
			border-bottom 0.1em solid #ccc
				border-bottom 0
				padding 0
				width 13em
				display inline-block
				vertical-align middle
				font-weight bold