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.

            
              
	<header class="demo-lead">
		<h1 class="logo-hed">Whitworth Tools</h1>
	</header>
	<div class="demo">

		<div class="col-b featured">
			<h2 class="page-hed">Featured Item</h2>

			<div class="mod" data-mod>
				<div class="mod-header">
					<h3 class="heading">Bocoup Mfg. Corp. <strong>Hammer</strong></h3>
					<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
				</div>

				<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/hammer.jpg" alt="A hammer">

				<div class="mod-desc">
					<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt 
						mollit anim id est laborum.</p>

					<div class="mod-cost">
						<del class="cost-prev">$12.95</del>
						<p class="cost-curr">$9.95</p>
					</div>

					<div class="mod-buy">
						<p class="buy-remaining">Only 3 left!</p>
						<input type="submit" value="Add to Cart" class="btn btn-buy">
					</div>
				</div>
			</div>

		</div>

		<div class="col-a">

			<h2 class="page-hed">New Items</h2>
			<div class="items three-col">

				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">ALA Toolworks <strong>Wrench Set</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
				<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo//img/wrenches.jpg" alt="A set of Whitworth wrenches">

					<div class="mod-desc">
						<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
						cillum dolore eu fugiat nulla pariatur.</p>

						<div class="mod-cost">
							<del class="cost-prev">$79.95</del>
							<p class="cost-curr">$64.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>

				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">Bocoup Mfg. Corp. <strong>Socket Set</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
					<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo//img/sockets.jpg" alt="a set of Whitworth sockets">

					<div class="mod-desc">
						<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt 
						ut labore et dolore magna aliqua.</p>

						<div class="mod-cost">
							<del class="cost-prev">$55.95</del>
							<p class="cost-curr">$49.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>

				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">ALA Toolworks <strong>Tap &amp; Die Set</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
					<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/tapanddie.jpg" alt="A Whitworth tap and die set">

					<div class="mod-desc">
						<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.</p>

						<div class="mod-cost">
							<del class="cost-prev">$129.95</del>
							<p class="cost-curr">$110.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>
				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">ALA Toolworks <strong>Thread Gauges</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
					<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/threads.jpg" alt="A set of Whitworth thread gauges">

					<div class="mod-desc">
						<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.</p>

						<div class="mod-cost">
							<del class="cost-prev">$10.95</del>
							<p class="cost-curr">$8.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>

				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">Bocoup Mfg. Corp. <strong>Socket Set</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
					<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/sockets.jpg" alt="a set of Whitworth sockets">

					<div class="mod-desc">
						<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt 
						ut labore et dolore magna aliqua.</p>

						<div class="mod-cost">
							<del class="cost-prev">$55.95</del>
							<p class="cost-curr">$49.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>

				<div class="mod" data-mod>
					<div class="mod-header">
						<h2 class="heading">ALA Toolworks <strong>Wrench Set</strong></h2>
						<p class="meta">Triumph/Norton/<abbr title="Birmingham Small Arms Company">BSA</abbr></p>
					</div>
				<img src="https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/wrenches.jpg" alt="A set of Whitworth wrenches">

					<div class="mod-desc">
						<p>Duis aute irure dolor in reprehenderit in voluptate velit esse
						cillum dolore eu fugiat nulla pariatur.</p>

						<div class="mod-cost">
							<del class="cost-prev">$79.95</del>
							<p class="cost-curr">$64.95</p>
						</div>

						<div class="mod-buy">
							<p class="buy-remaining">Only 3 left!</p>
							<input type="submit" value="Add to Cart" class="btn btn-buy">
						</div>
					</div>
				</div>

			</div>

		</div>


	</div>
            
          
!
            
              /* Theme */
img {
	max-width: 100%;
}
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

input {
	cursor: pointer;
}

