css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .main-content
	.navigation Pies from the waitress musical
	.pie-image
	
	.pie-recipe
		.pie-recipe__title
			.pie-name 
				| GETTING OUT 
				br
				| OF THE MUD PIE
			.pie-serving
				svg(x="0px" y="0px" viewBox="0 0 463 463")
					path(d="M463,223.5c0-12.958-10.542-23.5-23.5-23.5c-2.071,0-4.028,0.115-5.904,0.303c-0.666-0.194-1.368-0.303-2.097-0.303   c-10.792,0-27.144-9.703-46.077-20.938C349.109,157.513,299.375,128,231.5,128s-117.609,29.513-153.923,51.062   C58.644,190.297,42.292,200,31.5,200c-0.729,0-1.432,0.109-2.098,0.303C27.527,200.115,25.571,200,23.5,200   C10.542,200,0,210.542,0,223.5c0,12.742,10.196,23.141,22.857,23.484l28.668,57.337c9.461,18.924,28.482,30.68,49.64,30.68h260.669   c21.157,0,40.179-11.756,49.641-30.68l28.668-57.337C452.804,246.642,463,236.242,463,223.5z M85.231,191.961   C120.052,171.299,167.74,143,231.5,143s111.448,28.299,146.269,48.961c11.706,6.946,22.083,13.101,31.5,17.299   c-1.875,1.28-3.509,2.527-4.918,3.609c-4.073,3.13-4.073,3.13-6.495,3.13c-2.426,0-2.426,0-6.506-3.136   C385.086,208.053,374.603,200,356.208,200c-18.393,0-28.872,8.057-35.135,12.872C317.005,216,317.005,216,314.59,216   c-2.399,0-2.399,0-6.462-3.127C301.87,208.058,291.396,200,273.008,200c-18.382,0-28.855,8.051-35.13,12.874   C233.817,216,233.817,216,231.406,216c-2.407,0-2.407,0-6.466-3.124C218.681,208.06,208.204,200,189.813,200   s-28.868,8.06-35.129,12.877C150.625,216,150.625,216,148.219,216c-2.403,0-2.403,0-6.466-3.127   C135.495,208.058,125.021,200,106.629,200c-18.395,0-28.866,8.061-35.127,12.881C67.45,216,67.45,216,65.055,216   c-2.391,0-2.391,0-6.438-3.117c-1.405-1.083-3.036-2.331-4.908-3.613C63.132,205.073,73.516,198.913,85.231,191.961z    M398.059,297.613C391.154,311.422,377.273,320,361.834,320H101.166c-15.439,0-29.319-8.579-36.224-22.388L45.94,259.61   c5.18,1.981,11.451,3.39,19.115,3.39c18.391,0,28.862-8.061,35.117-12.877C104.23,247,104.23,247,106.629,247   c2.407,0,2.407,0,6.47,3.127c6.258,4.815,16.732,12.873,35.12,12.873c18.392,0,28.868-8.06,35.129-12.877   c4.058-3.123,4.058-3.123,6.465-3.123s2.407,0,6.466,3.124c6.26,4.816,16.736,12.876,35.128,12.876   c18.382,0,28.855-8.051,35.13-12.874c4.061-3.126,4.061-3.126,6.472-3.126c2.403,0,2.403,0,6.46,3.123   C285.724,254.939,296.195,263,314.59,263c18.393,0,28.872-8.057,35.135-12.872c4.067-3.128,4.067-3.128,6.482-3.128   c2.426,0,2.426,0,6.506,3.136C368.977,254.948,379.46,263,397.856,263c7.712,0,14.018-1.424,19.221-3.423L398.059,297.613z    M439.5,232c-2.58,0-4.67,0.314-6.5,0.865c-0.053,0.017-0.107,0.03-0.16,0.048c-3.425,1.066-5.934,2.984-8.988,5.33   c-5.36,4.118-12.701,9.757-25.997,9.757c-13.299,0-20.643-5.641-26.009-9.763c-4.711-3.621-8.116-6.237-15.639-6.237   c-7.516,0-10.918,2.617-15.626,6.238c-5.358,4.12-12.697,9.762-25.991,9.762c-13.29,0-20.62-5.643-25.973-9.764   c-4.704-3.621-8.103-6.236-15.609-6.236c-7.516,0-10.916,2.618-15.63,6.247c-5.355,4.116-12.688,9.753-25.972,9.753   c-13.289,0-20.625-5.644-25.98-9.764c-4.704-3.621-8.103-6.236-15.613-6.236s-10.909,2.616-15.612,6.235   c-5.356,4.121-12.692,9.765-25.981,9.765c-13.285,0-20.619-5.642-25.977-9.764c-4.704-3.621-8.103-6.236-15.613-6.236   c-7.503,0-10.901,2.616-15.606,6.237C85.67,242.357,78.34,248,65.055,248c-13.288,0-20.613-5.644-25.973-9.774   c-3.029-2.331-5.522-4.239-8.915-5.305c-0.055-0.019-0.111-0.033-0.167-0.05c-1.83-0.555-3.918-0.871-6.5-0.871   c-4.687,0-8.5-3.813-8.5-8.5s3.813-8.5,8.5-8.5c13.288,0,20.613,5.644,25.963,9.767c4.699,3.619,8.095,6.233,15.592,6.233   c7.499,0,10.895-2.614,15.603-6.237c5.352-4.12,12.682-9.763,25.972-9.763c13.289,0,20.623,5.642,25.98,9.764   c4.704,3.621,8.103,6.236,15.609,6.236c7.511,0,10.909-2.616,15.612-6.235c5.356-4.121,12.692-9.765,25.981-9.765   s20.625,5.644,25.98,9.764c4.704,3.621,8.103,6.236,15.613,6.236c7.516,0,10.916-2.618,15.63-6.247   c5.355-4.116,12.688-9.753,25.972-9.753c13.285,0,20.619,5.642,25.977,9.764c4.705,3.62,8.104,6.236,15.606,6.236   c7.516,0,10.918-2.617,15.626-6.238c5.358-4.12,12.697-9.762,25.991-9.762c13.299,0,20.643,5.641,26.009,9.764   c4.711,3.621,8.116,6.236,15.639,6.236c7.52,0,10.924-2.616,15.644-6.243c5.36-4.118,12.701-9.757,26-9.757   c4.687,0,8.5,3.813,8.5,8.5S444.188,232,439.5,232z")
					path(d="M231.5,199c4.142,0,7.5-3.358,7.5-7.5v-24c0-4.142-3.358-7.5-7.5-7.5s-7.5,3.358-7.5,7.5v24   C224,195.642,227.358,199,231.5,199z")
					path(d="M274.197,188.803c1.464,1.464,3.384,2.197,5.303,2.197s3.839-0.732,5.303-2.197c2.929-2.929,2.929-7.678,0-10.606l-16-16   c-2.929-2.929-7.678-2.929-10.606,0c-2.929,2.929-2.929,7.678,0,10.606L274.197,188.803z")
					path(d="M183.5,191c1.919,0,3.839-0.732,5.303-2.197l16-16c2.929-2.929,2.929-7.678,0-10.606c-2.929-2.929-7.678-2.929-10.606,0   l-16,16c-2.929,2.929-2.929,7.678,0,10.606C179.661,190.268,181.581,191,183.5,191z")
				p Makes one 9½-inch pie
		
		.pie-recipe__ingredients
			.pie-recipe__ingredients__item
				h4 sugar cone pie shell
				ul
					each val, index in ['1¾ cups ice cream sugar cone crumbs', '¾ stick unsalted butter, melted']
						li= val
				h4 filling
				ul
					each val, index in ['½ cup sliced almonds', '2 pt. mocha almond ice cream, toasted and cooled']
						li= val
			
			.pie-recipe__ingredients__item
				h4 glaze
				ul
					each val, index in ['6 oz. semisweet chocolate, chopped','1 cup confectioners\’ sugar','½ stick unsalted butter','¼ cup heavy cream','2 tbsp. light corn syrup','1 tsp. almond extract']
						li= val
		.pie-recipe__subtitle instructions
		.pie-recipe__number 1
		.pie-recipe__steps  For the pie shell: Preheat the oven to 350°F. Toss together the crumbs and butter in a medium bowl to moisten. Press the mixture onto the bottom and up the sides of a 9½-inch deep-dish pie pan. 
		.pie-recipe__number 2
		.pie-recipe__steps Refrigerate for at least 15 minutes to firm up the butter. Bake in the center of the oven for about 10 minutes, or until just set and fragrant. Place on a wire rack to cool to room temperature.
		.pie-recipe__number 3
		.pie-recipe__steps For the glaze: Heat the chocolate, confectioners’ sugar, butter, cream, and corn syrup in a small saucepan over low heat, stirring until smooth. Remove the pan from the heat and stir in the almond extract. Let sit until lukewarm. 
		.pie-recipe__number 4
		.pie-recipe__steps Pour half the glaze into the bottom of the pie shell and spread until even; refrigerate for 30 minutes, or until the glaze sets. Reserve the rest of the glaze.
		.pie-recipe__number 5
		.pie-recipe__steps For the filling: Let the ice cream sit at room temperature for about 10 minutes, or until soft enough to scoop and spread. Spread 2 cups of the ice cream in the pie shell.
		.pie-recipe__number 6
		.pie-recipe__steps If the reserved glaze has turned too firm to pour, reheat it over very low heat. Drizzle the ice cream with half the remaining glaze and sprinkle with half the almonds.
		.pie-recipe__number 7
		.pie-recipe__steps Return to the refrigerator to chill for 15 minutes, then repeat the layers. Freeze for 2 hours, or until firm.
		
		.pie-recipe__tips
			svg(x="0px" y="0px" viewBox="0 0 463 463")
				path(d="M463,223.5c0-12.958-10.542-23.5-23.5-23.5c-2.071,0-4.028,0.115-5.904,0.303c-0.666-0.194-1.368-0.303-2.097-0.303   c-10.792,0-27.144-9.703-46.077-20.938C349.109,157.513,299.375,128,231.5,128s-117.609,29.513-153.923,51.062   C58.644,190.297,42.292,200,31.5,200c-0.729,0-1.432,0.109-2.098,0.303C27.527,200.115,25.571,200,23.5,200   C10.542,200,0,210.542,0,223.5c0,12.742,10.196,23.141,22.857,23.484l28.668,57.337c9.461,18.924,28.482,30.68,49.64,30.68h260.669   c21.157,0,40.179-11.756,49.641-30.68l28.668-57.337C452.804,246.642,463,236.242,463,223.5z M85.231,191.961   C120.052,171.299,167.74,143,231.5,143s111.448,28.299,146.269,48.961c11.706,6.946,22.083,13.101,31.5,17.299   c-1.875,1.28-3.509,2.527-4.918,3.609c-4.073,3.13-4.073,3.13-6.495,3.13c-2.426,0-2.426,0-6.506-3.136   C385.086,208.053,374.603,200,356.208,200c-18.393,0-28.872,8.057-35.135,12.872C317.005,216,317.005,216,314.59,216   c-2.399,0-2.399,0-6.462-3.127C301.87,208.058,291.396,200,273.008,200c-18.382,0-28.855,8.051-35.13,12.874   C233.817,216,233.817,216,231.406,216c-2.407,0-2.407,0-6.466-3.124C218.681,208.06,208.204,200,189.813,200   s-28.868,8.06-35.129,12.877C150.625,216,150.625,216,148.219,216c-2.403,0-2.403,0-6.466-3.127   C135.495,208.058,125.021,200,106.629,200c-18.395,0-28.866,8.061-35.127,12.881C67.45,216,67.45,216,65.055,216   c-2.391,0-2.391,0-6.438-3.117c-1.405-1.083-3.036-2.331-4.908-3.613C63.132,205.073,73.516,198.913,85.231,191.961z    M398.059,297.613C391.154,311.422,377.273,320,361.834,320H101.166c-15.439,0-29.319-8.579-36.224-22.388L45.94,259.61   c5.18,1.981,11.451,3.39,19.115,3.39c18.391,0,28.862-8.061,35.117-12.877C104.23,247,104.23,247,106.629,247   c2.407,0,2.407,0,6.47,3.127c6.258,4.815,16.732,12.873,35.12,12.873c18.392,0,28.868-8.06,35.129-12.877   c4.058-3.123,4.058-3.123,6.465-3.123s2.407,0,6.466,3.124c6.26,4.816,16.736,12.876,35.128,12.876   c18.382,0,28.855-8.051,35.13-12.874c4.061-3.126,4.061-3.126,6.472-3.126c2.403,0,2.403,0,6.46,3.123   C285.724,254.939,296.195,263,314.59,263c18.393,0,28.872-8.057,35.135-12.872c4.067-3.128,4.067-3.128,6.482-3.128   c2.426,0,2.426,0,6.506,3.136C368.977,254.948,379.46,263,397.856,263c7.712,0,14.018-1.424,19.221-3.423L398.059,297.613z    M439.5,232c-2.58,0-4.67,0.314-6.5,0.865c-0.053,0.017-0.107,0.03-0.16,0.048c-3.425,1.066-5.934,2.984-8.988,5.33   c-5.36,4.118-12.701,9.757-25.997,9.757c-13.299,0-20.643-5.641-26.009-9.763c-4.711-3.621-8.116-6.237-15.639-6.237   c-7.516,0-10.918,2.617-15.626,6.238c-5.358,4.12-12.697,9.762-25.991,9.762c-13.29,0-20.62-5.643-25.973-9.764   c-4.704-3.621-8.103-6.236-15.609-6.236c-7.516,0-10.916,2.618-15.63,6.247c-5.355,4.116-12.688,9.753-25.972,9.753   c-13.289,0-20.625-5.644-25.98-9.764c-4.704-3.621-8.103-6.236-15.613-6.236s-10.909,2.616-15.612,6.235   c-5.356,4.121-12.692,9.765-25.981,9.765c-13.285,0-20.619-5.642-25.977-9.764c-4.704-3.621-8.103-6.236-15.613-6.236   c-7.503,0-10.901,2.616-15.606,6.237C85.67,242.357,78.34,248,65.055,248c-13.288,0-20.613-5.644-25.973-9.774   c-3.029-2.331-5.522-4.239-8.915-5.305c-0.055-0.019-0.111-0.033-0.167-0.05c-1.83-0.555-3.918-0.871-6.5-0.871   c-4.687,0-8.5-3.813-8.5-8.5s3.813-8.5,8.5-8.5c13.288,0,20.613,5.644,25.963,9.767c4.699,3.619,8.095,6.233,15.592,6.233   c7.499,0,10.895-2.614,15.603-6.237c5.352-4.12,12.682-9.763,25.972-9.763c13.289,0,20.623,5.642,25.98,9.764   c4.704,3.621,8.103,6.236,15.609,6.236c7.511,0,10.909-2.616,15.612-6.235c5.356-4.121,12.692-9.765,25.981-9.765   s20.625,5.644,25.98,9.764c4.704,3.621,8.103,6.236,15.613,6.236c7.516,0,10.916-2.618,15.63-6.247   c5.355-4.116,12.688-9.753,25.972-9.753c13.285,0,20.619,5.642,25.977,9.764c4.705,3.62,8.104,6.236,15.606,6.236   c7.516,0,10.918-2.617,15.626-6.238c5.358-4.12,12.697-9.762,25.991-9.762c13.299,0,20.643,5.641,26.009,9.764   c4.711,3.621,8.116,6.236,15.639,6.236c7.52,0,10.924-2.616,15.644-6.243c5.36-4.118,12.701-9.757,26-9.757   c4.687,0,8.5,3.813,8.5,8.5S444.188,232,439.5,232z")
				path(d="M231.5,199c4.142,0,7.5-3.358,7.5-7.5v-24c0-4.142-3.358-7.5-7.5-7.5s-7.5,3.358-7.5,7.5v24   C224,195.642,227.358,199,231.5,199z")
				path(d="M274.197,188.803c1.464,1.464,3.384,2.197,5.303,2.197s3.839-0.732,5.303-2.197c2.929-2.929,2.929-7.678,0-10.606l-16-16   c-2.929-2.929-7.678-2.929-10.606,0c-2.929,2.929-2.929,7.678,0,10.606L274.197,188.803z")
				path(d="M183.5,191c1.919,0,3.839-0.732,5.303-2.197l16-16c2.929-2.929,2.929-7.678,0-10.606c-2.929-2.929-7.678-2.929-10.606,0   l-16,16c-2.929,2.929-2.929,7.678,0,10.606C179.661,190.268,181.581,191,183.5,191z")
			h4 Ice-cream pies
			.pie-recipe__tips__text The key to success with frozen pies like this one is patience. You need to make sure your ice cream is soft enough to be spreadable, then let it get cold enough to be completely firm between each layer. That means a few trips back to the refrigerator as you are assembling it and then a good long cooling-off period in the freezer before you serve it up. Skimp on time at any point in the process and you won’t have distinct layers, just a soupy mess.
		
	.context__wrapper
		aside.context
			.explanation
				| A continuation of 
				a(href="https://codepen.io/oliviale/full/WJoqNZ" target="_blank") this pen here
				| . Also part of the 
				a(href="https://codepen.io/collection/DQvYpQ/" target="_blank") CSS Grid collection here
				| .
				

		footer
			a(href="https://twitter.com/meowlivia_" target="_blank")
				i.icon-social-twitter.icons
			a(href="https://github.com/oliviale" target="_blank")
				i.icon-social-github.icons
			a(href="https://dribbble.com/oliviale" target="_blank")
				i.icon-social-dribbble.icons
            
          
