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

              
                .container
	%h1 The Powerpuff Girls
	.girls-container
		.ppgirl.bubbles
			.pony-tail
				%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"78px", :'height'=>"105px", :'viewbox'=>"0 0 78 105", :'enable-background'=>"new 0 0 78 105" }
					%path{ :'fill'=>"#FDED62", :'stroke'=>"#000000", :'stroke-width'=>"5", :'stroke-miterlimit'=>"10", :'d'=>"M66.959,18.854c-4.48-11.521-34.875-22.462-53.338-4.621C-5.212,29.859,9.812,52.333,9.812,52.333S37.984,87,7.466,101c0,0,25.346,2.333,65.806-27.592C71.205,52.466,69.439,31.708,66.959,18.854z" }
			.head
				.eye.left
					.pupil
				.eye.right
					.pupil
				.mouth
				.hair
			.body
				.dress
			.arm.left
			.arm.right
			.leg.left
			.leg.right
			.shadow-container.bubbles
				.shadow
		.ppgirl.buttercup
			.head
				.eye.left
					.pupil
				.eye.right
					.pupil
				.mouth
				.fringe
					.gap
						%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"46px", :'height'=>"50px", :'viewbox'=>"0 0 46 50", :'enable-background'=>"new 0 0 46 50" }
							%path{ :'fill'=>"#FCDDC9", :'stroke'=>"#000000", :'stroke-width'=>"0", :'stroke-miterlimit'=>"10", :'d'=>"M42.403,47.042 c-7.798-35-38.997-44.375-38.997-44.375c6.297,13.504,3.467,44.592,3.467,44.592L42.403,47.042z" }
							
			.hair
			.body
				.dress
			.arm.left
			.arm.right
			.leg.left
			.leg.right
			.shadow-container.buttercup
				.shadow
		.ppgirl.blossom
			.knot
			.bow.left
				%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"75px", :'height'=>"130px", :'viewbox'=>"0 0 75 130", :'enable-background'=>"new 0 0 75 130" }
					%path{ :'fill'=>"#D82E39", :'stroke'=>"#000000", :'stroke-width'=>"5", :'stroke-miterlimit'=>"10", :'d'=>"M36.333,2.116c0,0-43.021,47.929-30.354,123.55h63.667C81.312,51.11,36.333,2.116,36.333,2.116z" }
			.bow.right
				%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"75px", :'height'=>"130px", :'viewbox'=>"0 0 75 130", :'enable-background'=>"new 0 0 75 130" }
					%path{ :'fill'=>"#D82E39", :'stroke'=>"#000000", :'stroke-width'=>"5", :'stroke-miterlimit'=>"10", :'d'=>"M36.333,2.116c0,0-43.021,47.929-30.354,123.55h63.667C81.312,51.11,36.333,2.116,36.333,2.116z" }
			.head
				.eye.left
					.pupil
				.eye.right
					.pupil
				.mouth
				.hair
					%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"246px", :'height'=>"78px", :'viewbox'=>"0 0 246 78", :'enable-background'=>"new 0 0 246 78" }
						%path{ :'fill'=>"#F1A931", :'stroke'=>"#000000", :'stroke-width'=>"3", :'stroke-miterlimit'=>"10", :'d'=>"M11.876,65.855 c0,0,21.325-59.571,114.345-59.571c79.257,2.59,105.34,58.128,105.34,58.128l-23.088-3.498c0,0-15.328-29.041-39.994-34.374 c23.798,13.511,27.024,33.194,27.024,33.194c-11.371-0.868-52.44-3.609-52.44-3.609s-3.084-13.308-19.724-35.584 c-15.071,20.358-18.195,35.333-18.195,35.333s-45.22,2.631-58,3.695c0,0,4.851-20.356,28-34.028 c-30.667,11.667-39.99,35.601-39.99,35.601L11.876,65.855z" }
			.body
				.dress
			.arm.left
			.arm.right
			.leg.left
			.leg.right
			.hair
				%svg{ :'version'=> "1.1", :'xmlns'=>"http://www.w3.org/2000/svg", :'smlna:xlink'=>"http://www.w3.org/1999/xlink", :'x'=>"0px", :'y'=>"0px", :'width'=>"150px", :'height'=>"150px", :'viewbox'=>"0 0 150 150", :'enable-background'=>"new 0 0 150 150" }
					%path{ :'fill'=>"#F1A931", :'stroke'=>"#000000", :'stroke-width'=>"5", :'stroke-miterlimit'=>"10", :'d'=>"M114.979,8.875l-1.834,43.75c0,0-2.75,48.75,18.756,43.417 c0,0,4.202,28-53.798,29.333S17.547,96.253,17.547,96.253c28.911,8.789,23.264-44.279,23.264-44.279l-3-43.099H114.979z" }
			.shadow-container.blossom
				.shadow
              
            
