123

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>
	<div>
		<div>
</div>
		<div>
			<h2>Some Text</h2>
		<p class="kilo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida arcu ac tortor dignissim convallis. Cras sed felis eget velit aliquet. Amet nisl purus in mollis nunc sed id. Egestas sed tempus urna et pharetra pharetra massa. Felis eget velit aliquet sagittis id. Viverra tellus in hac habitasse platea dictumst vestibulum. Aliquet porttitor lacus luctus accumsan tortor posuere. Malesuada fames ac turpis egestas. Eu turpis egestas pretium aenean. Magna sit amet purus gravida quis blandit turpis cursus in. Vulputate odio ut enim blandit volutpat maecenas.
</p></div>
	</div>
	<div>
		<div>
			<h2>Some Text/Some Test</h2>
		<p class="kilo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida arcu ac tortor dignissim convallis. Cras sed felis eget velit aliquet. Amet nisl purus in mollis nunc sed id. Egestas sed tempus urna et pharetra pharetra massa. Felis eget velit aliquet sagittis id. Viverra tellus in hac habitasse platea dictumst vestibulum. Aliquet porttitor lacus luctus accumsan tortor posuere. Malesuada fames ac turpis egestas. Eu turpis egestas pretium aenean. Magna sit amet purus gravida quis blandit turpis cursus in. Vulputate odio ut enim blandit volutpat maecenas. Ipsum nunc aliquet bibendum enim facilisis gravida neque convallis.
	</div>
	</div>
</main>
            
          
!
            
              $color-a: darken(#74b49b, 10%);
$color-b: darken(#5c8d89, 10%);
main {
	padding: 2rem;
	& > div {
		display: grid;
		grid-template-rows: 1fr 1fr;
		grid-template-columns: 1fr 1fr;
		h2 {
			font-family: serif;
			font-size:  4.5rem;;
			padding-bottom: 4rem;
			padding: 1rem;
			color: #a7d7c5;
		}
		p {
			color: #f9f8eb;
			line-height: 1.7;
			font-size: 1.2rem;
			width: 50vw;
		}
	}
	& > div:nth-child(1) {
		background: linear-gradient(to right bottom, $color-a 10%, $color-b 50%);
		div {
			padding: 2rem;
			grid-column-end: -1;
			grid-row-end: -1;
		}
	}
	& > div:nth-child(2) {
		background: linear-gradient(to left top, $color-a 10%,  $color-b 50%);
		div {
			padding: 2rem;
		}
	}
}

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

Console