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

Auto Save

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

              
                .dorayaki
	.crust-bottom
	.an
	.crust-top
.dorayaki
	.crust-bottom
	.an
	.crust-top
              
            
!

CSS

              
                *
	font-size: calc(1vmin * 5)

.dorayaki
	position: absolute
	top: 50%
	left: calc(50% - 1.8rem)
	transform: translate(-50%, -50%)
	&::before
		content: ''
		position: absolute
		top: -0.6rem
		left: -4.2rem
		width: 6rem
		height: 1rem
		border-radius: 50%
		transform: rotate(-7deg)
		box-shadow: 0 -0.6rem 0 0 #eb8e31
		filter: blur(0.15rem)
		z-index: 1
	
	//餅皮-上
	.crust-top
		position: absolute
		top: 50%
		left: 50%
		transform: translate(-50%, -50%)
		width: 10rem
		height: 3rem
		border-radius: 50%
		background: linear-gradient(32deg, rgba(189,105,45,1) 0%, rgba(219,131,43,1) 30%, rgba(220,132,43,1) 58%, rgba(187,104,45,1) 89%)
		box-shadow: 0 0.2rem 0 0 #f9cc8d, 0 0.6rem 0 0 #f7efcc
	
	//饀
	.an
		position: absolute
		top: calc(50% + 1rem)
		left: 50%
		transform: translate(-50%, -50%)
		width: 9.5rem
		height: 4rem
		border-radius: 50%
		background: #55262d
		&::before
			content: ''
			position: absolute
			top: 0
			left: 0
			width: 0.7rem
			height: 0.5rem
			border-radius: 50%
			transform: rotate(-30deg)
			box-shadow: 0.4rem 3.6rem 0.1rem 0 #81444d, 1.6rem 4.8rem 0.1rem 0 #81444d, 3rem 5rem 0.1rem 0 #81444d, 4.6rem 6rem 0.1rem 0 #81444d, 6rem 6.4rem 0.1rem 0 #81444d
		&::after
			content: ''
			position: absolute
			top: 0
			left: 0
			width: 0.7rem
			height: 0.5rem
			border-radius: 50%
			transform: rotate(30deg)
			box-shadow: 2.4rem 2rem 0.1rem 0 #81444d, 6.6rem 0 0.1rem 0 #81444d
			
	
	//餅皮-下
	.crust-bottom
		position: absolute
		top: calc(50% + 1rem)
		left: 50%
		transform: translate(-50%, -50%)
		width: 10rem
		height: 5rem
		border-radius: 50%
		background: #f7efcc
		box-shadow: 0 0.2rem 0 0 #f9cc8d, 0 0.4rem 0 0 #dc842b
	
	+ .dorayaki
		top: calc(50% - 0.4rem)
		left: calc(50% + 3.4rem)
		transform: rotate(35deg)
              
            
!

JS

              
                
              
            
!
999px

Console