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 getPlayerRow(imageURL, username, status)
			img(src=imageURL, alt=username)
		td.dota2-player-name= username
		td.dota2-player-status(class=status)= status

		img(src="https://s30.postimg.org/jplrjtj29/dota2.png", alt="Dota 2")
				caption.dota2-loading-details-caption MatchID: 1973674277
					span.dota2-loading-details-caption-mode All Pick
						th.dota2-loading-details-player-count(colspan="2") Players: 9/10
							time 00:34
						td.dota2-team-heading(colspan="3") The Radiant
					- var radiant = [{image: "http://avatarfiles.alphacoders.com/466/46.jpg", username: "Netofast", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/357/35767.jpg", username: "!!eDuU XD.I.", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/254/25476.jpg", username: "Finne", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/188/18834.jpg", username: "THC-CANNABIS *-*", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/276/27629.png", username: "Alucard", status: "ready"}]
					each player in radiant
						+getPlayerRow(player.image, player.username, player.status)
						td.dota2-team-heading(colspan="3") The Dire
					- var dire = [{image: "http://avatarfiles.alphacoders.com/666/6.jpg", username: "Bananna Peel", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/252/252.jpg", username: "Tai304", status: "loading"}, {image: "http://avatarfiles.alphacoders.com/317/317.jpg", username: "JOHN MCCLANE", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/255/255.jpg", username: "MR. Miyagi", status: "ready"}, {image: "http://avatarfiles.alphacoders.com/239/239.jpg", username: "SonarEclipse", status: "ready"}]
						each player in dire
							+getPlayerRow(player.image, player.username, player.status)
              // colours
$bodyBackground ?= black
$bodyTextColour ?= invert($bodyBackground)
$sidebarColour ?= #25292E
$dotaGreen ?= #2C7020
$sidebarInnerColour ?= #151719
$sidebarPlayerTextColour ?= #949494
	font-size 1.4em
	text-transform uppercase
	line-height 1.4
@font-face{font-family:'Radiance';src:url("http://cdn.dota2.com/apps/dota2/fonts/radiance.eot");src:url("http://cdn.dota2.com/apps/dota2/fonts/radiance.eot?#iefix") format("embedded-opentype"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance.woff") format("woff"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance.ttf") format("truetype"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance.svg#ywftsvg") format("svg");font-weight:normal;font-style:normal}@font-face{font-family:'Radiance-SemiBold';src:url("http://cdn.dota2.com/apps/dota2/fonts/radiance-semibold.eot");src:url("http://cdn.dota2.com/apps/dota2/fonts/radiance-semibold.eot?#iefix") format("embedded-opentype"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance-semibold.woff") format("woff"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance-semibold.ttf") format("truetype"),url("http://cdn.dota2.com/apps/dota2/fonts/radiance-semibold.svg#ywftsvg") format("svg");font-weight:normal;font-style:normal}

	height 100%
	height 100%
	background-color black
	font-family "Radiance", Verdana
	color white
	display table
	height 100%
		text-transform uppercase
		font-weight bold
		padding 1em 0
		& + &
				padding-top 0.4em
			vertical-align middle
			text-align right
			text-transform uppercase
				transition 0.7s ease opacity
					opacity 1
				opacity 0.6
				cursor wait
					content "..."
				color $dotaGreen
				font-weight bold
		&-image img
			max-width 2.5em
		display table-cell
		vertical-align middle
		text-align center
		width 100%
			@extend $table-heading
			text-align left
			text-transform uppercase
			@extend $table-heading
			text-align right
			text-align initial
			margin-bottom 1.5em
				float right
		display table-cell
		padding 2em 1em 1em 1em
		background $sidebarColour
				padding 1em
				background $sidebarInnerColour
				box-shadow inset 0 0 1.5em black
			min-width 23em
🕑 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 ..................