Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

              
                <ul class="nintendo">
	<li class="n"></li>
	<li class="i"></li>
	<li class="n"></li>
	<li class="t"></li>
	<li class="e"></li>
	<li class="n"></li>
	<li class="d"></li>
	<li class="o"></li>
</ul>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans:600&display=swap');
body {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background: #e60012;
}
.nintendo {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 512px;
	height: 126px;
	border: 15px solid #fff;
	list-style: none;
	margin: 0;
	padding: 0;
	border-radius: 63px;
	box-sizing: border-box;
}
.nintendo::after {
	position: absolute;
	display: block;
	top: 16px;
	right: 22px;
	content: "®";
	font: 600 24px/1 'Open Sans', sans-serif;
	color: #fff;
}
.nintendo li {
	position: relative;
}
.nintendo li::before,
.nintendo li::after {
	position: absolute;
	display: block;
	content: "";
}
.nintendo .n:first-child {
	width: 62px;
	height: 60px;
	background:
		linear-gradient(60deg, transparent 36px, #fff 36px, #fff 46px, transparent 46px),
		linear-gradient(90deg, #fff 18px, transparent 18px, transparent 44px, #fff 44px);
	margin-right: 10px;
}
.nintendo .n:first-child::before,
.nintendo .n:first-child::after {
	content: none;
}
.nintendo .i {
	width: 18px;
	height: 60px;
	background: linear-gradient(#fff 12px, transparent 12px, transparent 20px, #fff 20px);
	margin-right: 10px;
}
.nintendo .n {
	width: 52px;
	height: 60px;
	background: linear-gradient(transparent 20px, #fff 20px) left bottom / 18px 100% no-repeat;
}
.nintendo .n::before {
	right: 0;
	bottom: 0;
	width: 38px;
	height: 42px;
	background: #fff;
	border-radius: 20px 20px 0 0;
}
.nintendo .n::after {
	bottom: 0;
	left: 18px;
	width: 16px;
	height: 32px;
	background: #e60012;
	border-radius: 8px 8px 0 0;
}
.nintendo .t {
	width: 38px;
	height: 60px;
	background: 
		linear-gradient(#fff, #fff) center 14px / 100% 6px no-repeat,
		linear-gradient(#fff, #fff) center bottom / 18px 53px no-repeat;
	margin-right: -3px;
}
.nintendo .e {
	width: 52px;
	height: 63px;
	margin-right: 6px;
}
.nintendo .e::before {
	bottom: 0;
	width: 100%;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(#e60012, #e60012) right 23px / 50% 6px no-repeat, #fff;
}
.nintendo .e::after {
	bottom: 5px;
	left: 19px;
	width: 15px;
	height: 34px;
	background: linear-gradient(#fff, #fff) center 12px / 100% 6px no-repeat, #e60012;
	border-radius: 10px;
}
.nintendo .n:nth-child(2n) {
	margin-right: 6px;
}
.nintendo .d {
	width: 50px;
	height: 62px;
	background: linear-gradient(#fff, #fff) right center / 18px 60px no-repeat;
	margin-right: 6px;
}
.nintendo .d::before {
	bottom: 0;
	left: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
}
.nintendo .d::after {
	bottom: 6px;
	left: 19px;
	width: 14px;
	height: 30px;
	background: #e60012;
	border-radius: 10px;
}
.nintendo .o {
	width: 52px;
	height: 63px;
}
.nintendo .o::before {
	bottom: 0;
	width: 100%;
	height: 44px;
	border-radius: 50%;
	background: #fff;
}
.nintendo .o::after {
	bottom: 5px;
	left: 19px;
	width: 15px;
	height: 34px;
	background: #e60012;
	border-radius: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console