css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              mixin getCheckbox(id, title, checked, disabled)
	input.android-checkbox(type="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("//fonts.googleapis.com/css?family=Roboto400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic&subset=latin,cyrillic")
@import url("https://fonts.googleapis.com/icon?family=Material+Icons")
	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
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................