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 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

Packages

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.

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 Mike Wazowski in Pure CSS
	.mike
		.horn.left
		.horn.right
		.head
		.body
			.eyebrow
			.eye
				.eyelid
					.lid
				.eye-ball
					.pupil
			.mouth
				.lip-top
				.top-teeth-container
					- 9.times do
						%span
				.bottom-teeth-container
					- 4.times do
						%span
				.shadow
			.dimple-shadow.left
			.dimple-shadow.right
			.lip-bottom
		.shoulder.left
		.shoulder.right
		.upper-arm.left
			.lower-arm
				.hand
					.thumb
					.hand-shadows
						- 3.times do
							%span
					.fingers
						%span
						- 2.times do
							%span
								%span
		.upper-arm.right
			.shadow
			.lower-arm
				.hand
					.thumb
					.hand-shadows
						- 3.times do
							%span
					.fingers
						%span
						- 2.times do
							%span
								%span
		.thigh.left
		.leg.left
		.foot.left
			- 3.times do
				%span
		.thigh.right
		.leg.right
		.foot.right
			- 3.times do
				%span
		.shadow
              
            
!

CSS

              
                body {
	background-color: #b289b1;
	background-image: radial-gradient(#b289b1 0%,#5d3a62 100%);
}

.container {
	max-width: 550px;
	padding: 0 30px;
	margin: 0 auto;
	min-height: 350px;
	
	h1 {
		font-family: "helvetica neue", helvetica, arial, sans-serif;
		margin: 20px 20px;
		font-size: 40px;
		letter-spacing: 0.5px;
		color: #FFFFFF;
		text-align: center;
		font-weight: 100;
	}
}

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

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

$m-height: 150px;
$m-width: 180px;
$m-color: #B3D33F;
$m-shadow: rgba(#555555, 0.4);

.mike {
	height: $m-height;
	width: $m-width;
	margin: 60px auto;
	position: relative;
	
	* {
		position: absolute;
	}
	
	.horn {
		top: -18px;
		height: 30px;
		width: 15px;
		background: #E5D8A7;
		@include pair(36px, -35deg);
		box-shadow: inset 0px -1px 8px 2px rgba(0,0,0,0.5),
				inset 1px 9px 10px -8px rgba(0,0,0,0.7);
		
		&.left {
			border-radius: 90% 2% 5% 20% / 98% 2% 5% 5%;
		}
		
		&.right {
			border-radius: 2% 90% 20% 5% / 2% 98% 5% 5%;
		}
	}
	
	$head-size: 170px;
	$head-rotateZ: 45deg;
	$head-rotateY: 30deg;
	
	.head {
		top: -21px;
		left: calc(50% - (#{$head-size} / 2));
		background: $m-color;
		border-radius: 45% 40% 65% 40%;
		height: $head-size;
		width: $head-size;
		border-bottom: 1px solid transparent;
		transform: rotateY($head-rotateY) rotateZ($head-rotateZ);
		box-shadow: inset 10px -15px 30px -5px rgba(0,0,0,0.3);
		
		&:before {
			height: 100%;
			width: 100%;
			border-radius: 45% 40% 60% 40%;
			background: $m-color;
			background: radial-gradient(farthest-side, rgba($m-color, 0) 80%, rgba(#555555, 0.25) 100%);
		}
	}
	
	.body {
		height: $m-height;
		width: $m-width;
		border-radius: 50%;
		background: $m-color;
		box-shadow: inset 25px -15px 30px -5px rgba(0,0,0,0.3);
		
		&:before {
			height: 100%;
			width: 100%;
			border-radius: 50%;
			background-color: rgba(255,255,255,0);
			background-image: radial-gradient(rgba(#FFFFFF, 0), rgba(#CCCCCC, 0) 45%, $m-shadow 100%);
		}
		
		$eye-size: 90px;
		
		.eye {
			height: $eye-size;
			width: $eye-size;
			top: -15px;
			left: calc(50% - (#{$eye-size} / 2));
			z-index: 2;
			border-radius: 50%;
			box-shadow: 0 2px 8px 0 rgba(0,0,0,0.4),
				inset 0 -30px 5px 0 rgba(0,0,0,0.3);
			
			&:after {
				width: 105%;
				height: 100%;
				bottom: -8%;
				left: calc(50% - (105% / 2));
				border-radius: 50%;
				background-color: rgba(255,255,255,0);
				background-image: radial-gradient(circle at 50%,
					rgba(255,255,255,0) 0%,
					rgba(106,125,32,0.2) 90%,
					rgba(97,117,19,0.33) 92%,
					rgba(97,117,19,1) 100%);
				z-index: -1;
			}
			
			.eyelid {
				width: 100%;
				height: 100%;
				overflow: hidden;
				border-radius: 50%;
				z-index: 3;
				
				.lid /* eyelid */ {
					top: -1px;
					left: calc(50% - 60%);
					width: 120%;
					height: 160%;
					background-color: rgba(255,255,255,0);
					background-image: radial-gradient(circle at 50% 80%,
						rgba(255,255,255,0) 0%,
						rgba(255,255,255,0) 70%,
						rgba(#4c531e,1) 73%,
						rgba($m-color,1) 78%,
						rgba($m-color,1) 100%);
					border-radius: 50%;
					z-index: 3;
					box-shadow: inset 0 3px 6px 0 rgba(0,0,0,0.5);
				}
				
				&:after /* eyelid shadow top */ {
					top: -1px;
					left: calc(50% - 50%);
					width: 100%;
					height: 100%;
					background-color: rgba(255,255,255,0);
					background-image: radial-gradient(
						farthest-side at 50% 55%,
						rgba(255,255,255,0) 0%,
						rgba(#617513,0) 88%,
						rgba(#617513,1) 95%);
					border-radius: 50%;
				}
			}
		
			.eye-ball {
				height: 100%;
				width: 100%;
				background: #FFFFFF;
				background-image: radial-gradient(circle at 50% 20%, #fcfcfc, #efeff1 45%, #a38f8f 100%);
				border-radius: 50%;
				transform: rotate(45deg);
				box-shadow: inset -4px -15px 20px -10px rgba(0,0,0,0.3);

				&:after {
					top: -22%;
					left: 0;
					width: 100%;
					height: 100%;
					border-radius: 50%;
					background: rgba(255,255,255, 0);
					background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8) 14%, rgba(255, 255, 255, 0) 24%);
				}

				$pupil-color: #187A5C;

				.pupil {
					width: 45%;
					height: 45%;
					margin: 35% 30% 30% 35%;
					border-radius: 50%;
					background: $pupil-color;
					background-image: radial-gradient(circle at 50% 50%, #91d6c0 0%, $pupil-color 30%, #000000 100%);
					
					$pupil-size: 37.5%;
					
					&:before {
						display: block;
						width: $pupil-size;
						height: $pupil-size;
						border-radius: 50%;
						top: 31.25%;
						left: calc(50% - (#{$pupil-size} / 2));
						background: black;
					}
					
					$pupil-highlight-size: 31.25%;

					&:after {
						display: block;
						width: $pupil-highlight-size;
						height: $pupil-highlight-size;
						border-radius: 50%;
						top: 18.75%;
						right: calc(50% - (#{$pupil-highlight-size} / 2));
						background: rgba(255, 255, 255, 0.2);
					}
				}
			}
		}
		
		$eyebrow-width: $eye-size + 12px;
		
		.eyebrow {
			height: $eye-size * 1.5;
			width: $eyebrow-width;
			top: -30px;
			left: calc(50% - (#{$eyebrow-width} / 2));
			border-top: 1px solid #77882B;
			border-radius: 50%;
			background-color: rgba(255,255,255,0);
			background-image: radial-gradient(circle at 50% 35%,
				rgba(#4c531e,1) 0%,
				rgba(#4c531e,1) 36%,
				rgba($m-color,1) 41%,
				rgba($m-color,0) 59%);
			z-index: 1;
			
			&:before {
				height: 50%;
				width: 100%;
				border-radius: 50%;
			}
		}
		
		$mouth-width: 106px;
		$mouth-height: 28px;
		$mouth-border-radius: 0 0 50% 50% / 0 0 100% 100%;
		$lip-color: darken($m-color, 15%);
		$mouth-bottom-position: 28px;
		
		.mouth {
			width: $mouth-width;
			height: $mouth-height;
			bottom: $mouth-bottom-position;
			left: calc(50% - (#{$mouth-width} / 2));
			background: #111111;
			border-radius: $mouth-border-radius;
			z-index: 2;
			box-shadow: inset 0px 4px 10px 0 rgba(0,0,0,0.7);
			
			&:before, &:after {
				top: -9px;
				width: 0;
				height: 0;
				border-style: solid;
				border-width: 0 5px 20px 7px;
				border-color: transparent transparent #444e1e transparent;
				z-index: 9;
			}
			
			$corner-position: -5px;
			$corner-rotate: 50deg;
			
			&:before /*corner*/ {
				left: $corner-position;
				transform: rotate(-$corner-rotate);
			}
			
			&:after /*corner*/ {
				right: $corner-position;
				transform: rotate($corner-rotate);
			}
			
			$lip-spacing: 4px;
			
			.lip-top {
				box-shadow: 0px 1px 2px 0px rgba(0,0,0, 0.3),
					inset 0 -1px 2px 0 rgba(0,0,0,0.3),
					inset 0 3px 3px -3px rgba(255,255,255,0.5);
				top: -1px;
				left: $lip-spacing;
				height: 5px;
				width: calc(100% - (#{$lip-spacing} * 2));
				background: $lip-color;
				z-index: 14;
				border-radius: 10% 10% 50% 50% / 1% 1% 90% 90%;
			}

			$tooth-width: 18px;
			
			.top-teeth-container,
			.bottom-teeth-container {
				border-radius: $mouth-border-radius;
				width: $mouth-width;
				height: $mouth-height;
				overflow: hidden;
				z-index: 13;
				box-shadow: inset 0px 5px 2px 0px rgba(0, 0, 0, 0.5);
				
				span {
					height: 12px;
					width: $tooth-width;
					background-color: rgb(173,166,130);
					background-image: linear-gradient(180deg, rgba(173,166,130,1) 0%,rgba(173,166,130,1) 0%,rgba(216,202,160,1) 45%,rgba(216,202,160,1) 45%,rgba(216,202,160,1) 60%,rgba(234,227,205,1) 69%);
					border: 1px solid rgba(0,0,0,0.3);
					margin: 0;
					border-radius: 50%;
					box-shadow: inset 0px -4px 4px -4px rgba(0,0,0,1);
				}
			}
			
			.top-teeth-container {
				
				@mixin pointed-teeth($position) {
					-webkit-clip-path: polygon($position 100%, -50% 0%, 150% 0%);
					clip-path: polygon($position 100%, -60% 0%, 160% 0%);
					overflow: hidden;
					$secondary-position: calc(100% - #{$position});
					border-radius: 0% 0% #{$secondary-position} #{$position} / 0% 0% 100% 100%;
				}
				
				span {
					top: 0px;
					border-top: none;
					border-radius: 0 0 50% 50% / 0 0 100% 100%;
					@include pointed-teeth(50%);
					
					$top-teeth: 9;
					$teeth-start-position: -4px;
					
					$wisdom-space: 9px;
					$molar-space: 6px;
					$canine-space: 2px;
					
					@for $i from 1 through $top-teeth {
						&:nth-of-type(#{$i}) {
							$leftright: null;
							$teeth-left: null;
							@if $i < 6 {
								$leftright: left;
								$teeth-left: $teeth-start-position + (($tooth-width - 2px) * ($i - 1));
							} @else {
								$leftright: right;
								$teeth-left: $teeth-start-position + (($tooth-width - 2px) * ($top-teeth - $i));
							}
							@if $i == 1 or $i == 9 {
								#{$leftright}: $teeth-start-position;
							} @elseif $i == 2 or $i == 8 {
								#{$leftright}: $teeth-left - $wisdom-space;
							} @elseif $i == 3 or $i == 7 {
								#{$leftright}: $teeth-left - $wisdom-space - $molar-space;
							} @elseif $i == 4 or 5 or 6 {
								#{$leftright}: $teeth-left - $wisdom-space - $molar-space - $canine-space;
							}
							@if $i > 5 {
								z-index: (10 - $i);
							}
						}
					}
					
					&:nth-of-type(1), &:nth-of-type(9) {
						top: -7px;
						box-shadow: 0 0 10px 0 rgba(0,0,0,0.5);
					}
					
					&:nth-of-type(2) {
						top: -3px;
						@include pointed-teeth(40%);
					}
					
					&:nth-of-type(3) {
						@include pointed-teeth(40%);
					}
					
					&:nth-of-type(7) {
						@include pointed-teeth(60%);
					}
					
					&:nth-of-type(8) {
						top: -3px;
						@include pointed-teeth(60%);
					}
				}
			}
			
			.bottom-teeth-container {
				
				$bottom-tooth-width: $tooth-width - 2px;
				
				span {
					width: $bottom-tooth-width;
					border-bottom: none;
					border-radius: 50% 50% 0 0 / 100% 100% 0 0;
					-webkit-clip-path: polygon(50% 0, -50% 100%, 150% 100%);
					clip-path: polygon(50% 0, -50% 100%, 150% 100%);
					overflow: hidden;
					
					$bottom-teeth: 4;
					$teeth-start-position: 20px;
					
					@for $i from 1 through $bottom-teeth {
						&:nth-of-type(#{$i}n) {
							left: $teeth-start-position + ($bottom-tooth-width * ($i - 1));
						}
					}
					
					&:nth-of-type(1) {
						border-radius: 30% 70% 0 0 / 100% 100% 0 0;
						bottom: -4px;
					}
					
					&:nth-of-type(2) {
						border-radius: 40% 60% 0 0 / 100% 100% 0 0;
						bottom: -5px;
					}
					
					&:nth-of-type(3) {
						border-radius: 60% 40% 0 0 / 100% 100% 0 0;
						bottom: -5px;
					}
					
					&:nth-of-type(4) {
						border-radius: 70% 30% 0 0 / 100% 100% 0 0;
						bottom: -4px;
					}
				}
			}
			
			.shadow {
				width: 115px;
				height: 78px;
				left: calc(50% - (115px / 2));
				bottom: -7px;
				border-radius: 50%;
				box-shadow: -4px 13px 11px -12px rgba(0, 0, 0, 0.6);
			}
		}

		.dimple-shadow {
			bottom: 48px;
			height: 90px;
			width: 80px;
			background-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.2) 0%,rgba(125,185,232,0) 20%);
			border-radius: 50%;
			@include pair(-36px, 140deg);
		}
		
		$lip-width: $mouth-width + 10px;
		$lip-offset: 7px;
		
		.lip-bottom {
			width: $lip-width - 10px;
			height: $mouth-height + $lip-offset;
			bottom: $mouth-bottom-position - $lip-offset;
			left: calc(50% - ((#{$lip-width} - 10px) / 2));
			border-radius: $mouth-border-radius;
			box-shadow: inset 0 -9px 10px -8px darken($lip-color, 15%);
			z-index: 1;
			background: lighten($m-color, 10%);
		}
	}

	.shoulder {
		top: 69px;
		height: 20px;
		width: 20px;
		background: $m-color;
		@include pair(-5px);
		z-index: -1;
		
		&.left {
			transform: rotate(21deg) skewY(50deg);
			background: darken($m-color, 23%);
			box-shadow: inset -20px 0px 5px -5px rgba(0,0,0,0.1);
		}
		
		&.right {
			transform: rotate(-21deg) skewY(-50deg);
			box-shadow: inset 20px 0px 5px -5px rgba(0,0,0,0.2);
		}
	}

	$arm-width: 13px;
	$arm-height: 70px;

	.upper-arm {
		top: 75px;
		height: $arm-height;
		width: $arm-width;
		background: $m-color;
		@include pair(-8px, 7deg);
		z-index: -2;
		box-shadow: inset -8px -5px 5px -5px rgba(0,0,0,0.1);
		
		&.left {
			border-radius: 10% 1% 25% 25% / 10% 1% 90% 65%;
			background: darken($m-color, 23%);
			
			.lower-arm {
				background-color: rgb(106,127,29);
				background-image: linear-gradient(
					rgba(darken($m-color, 23%),1) 0%,
					rgba(179,211,63,1) 80%);
				border-radius: 20% 5% 50% 50% / 70% 30% 70% 30%;
				box-shadow: inset -8px -10px 5px -5px rgba(0,0,0,0.2);
				
				&:after /* wrist */ {
					background-color: rgb(106,127,29);
					background-image: linear-gradient(
						rgba(darken($m-color, 10%),1) 0%,
						rgba(179,211,63,1) 80%);
					border-radius: 40% 40% 5% 5% / 90% 90% 5% 5%;	
				}
				
				.hand {
					
					.thumb {
						border-radius:  10% 90% 20% 80% / 50% 90% 10% 50%;
					}
					
					.hand-shadows span {
						box-shadow:  inset 5px -2px 5px -5px rgba(0,0,0,0.2);
					}
					
					.fingers {
					
						span:nth-of-type(1) {
							background-image: linear-gradient(180deg,
								rgba(darken($m-color, 15%),1) 0%,
								rgba($m-color,1) 100%);
						
							&:before {
								box-shadow: inset 2px -2px 2px -2px rgba(0,0,0,0.3);
							}
						}

						span:nth-of-type(2), span:nth-of-type(3) {
							background-image: linear-gradient(180deg,
								rgba(darken($m-color, 10%),1) 0%,
								rgba($m-color,1) 100%);
							box-shadow:  inset 2px 0px 1px -1px rgba(0,0,0,0.3);

							&:before {
								box-shadow:  -3px 0 5px -2px rgba(0,0,0,0.5),
											inset 2px 0px 2px -2px rgba(0,0,0,0.3),
											inset 6px 0px 1px -5px rgba(0,0,0,0.3);
							}

							span {
								background-image: linear-gradient(180deg,
									rgba(darken($m-color, 15%),1) 0%,
									rgba($m-color,1) 100%);
								border-radius:  20% 20% 20% 80% / 20% 20% 50% 50%;
								box-shadow:  inset 2px 0px 1px -1px rgba(0,0,0,0.3);
								
								&:before {
									background-image: linear-gradient(180deg,
										rgba(darken($m-color, 15%),1) 0%,
										rgba($m-color,1) 100%);
								}
							}
						}
					}
				}
			}
		}
		
		&.right {
			border-radius: 1% 10% 25% 25% / 1% 10% 65% 90%;
			
			.shadow {
				bottom: 0;
				left: 0;
				height: 95%;
				width: 95%;
				overflow: hidden;
				border-radius: inherit;
			
				&:before {
					height: 70%;
					width: 60%;
					bottom: 0;
					left: -3px;
					transform: rotate(-5deg);
					box-shadow: inset 10px -10px 10px -5px rgba(0,0,0,0.4);
				}
			}
			
			.lower-arm {
				border-radius: 5% 20% 50% 50% / 30% 70% 30% 70%;
				
				&:after /* wrist */ {
					border-radius: 40% 40% 5% 5% / 90% 90% 5% 5%;
					box-shadow: inset 8px -10px 5px -5px rgba(0,0,0,0.4);
				}
					
				&:before {
					height: 100%;
					width: 100%;
					transform: rotate(0deg);
					border-radius: inherit;
					box-shadow: inset 8px 0px 5px -5px rgba(0,0,0,0.4);
				}
				
				.hand {
					
					.thumb {
						border-radius:  90% 10% 80% 20% / 90% 50% 50% 10%;
						background: darken($m-color, 10%);
					}
					
					.hand-shadows span {
						box-shadow:  inset -5px -2px 5px -5px rgba(0,0,0,0.2);
					}
					
					.fingers {
					
						span:nth-of-type(1) {
							background-image: linear-gradient(180deg,
								rgba($m-color,1) 0%,
								rgba(darken($m-color, 15%),1) 100%);
						
							&:before {
								box-shadow: inset -2px -2px 2px -2px rgba(0,0,0,0.3);
							}
						}

						span:nth-of-type(2), span:nth-of-type(3) {
							background-image: linear-gradient(180deg,
								rgba($m-color,1) 0%,
								rgba(darken($m-color, 10%),1) 100%);
							box-shadow: inset -2px 0px 1px -1px rgba(0,0,0,0.3);

							&:before {
								box-shadow: 3px 0 5px -2px rgba(0,0,0,0.5),
											inset -2px 0px 2px -2px rgba(0,0,0,0.3),
											inset -6px 0px 1px -5px rgba(0,0,0,0.3);
							}

							span {
								background-image: linear-gradient(180deg,
									rgba($m-color,1) 0%,
									rgba(darken($m-color, 15%),1) 100%);
								border-radius:  20% 20% 80% 20% / 20% 20% 50% 50%;
								box-shadow:  inset -2px 0px 1px -1px rgba(0,0,0,0.3);
								
								&:before {
									background-image: linear-gradient(180deg,
										rgba($m-color,1) 0%,
										rgba(darken($m-color, 15%),1) 100%);
								}
							}
						}
					}
				}
			}
		}
		
		@include pair(6px, -10deg, "lower-arm");
		@include pair(-1px, -1deg, "lower-arm:after");
		
		@include pair(-70%, null, "hand");
		
		@include pair(20px, 0deg, "thumb");
		
		@include pair(10px, 4deg, "hand-shadows > span:nth-of-type(3)");
		@include pair(5px, 7deg, "hand-shadows > span:nth-of-type(2)");
		@include pair(2px, 7deg, "hand-shadows > span:nth-of-type(1)");
		
		@include pair(10px, -2deg, "fingers > span:nth-of-type(3)");
		@include pair(3px, -2deg, "fingers > span:nth-of-type(2)");
		@include pair(4px, -30deg, "fingers > span:nth-of-type(1)");
		
		@include pair(0, 0, "fingers > span:nth-of-type(1):before");
		@include pair(1px, 0, "fingers > span:before");
		
		@include pair(5px, -30deg, "fingers > span:nth-of-type(2) span");
		@include pair(5px, -30deg, "fingers > span:nth-of-type(3) span");
		@include pair(0, 0, "fingers > span span:before");

		.lower-arm {
			bottom: -($arm-height - 12px);
			height: $arm-height - 10px;
			width: $arm-width - 2px;
			background: $m-color;
			
			&:after /* wrist */ {
				width: 130%;
				height: 30px;
				bottom: -8px;
				background: $m-color;
				z-index: 1;
			}
			
			.hand {
				bottom: -25px;
				height: 34px;
				width:  26px;
				background: $m-color;
				background-image: linear-gradient(180deg,
					rgba(darken($m-color, 10%),1) 0%,
					rgba($m-color,1) 80%);
				z-index: 2;
				border-radius:  50% 50% 50% 50% / 70% 70% 30% 30%;
				
				$fingers: 3;
				$fingers-width: 8px;
				
				.thumb {
					bottom: -12px;
					height: 35px;
					width: $fingers-width - 1px;
					background: $m-color;
					z-index: 6;
					box-shadow: inset 2px -3px 5px -2px rgba(0,0,0,0.3);
				}
				
				.hand-shadows {
					position: initial;
					z-index: 5;
					
					span {
						margin: 0;
						height: 20px;
						width: $fingers-width;
						bottom: 7px;
						border-radius: 50% 50% 0 0;
					}
				}
				
				.fingers {
					position: initial;
					z-index: 4;

					span:nth-of-type(1), span:nth-of-type(2), span:nth-of-type(3) {
						height: 14px;
						width: $fingers-width;
						background: $m-color;
						margin: 0;
						border-radius: 50px;

						&:before /* knuckle */ {
							background-image: radial-gradient(
								rgba(lighten($m-color, 2%),1) 0%,
								rgba($m-color,1) 80%);
							top: -5px;
							height: 8px;
							width: 85%;
							border-radius: 50%;
							background-color: rgba(30,87,153,1);
						}

						> span {
							height: 15px;
							bottom: -14px;

							&:before {
								width: 100%;
								background-color: rgba(30,87,153,1);
								background-image: radial-gradient(rgba(darken($m-color, 5%),1) 0%,rgba($m-color,1) 100%);
							}	

							&:after {
								display: none;
							}
						}
					}

					@for $i from 1 through $fingers {
						span:nth-of-type(#{$i}) {
							bottom: -(5px + ($i * 3));
						}
					}
				}
			}
		}
	}

	$thigh-height: 55px;
	$thigh-width: 18px;

	.thigh {
		top: 135px;
		height: $thigh-height;
		width: $thigh-width;
		background: $m-color;
		z-index: -2;
		@include pair(45px, 5deg);
		box-shadow: inset -8px -5px 5px -5px rgba(0,0,0,0.1);
		
		&.left {
			background: darken($m-color, 23%);
			border-radius: 10% 1% 50% 30% / 10% 1% 80% 65%;
			box-shadow: inset -4px 8px 10px -5px rgba(255,255,255,0.4);
		}
		
		&.right {
			border-radius: 1% 10% 30% 50% / 1% 10% 65% 80%;
			overflow: hidden;
			
			&:before /* shadow */ {
				bottom: 0;
				left: -1px;
				height: 100%;
				width: 100%;
				transform: rotate(-5deg);
				box-shadow: inset 12px -5px 8px -5px rgba(0,0,0,0.4);
			}
		}
	}
		
	.leg {
		top: 175px;
		height: $thigh-height + 15px;
		width: $thigh-width - 5px;
		background: $m-color;
		overflow: hidden;
		@include pair(49px, -6deg);
		z-index: -3;
		
		&.left {
			background: darken($m-color, 12%);
			border-radius: 40% 50% 10% 10% / 30% 50% 30% 30%;
		}
		
		&.right {
			background: darken($m-color, 12%);
			border-radius: 50% 40% 10% 10% / 50% 30% 30% 30%;
		}

		&:before {
			height: 100%;
			width: 100%;
			box-shadow: inset 10px 15px 12px -5px rgba(0,0,0,0.4);
		}
	}

	.foot {
		bottom: -120px;
		height: 30px;
		width: 40px;
		background: $m-color;
		@include pair(24px);
		
		$toe-width: 20px;
		$toe-height: 20px;
		
		&.left {
			transform: skewX(-30deg);
			border-radius:  65% 35% 30% 20% / 90% 50% 30% 10%;
			
			&:before {
				box-shadow: 
					inset 15px 5px 14px -5px rgba(0,0,0,0.5),
					inset 0px 2px 5px -2px rgba(0,0,0, 0.2);
			}
			
			span {
				border-radius:  60% 20% 50% 50%;
				
				@for $i from 1 through 3 {
					&:nth-of-type(#{$i}) {
						right: ($toe-width - 8px) * ($i - 1);
					}
				}
				
				&:nth-of-type(1) {
					background: $m-color;
				}
				
				&:nth-of-type(3) {
					background: darken($m-color, 22%);
				}
				
				&:after /* nails */ {
					right: 10px;
					transform: skewX(30deg) rotate(25deg);
					border-radius:  70% 30% 2% 95% / 30% 30% 5% 70%;
				}
			}
		}
		
		&.right {
			transform: skewX(30deg);
			border-radius: 35% 65% 20% 30% / 50% 90% 10% 30%;
			
			&:before {
				box-shadow: inset 20px -5px 18px -5px rgba(0,0,0,0.5);
			}
			
			span {
				border-radius: 40% 60% 50% 50%;
				
				@for $i from 1 through 3 {
					&:nth-of-type(#{$i}) {
						left: ($toe-width - 8px) * ($i - 1);
					}
				}
				
				&:nth-of-type(3) {
					background: $m-color;
				}
				
				&:nth-of-type(1) {
					background: darken($m-color, 18%);
				}
				
				&:after /* nails */ {
					left: 10px;
					transform: skewX(-30deg) rotate(-25deg);
					border-radius:  30% 70% 95% 2% / 30% 30% 70% 5%;
				}
			}
		}
		
		&:before {
			height: 100%;
			width: 100%;
			border-radius: inherit;
		}
		
		span {
			height: $toe-height;
			width: $toe-width;
			background: darken($m-color, 8%);
		
			&:before {
				top: 0;
				left: 0;
				height: 100%;
				width: 100%;
				border-radius: inherit;
				box-shadow: inset 8px -10px 10px -5px rgba(0,0,0,0.4);
			}
			
			@for $i from 1 through 3 {
				&:nth-of-type(#{$i}) {
					bottom: (-$toe-height + 10px) + ($i * 2);
					z-index: -$i + 4;
				}
			}
				
			&:nth-of-type(3) {
				bottom: -2px;
				height: $toe-height - 5px;
			}
			
			&:after /* nails */ {
				bottom: -3px;
				height: 11px;
				width: 7px;
				background: #E5D8A7;
				box-shadow: 
					inset 0px 1px 8px 2px rgba(0,0,0,0.5),
					inset -1px 5px 10px -8px rgba(0,0,0,0.7),
					0 -2px 1px -1px rgba(0,0,0,0.5);
			}
		}
	}

	> .shadow {
		bottom: -100px;
		left: 30%;
		height: 20px;
		z-index: -1;
		width: 0;
		box-shadow:  0 -27px 40px 30px rgba(0,0,0, 0.5);
		transform: skewX(70deg);
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console