!

CSS

              
                @import "compass";

body {
	
	.container {
		max-width: 600px;
		padding: 0;
		margin: 0 auto;
		min-height: 500px;
		position: relative;

		h1, h2 {
			font-family: "Chango", helvetica, arial, sans-serif;
			margin: 30px 0px;
			font-size: 46px;
			letter-spacing: -2px;
			color: #F86CB5;
			line-height: 60px;
			text-align: center;
			z-index: 30;
			position: relative;
    		text-shadow: -2px 0 white, 0 2px white, 2px 0 white, 0 -2px white;
		}

		:before, :after {
			position: absolute;
			content: "";
			width: 0;
			height: 0;
		}
	}
}

@mixin pair($position, $rotate: null, $child: null) {
	@if $child != null {
		&.left {
			.#{$child} { left: $position;
				@if $rotate != null {
					@include transform(rotate($rotate));
				}
			}
		}
		&.right {
			.#{$child} { right: $position;
				@if $rotate != null {
					@include transform(rotate(-$rotate));
				}
			}
		}
	} @else {
		&.left { left: $position; 
			@if $rotate != null {
				@include transform(rotate($rotate));
			}
		}
		&.right { right: $position;
			@if $rotate != null {
				@include transform(rotate(-$rotate));
			}
		}
	}
}

.girls-container {
	z-index: 10;
}

$character-width: 40px;
$character-height: 50px;

$skin-color: #FCDDC9;
$hair-color: #834435;

$head-height: 180px;