!
            
              $lightgray: #eee;
$brown-lighter: #dbc7b1;
$brown-light: #d69762;
$brown: #916953;
$brown-dark: #543b2e;
$brown-reallydark: #26130f;

body {
	background: #bfb1ac;
	font-family: "Raleway", sans-serif;
}

aside.context {
	text-align: left;
	text-transform: none;
	padding-right: 20px;
	color: #333;
	a {
		text-decoration: none;
		color: #333;
		padding: 3px 0;
		border-bottom: 1px dashed;
		&:hover {
			border-bottom: 1px solid;
		}
	}
}

footer {
	text-align: center;
	width: 100%;
	a {
		text-decoration: none;
		display: inline-block;
		width: 30px;
		height: 30px;
		border-radius: 50%;
		background: transparent;
		border: 1px dashed #333;
		color: #333;
		margin: 0 3px;
		&:hover {
			background: rgba(0, 0, 0, 0.05);
		}
		.icons {
			margin-top: 8px;
			display: inline-block;
			font-size: 14px;
		}
	}
}

.main-content {
	display: grid;
	grid-template-areas:
		"navigation pie-recipe pie-image"
		"context context pie-image";
	grid-template-columns: min-content auto 35%;
	grid-template-rows: auto min-content;
	margin: auto;
	min-height: 100vh;
	max-height: calc(100vh - 4em);
	background: #fff;
	box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
}

