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

              
                .shadow
.housing
	.tweeter
		.dust-dome
			.dust-dome__ring
	.knob
		.notch
	.woofer
		.cone-2
		.cone-3
	.logo-background
	.logo
		.head
		.arms-1
		.left-arm
		.left-hand
		.right-arm
		.right-hand
		.torso
		.left-leg-1
		.left-leg-2
		.left-foot
		.right-leg-1
		.right-leg-2
		.right-foot
	.ports
		.left-circle
		.right-circle
		.top-block
		.bottom-block
		.left-port
		.right-port
		span AUX #[i.fa.fa-headphones]
              
            
!

CSS

              
                $mackie-green: #6EC34C;
$mackie-glow: #41E231;
$logo: #9C9DA1;
$dark-gray: #1A1A1A;
$ring-width: 6px;

@mixin green-ring($size) {
	position: absolute;
	left: 50%;
	margin-left: (-($size / 2) - $ring-width);
	height: $size;
	width: $size;
	border: $ring-width solid $mackie-green;
	border-radius: 50%;
	box-shadow: 0 0 2px 0 rgba(0,0,0,0.3);
}

:root {
	background-color: #c1c9bd;
}

.shadow {
	width: 460px;
	height: 100px;
	position: absolute;
	left: 50%;
	margin-left: -230px;
	top: calc(50% + 190px);
	opacity: 0.2;
	background-color: black;
	border-radius: 50%;
	filter: blur(10px);
	transform: rotateX(30deg);
	perspective: 1000px;
}

.housing {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 358px;
	height: 500px;
	margin-left: -179px;
	margin-top: -250px;
	background: linear-gradient(#5B5B5B, #272729);
	border-radius: 12px;
	box-shadow: inset 0 0 25px 0 black, ;
}

.tweeter {
	@include green-ring(132px);
	top: 5%;
	background: linear-gradient(#2D2D2F, #656565);
	
	.dust-dome {
		width: 50%;
		height: 50%;
		margin: 25% auto;
		border-radius: 50%;
		box-shadow: 0 0 25px 7px rgba(0,0,0,1);
		
		&__ring {
			width: 100%;
			height: 100%;
			box-sizing: border-box;
			border-radius: 50%;
			border: 5px solid #282828;
			background: radial-gradient(#383838 10%, #242424, #151515 90%);
		}
	}
}

.knob {
	@include green-ring(40px);
	left: 83%;
	top: 30%;
	box-shadow: inset 0 0 6px 0 $mackie-glow, 0 0 4px 0 $mackie-glow, inset 0 0 3px 5px #232323;
	transition: transform 0.5s;
	
	&:hover {
		transform: rotate(120deg);
	}
	
	.notch {
		margin: 13% auto;
		height: 13px;
		width: 6px;
		border-radius: 6px;
		border: 2px solid #484849;
		box-shadow: inset 0 2px 5px 0 rgba(0,0,0,0.4);
	}
}

.woofer {
	@include green-ring(260px);
	top: 38%;
	background-image: linear-gradient(20deg, #5E5E5E, #222224);
	box-shadow: inset 0 0 35px 0 black;
	
	.cone-2  {
		position: absolute;
		$size: 65%;
		width: $size;
		height: $size;
		top: 40px;
		left: 40px;
		background-image: linear-gradient(20deg, #4B4B4B, #28282A);
		border-radius: 50%;
		border: 5px solid #212121;
		box-shadow: 0 0 35px 15px black, inset 0 0 5px 1px black;
	}
	.cone-3 {
		position: absolute;
		$size: 35%;
		width: $size;
		height: $size;
		left: 130px;
		top: 130px;
		background-color: #363636;
		border-radius: 50%;
		transform: translate(-50%, -50%);
		box-shadow: 0 0 60px 0 rgba(0,0,0,0.3);
	}
}

$size: 50px;
.logo-background {
	position: absolute;
	width: $size + 14px;
	height: $size + 12px;
	background-color: $dark-gray;
	border-radius: 50%;
	bottom: 16px;
	left: 10px;
	border-top: 1px solid rgba(255,255,255,0.25);
}

.logo {
	position: absolute;
	left: 5%;
	bottom: 4%;
	width: $size;
	height: $size;
	border: 2px solid $logo;
	border-radius: 50%;
	
	& > div:not(.head):not(.background) {
		position: absolute;
		background-color: $logo;
		height: 4px;
	}
	
	.head {
		position: absolute;
		border: 4px solid $logo;
		border-radius: 50%;
		width: 5px;
		height: 5px;
		left: 27px;
		top: 5px;
	}
	.arms-1 {
		width: 20px;
		top: 15px;
		left: 15px;
		transform: rotate(60deg);
	}
	.left-arm {
		top: 13px;
		left: 9px;
		width: 15px;
		transform: rotate(-52deg);
	}
	.left-hand {
		width: 6px;
		top: 17px;
		left: 8px;
		transform: rotate(30deg);
	}
	.right-arm {
		top: 20px;
		left: 28px;
		width: 15px;
		transform: rotate(-25deg);
	}
	.right-hand {
		width: 6px;
		top: 17px;
		left: 40px;
		transform: rotate(30deg);
	}
	.torso {
		left: 16px;
		top: 19px;
		width: 9px;
		transform: rotate(-35deg);
	}
	.left-leg-1 {
		width: 20px;
		left: 12px;
		top: 28px;
		transform: rotate(60deg);
	}
	.left-leg-2 {
		width: 16px;
		left: 9px;
		top: 35px;
	}
	.left-foot {
		width: 5px;
		top: 36px;
		left: 8px;
		transform: rotate(-80deg);
	}
	.right-leg-1 {
		width: 17px;
		transform: rotate(20deg);
		top: 27px;
		left: 18px;
	}
	.right-leg-2 {
		width: 16px;
		left: 24px;
		top: 36px;
		transform: rotate(-75deg);
	}
	.right-foot {
		width: 5px;
		top: 43px;
		left: 31px;
		transform: rotate(20deg);
	}
}

.ports {
	position: absolute;
	width: 67px;
	bottom: 60px;
	right: 20px;
	
	.left-circle, .right-circle, .top-block, .bottom-block {
		background-color: $dark-gray;
		position: absolute;
	}
	
	.left-circle, .right-circle {
		border-radius: 50%;
	}
	
	.left-circle, .right-circle, .bottom-block {
		border-bottom: 1px solid rgba(255,255,255,0.25);
	}
	
	.left-circle {
		$size: 33px;
		width: $size;
		height: $size;
		left: 0px;
	}
	.right-circle {
		$size: 29px;
		width: $size;
		height: $size;
		right: 0px;
	}
	.top-block {
		height: 17px;
		width: 32px;
		left: 18px;
	}
	.bottom-block {
		height: 17px;
		width: 33px;
		left: 19px;
		top: 14px;
		transform: rotate(-6deg);
	}
	.left-port, .right-port {
		position: absolute;
		border-radius: 50%;
		$size: 11px;
		width: $size;
		height: $size;
		top: 7px;
		border: 3px solid #232323;
		box-shadow: inset -2px -2px 4px 0 rgba(0,0,0,0.4);
	}
	.left-port {
		border-radius: 50%;
		left: 7px;
	}
	.right-port {
		right: 7px;
	}
	span, i {
		
		font-size: 0.35em;
		color: $logo;
	}	
	span {		
		position: absolute;
		font-family: 'Arial';
		left: 24px;
		top: 22px;
	}
	i {
		font-size: 1em;
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console