.ppgirl {
	height: $character-height + $head-height;
	width: $character-width;
	margin: 50px auto 0 auto;
	position: absolute;
	width: 246px;
	
	* {
		position: absolute;
	}
	
	$head-width: 230px;
	
	.head {
		top: 0;
		left: 0;
		width: $head-width;
		height: $head-height;
		background-color: $skin-color;
		border: 8px solid #000000;
		overflow: hidden;
		z-index: 30;
		
		.eye {
			top: 20px;
			width: 110px;
			height: 118px;
			border: 2px solid #000000;
			background: #FFFFFF;
			@include border-radius(50%);
			@include pair(-14px);
			overflow: hidden;
			
			.pupil {
				@include border-radius(inherit);
				height: 94%;
				width: 96%;
				
				&:before {
					@include border-radius(inherit);
					z-index: 5;
					height: 76%;
					width: 80%;
					background: #000000;
				}
				
				&:after {
					@include border-radius(inherit);
					z-index: 10;
					height: 26%;
					width: 30%;
					background: white;
				}
			}
		}
		
		.mouth {
			top: 78%;
			left: calc(50% - 15px);
			@include border-radius( 0 0 50% 50% / 10% 10% 90% 90%);
			height: 20px;
			width: 30px;
			border: 2px solid #000000;
			border-top-color: transparent;
		}
	}
	
	.body {
		top: 190px;
		left: calc(50% - (#{$character-width} / 2) - 5px);
		height: $character-height;
		width: $character-width;
		@include perspective(60px);
		z-index: 10;
		
		.dress {
			height: 100%;
			width: 100%;
			border: 5px solid #000000;
			@include transform(rotateX(-10deg) skewY(180deg));
			transform-origin: 0% 0%;
			
			&:after {
				top: 10px;
				height: 40%;
				width: 100%;
				background: #000000;
			}
		}
	}
		
	.arm {
		bottom: -2px;
		height: 35px;
		width: 30px;
		border: 5px solid #000000;
		background: $skin-color;
		@include border-radius(50%);
		@include pair(85px);
		z-index: 5;
	}
		
	.leg {
		bottom: -50px;
		height: 40px;
		width: 14px;
		background: #FFFFFF;
		@include border-radius(0 0 50% 50% / 0 0 30% 30% );
		border: 5px solid #000000;
		z-index: 5;
		overflow: hidden;
		
		&:before {
			bottom: -10px;
			left: -30%;
			height: 40px;
			width: 160%;
			border-bottom: 20px solid #000000;
			@include border-radius(50%);
		}
		
		&:after {
			bottom: 15px;
			width: 100%;
			border-bottom: 2px solid #000000;
		}
	}
		
	.foot {
		@include pair(20px);
	}
}

$blossom-color: #EC6B6F;

.blossom {
	top: 50px;
	left: calc(50% - (246px / 2));
	
	.knot {
		top: -20px;
		left: calc(50% - 15px);
		width: 30px;
		height: 30px;
		border-top: 5px solid #000000;
		background: #D82E39;
		@include border-radius( 50% 50% 0 0 / 10% 10% 0 0 );
	}
	
	.bow {
		width: 75px /*border*/;
		top: -110px;
		@include pair(12px, $rotate: -15deg);
	}
	
	.head {
		@include border-radius(50%);
		
		.hair {
			width: 246px;
			top: -12px;
			left: calc(50% - (246px / 2));
			z-index: 30;
		}
		
		.eye {
			
			.pupil {
				background: $blossom-color;
			}
				
			&.left .pupil {
				top: 3%;
				left: 14%;
				
				&:before {
					top: 8%;
					left: 16%;
				}
				
				&:after {
					top: 22%;
					right: 16%;
				}
			}
				
			&.right .pupil {
				top: 3%;
				left: 4%;
				
				&:before {
					top: 8%;
					left: 14%;
				}
				
				&:after {
					top: 22%;
					right: 20%;
				}
			}
		}
	}
	
	.body {
   	@include perspective-origin(50% 50%);
		
		.dress {
			background: $blossom-color;
		}
	}
	
	.leg {
		&.left {
			left: 100px;
		}
		&.right {
			right: 100px + 2px;
		}
	}
	
	.hair {
		bottom: -60px;
		left: calc(50% - 75px - 2px);
		height: 150px;
		width: 150px;
		z-index: 4;
	}
}

$buttercup-color: #46B82F;

.buttercup {
	top: 55px;
	right: 0%;
	
	.head {
		@include border-radius( 55% 45% 55% 40% / 55% 45% 55% 45% );
		
		.fringe {
			width: 240px;
			left: -10px;
			top: -10px;
			height: 100px;
			border-top: 60px solid #000000;
			@include border-radius(50% 50% 0 0 / 60% 60% 40% 40% );
			@include transform(rotate(-10deg));
			z-index: 40;
			
			.gap {
				height: 50px;
				width: 46px;
				left: 123px;
				top: -42px;
				z-index: 50;
				@include transform(rotate(8deg));
			}
		}
		
		.eye {
			
			.pupil {
				background: $buttercup-color;
			}
			
			&.right {
				top: 14px;
				right: -10%;
				@include transform(scaleX(0.8));
				
				.pupil {
					top: 3%;
					left: 3%;

					&:before {
						top: 10%;
						left: 14%;
					}

					&:after {
						top: 26%;
						right: 22%;
					}
				}
			}
			
			&.left {
				height: 130px;
				width: 126px;
				top: 32px;
				left: -2%;
				
				.pupil {
					top: 3%;
					left: 6%;

					&:before {
						top: 4%;
						left: 20%;
					}

					&:after {
						width: 24%;
						top: 16%;
						right: 10%;
					}
				}
			}
		}
		
		.mouth {
			@include transform(scaleY(0.7) skewX(-20deg));
			right: 34%;
			left: auto;
		}
	}
	
	.hair {
		top: -20px;
		left: 75px;
		width: 180px;
		height: 110px;
		border-bottom: 80px solid #000000;
		@include border-radius(50%);
		@include transform(rotate(-15deg));
	}
	
	.body {
   	@include perspective-origin(0% 50%);
		
		.dress {
			background: $buttercup-color;
		}
	}
	
	.leg {
		&.left {
			left: 100px - 2px;
		}
		&.right {
			right: 100px + 5px;
		}
	}
}

$bubbles-color: #38ACE5;
$bubbles-hair: #FDED62;

.bubbles {
	top: 55px;
	left: 0%;
	
	.pony-tail {
		top: 10px;
		left: -20px;
		@include transform(rotate(5deg));
	}
	
	.head {
		@include border-radius( 45% 55% 45% 50% / 45% 55% 45% 55% );
		
		.hair {
			top: -55px;
			left: -70px;
			height: 100px;
			width: 180px;
			background: $bubbles-hair;
			@include border-radius(50%);
			border: 3px solid #000000;
			@include transform(rotate(-10deg));
			z-index: 40;
			
			&:after {
				top: 40px;
				right: -140px;
				@include border-radius(inherit);
				height: 100%;
				width: 100%;
				@include transform(rotate(28deg));
				background: inherit;
				border: 3px solid #000000;
				border-left-color: transparent;
				z-index: 40;
			}
		}
		
		.eye {
			
			.pupil {
				background: $bubbles-color;
			}
			
			&.left {
				top: 14px;
				left: -10%;
				@include transform(scaleX(0.8));
				
				.pupil {
					top: 3%;
					left: 12%;

					&:before {
						top: 6%;
						left: 22%;
					}

					&:after {
						top: 14%;
						right: 15%;
					}
				}
			}
			
			&.right {
				height: 130px;
				width: 126px;
				top: 32px;
				right: -2%;
				
				.pupil {
					top: 3%;
					left: 8%;

					&:before {
						top: 8%;
						left: 10%;
					}

					&:after {
						width: 28%;
						top: 22%;
						right: 36%;
					}
				}
			}
		}
		
		.mouth {
			@include transform(scaleY(0.7) skewX(20deg));
			left: 34%;
		}
	}
	
	.body {
   	@include perspective-origin(100% 50%);
		
		.dress {
			background: $bubbles-color;
		}
	}
	
	.leg {
		&.left {
			left: 100px + 4px;
		}
		&.right {
			right: 100px;
		}
	}
}

.shadow-container {
	position: relative;
	height: 400px;
	width: 80%;
	margin-top: 70px;
	margin-left: 10%;
	@include perspective(30px);
	
	&.bubbles {
   	@include perspective-origin(80% 50%);
		
		> div {
			@include filter-gradient(#A3D0F1, #A3D0F1, vertical);
			@include background-image(linear-gradient(top,  rgba(#A3D0F1,1) 0%,rgba(#A3D0F1,0.2) 20%,rgba(#A3D0F1,0.1) 100%));
		}
	}
	
	&.blossom {
   	@include perspective-origin(50% 50%);
		@include perspective(80px);
		
		> div {
			@include filter-gradient(#f6a89e, #f6a89e, vertical);
			@include background-image(linear-gradient(top,  rgba(246,168,158,1) 0%,rgba(246,168,158,0.2) 30%,rgba(246,168,158,0.1) 100%));
		}
	}
	
	&.buttercup {
   	@include perspective-origin(20% 50%);
		
		> div {
			@include filter-gradient(#9CD07E, #9CD07E, vertical);
			@include background-image(linear-gradient(top,  rgba(#9CD07E,1) 0%,rgba(#9CD07E,0.2) 20%,rgba(#9CD07E,0.1) 100%));
		}
	}

	> div {
		position: absolute;
		bottom: 0px;
		width: 100%;
		height: 400px;
		z-index: -5;
		@include transform(rotateX(-16deg) skewY(180deg));
		transform-origin: 0% 0%;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console