.demo {
	background: rgba(255,255,255,.95);
	width: 98%;
	max-width: 1600px;
}
.demo {
	width: 97.5%;
	padding: 0 2%;
	margin: 0 auto;
}
.demo:after {
	content: "";
	clear: both;
	display: block;
}
html,
body {
	background: #222;
	margin: 0;
	padding: 0;
}
.demo header {
	background: #333;
	margin: 0;
	padding: .5em 1.5em;
	float: left;
	width: 100%;
}
.page-hed {
	border-bottom: 2px solid rgba(0,0,0,.3);
	color: #222;
	font-size: 2.2em;
	font-family: 'Pathway Gothic One', sans-serif;
	padding-bottom: .1em;
	text-transform: uppercase;
}
.logo-hed {
	background: rgba(0,0,0,.8);
	color: #fafafa;
	font-size: 3em;
	display: inline-block;
	font-family: 'Pathway Gothic One', sans-serif;
	line-height: .9;
	margin: 1em 0 15% 0;
	padding: .15em .5em;
	text-transform: uppercase;
}
.demo-lead {
	background: url(https://responsiveimagescg.github.io/ALA-Whitworth-Demo/img/hutch-header.jpg);
	display: block;
	margin: 0 auto;
	min-height: 5em;
	width: 97.5%;
	background-size: cover;
}

.mod {
	background: #fff;
	margin-bottom: 1em;
	box-shadow: 0 0 5px rgba(0,0,0,.2);
}
.mod:after {
	content: "";
	clear: both;
	display: block;
}
.mod-header,
.mod-desc {
	background: #4e4f4e;
	padding: .1em 1em;
}
.mod-desc {
	padding-bottom: 1em;
}
.mod-desc:after {
	content: "";
	clear: both;
	display: block;
}

.heading {
	color: #aaa;
	font-family: 'Pathway Gothic One', sans-serif;
	font-size: 1.8em;
	line-height: .95;
	margin: 0;
	padding: .5em 0 0 0;
	text-transform: uppercase;
}
.heading strong {
	display: inline-block;
	color: rgba(255,255,255,.85);
}
.meta {
	color: #999;
	font-family: 'Source Code Pro', monospace;
	font-size: .85em;
	margin: 0;
	padding: .4em 0 1em 0
}

p {
	color: rgba(255,255,255,.85);
	font-family: 'Source Sans Pro', sans-serif;
}
.mod-desc > p {
	padding-right: 1em;
}

.cost-prev {
	color: #888;
	font-family: 'Source Code Pro', monospace;
	font-size: 1.2em;
	margin: 0;
}
.cost-curr {
	color: rgba(255,255,255,.85);
	line-height: 1;
	font-family: 'Pathway Gothic One', sans-serif;
	font-size: 3.5em;
	margin: 0;
}

.buy-remaining {
	color: #eee;
	font-family: 'Source Code Pro', monospace;
	font-size: .8em;
	font-style: italic;
	margin: 1.5em 0 .5em 0;
}
.btn-buy {
	background-image: linear-gradient( #fe9358, #fe6b1f ); 
	border: 1px solid #e77c3f;
	border-radius: .15em;
	color: #fff;
	display: block;
	font-family: 'Pathway Gothic One', sans-serif;
	font-size: 1.3em;
	padding: .15em 1.2em;
	text-transform: uppercase;
	text-shadow: 0 1px 1px #6b3011;
}

/* Module Layouts */
.col-a,
.col-b {
	clear: both;
	float: left;
}
@supports (display:grid) {
	.demo {
		display:grid;
	}
}

@media( min-width: 60em ) {
	.col-a,
	.col-b {
		clear: none;
	}
	.col-a {
		width: 70%;
		float: left;
	}
	.col-b {
		width: 27%;
		float: right;
	}
	@supports (display:grid) {
		.demo {
			grid-template-columns: 70% 27%;
			grid-column-gap:3%;
		}
		.col-b {
			grid-column:2;
			grid-row:span 2;
			width:100%
		}
		.col-a {
			grid-column:1;
			width:100%
		}
	}
}

/* Module Layout: Phase 1 */
.mod img {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 250px;
}

@element [data-mod] and (min-width: 425px) {
	$this img {
		float: left;
		width: 30%;
		max-width: 9999px;
	}
	$this .mod-header,
	$this .mod-desc {
		float: right;
		width: 68%;
		padding-left: 2%;
	}
}

@media( min-width: 50em ) {
	.three-col .mod {
		display: inline-block;
		float: left;
		width: 30%;
		margin: 0 5% 2em 0;
	}
	.three-col .mod:last-of-type {
		margin-right: 0;
		float: right;
	}
	@supports (display:grid) {
		.three-col {
			display:grid;
			grid-template-columns:repeat(3,1fr);
			grid-column-gap:5%;
			grid-row-gap:2em;
			margin-bottom:2em;
		}
		.three-col .mod {
			margin:0;
			width:auto;
			align-self:start;
		}
	}
}
            
          
!
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