.context__wrapper {
	grid-area: context;
	background: #f7f7f7;
	color: #333;
	padding: 15px 20px;
	font: 400 12px/1.2 "Raleway", sans-serif;
	display: grid;
	align-items: center;
	grid-template-columns: auto max-content;
}

.navigation {
	grid-area: navigation;
	border-right: 1px solid $lightgray;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	color: $brown-lighter;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 20px;
	font: 16px "Playfair Display", serif;
	text-align: center;
}

.pie-image {
	grid-area: pie-image;
	background: url("http://olivia-ng.com/codepen/Waitress/GettingOutOfMudPie.png")
		no-repeat left center / cover;
}

.pie-name {
	font: 900 45px Raleway;
	text-transform: uppercase;
	margin: 20px 0 5px;
	letter-spacing: 2px;
	color: $brown;
	position: relative;
}

.pie-serving {
	font: 400 16px Raleway;
	color: $brown;
	margin: 20px 0;
	max-width: 300px;
	svg {
		width: 40px;
		path {
			fill: $brown;
		}
	}
	p {
		display: inline-block;
		vertical-align: top;
		margin: 12px 6px 6px;
	}
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: $brown-lighter;
}

::-webkit-scrollbar-thumb:hover {
	background: $brown-light;
}

.pie-recipe {
	grid-area: pie-recipe;
	color: #999;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 5px;
	max-height: 100%;
	padding: 50px 60px;
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 30px auto;
	grid-template-rows: repeat(4, max-content);
	line-height: 1.6;
	&__title {
		grid-column: span 2;
	}
	&__ingredients {
		grid-column: span 2;
		display: flex;
		flex-wrap: wrap;
		&__item {
			flex: 1;
			padding: 0 40px 0 0;
			h4 {
				font: italic 20px/1.1 "Playfair Display", serif;
				color: $brown-light;
				margin: 0 0 10px;
				margin-top: 30px;
			}
			ul {
				margin: 0;
				padding: 0;
				list-style: none;
				li {
					padding: 5px 0;
				}
			}
		}
	}
	&__number {
		font: italic 30px/1 "Playfair Display", serif;
		color: $brown-light;
		place-self: center;
		margin-top: -15px;
	}
	&__steps {
		padding-right: 35px;
	}
	&__subtitle {
		font: italic 30px/1 "Playfair Display", serif;
		color: $brown;
		margin: 45px 0 10px;
		grid-column: span 2;
	}
	&__tips {
		grid-column: span 2;
		margin-top: 65px;
		position: relative;
		border: 2px solid $brown;
		box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px $brown;
		text-align: center;
		padding: 35px;
		svg {
			display: inline-block;
			padding: 10px;
			position: absolute;
			margin: auto;
			left: 0;
			right: 0;
			top: -40px;
			width: auto;
			background: #fff;
			width: 60px;
			fill: $brown;
		}
		h4 {
			font: 900 24px Raleway;
			text-transform: uppercase;
			margin: 10px 0 15px;
			color: $brown-dark;
		}
	}
}
/*
@media screen and (max-width: 768px) {
	.main-content {
		margin: 0;
		max-height: none;
		grid-template-areas:
			"pie-image"
			"pie-recipe"
			"context";
		grid-template-columns: auto;
		grid-template-rows: 300px auto max-content;
	}
	.navigation {
		display: none;
	}
	.pie-image {
		height: 300px;
		width: 100%;
	}
	.pie-recipe {
		padding: 25px;
		&__title {
			margin: 0;
			text-align: center;
		}
		.pie-serving {
			margin: 20px auto;
		}
	}
}
*/
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console