Pen Settings



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


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


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.


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.


                <meta name="viewport" content="width=device-width, initial-scale=1">
<div class="center-wrapper">
	<div class="content">
		<a href="#" class="menu">Menu</a>
		<h1 class="logo">DiveShop</h1>
		<div class="icons">
			<i class="fas fa-search"></i>
			<i class="fas fa-shopping-bag"></i><span style="margin-left: 0.3rem;">1</span>
	<div class="top-bar">
		<i class="fas fa-arrow-left"></i>
		<span>Continue shopping</span>
	<div class="bag">
		<p class="bag-head"><span style="text-transform: uppercase">Your Bag</span> - 1 item</p>
	<div class="bag-product">
		<div class="image">
			<img src="" class="product-image">
		<div class="description">
			<p class="product-code small muted">Product code: SS022592000</p>
			<h1>Suunto D4i Novo</h1>
			<p class="description-text">An easy-to-use dive computer with freedive mode and air integration.</p>
			<p style="margin-bottom: 0.5rem;">One Size</p>
			<div class="quantity-wrapper">
					<label for="quantity" style="margin-right: 0.5rem;">Quantity:</label>
					<select name="quantity" style="margin-bottom: 1rem;">
						<option value disabled>Please select</option>
						<option value="1" selected>1</option>
						<option value="2">2</option>
						<option value="3">3</option>
				<button class="btn-remove">Remove</button>
	<div class="bag-total">
		<div class="subtotal">
			<p class="small">Subtotal:</p>
			<p class="small">$825.00</p>
		<div class="delivery">
			<p class="small">Delivery (Standard - 2 working days):<br>
				<span class="change-delivery">Change delivery method</span></p>
			<p class="small">Free</p>
		<div class="total">
		<div class="promo-checkbox">
			<input type="checkbox" name="promo-check" checked>
			<label for="promo-check">I have a promo code</label>
		<div class="promo-code">
			<input type="text" name="promo-checkbox" placeholder="Enter your promo code here" checked>
			<button class="apply">Apply</button>
		<button class="btn-go-checkout">
			<i class="fas fa-lock"></i>
			<span>Go to Checkout</span>
	<div class="help">
		<p>Need help? Call free 01234 567 890</p>
<div class="bg"></div>

<link rel="stylesheet" href="" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">


                @import url(',700|Space+Mono:700');

* { margin: 0; padding: 0; box-sizing: border-box; }

$font-head: "Space Mono", sans-serif;
$font-txt: "Lato", sans-serif;
$small: 0.8rem;
$blue: dodgerblue;
$violet: lighten(rebeccapurple, 20%);
$yellow: lemonchiffon;

body { 
	height: 100%; 
	font-size: 16px; 
	font-weight: 400; }

//body { padding: 0.5rem !important; }

input[type="text"] { font-family: $font-txt;  }

.center-wrapper {
	padding: 0.5rem;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	min-height: 100%; }

.content { 
	margin: 0 auto;
	max-width: 600px; 
	border: 1px solid $yellow; 
	background: white; }

.help { padding: 0.5rem 1rem; }

.btn-go-checkout { color: white; }

nav { 
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex; 
	-webkit-box-orient: horizontal; 
	-webkit-box-direction: normal; 
	    -ms-flex-flow: row nowrap; 
	        flex-flow: row nowrap;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	background: $blue;  }

a {
	padding: 0.2rem 0.5rem;
	border: 2px solid white;
	text-decoration: none; }

.logo { font-family: $font-head; }

button { text-transform: uppercase; }

.fa-lock { margin-right: 1rem; }

.bag-total::before { background: whitesmoke; }

.btn-remove { display: block; }

.promo-checkbox { margin: 0.5rem 0; }

.bag-total::before {
	content: "";
	width: 100%;
	height: 3px; }

.muted { color: grey; }

.help { font-size: $small; }

h1 { font-size: 1.6rem; }

h2 { font-size: 1.4rem; }

.image { 
	width: 40%; 
	img.product-image { max-width: 100%; } }

.description { 
	padding-right: 1rem;
	width: 60%; }

select { 
	padding: 0.3rem; 
	width: 60px; }

input[type="text"] { height: 40px; }

button { 
	cursor: pointer;
	width: 100px;
	background: none; 
	border: 2px solid $violet;
  border-radius: 4px; }

.quantity-wrapper { 
	-webkit-box-align: start;
	    -ms-flex-align: start;
	        align-items: flex-start; 
	-webkit-box-orient: horizontal; 
	-webkit-box-direction: normal; 
	    -ms-flex-flow: row wrap; 
	        flex-flow: row wrap;
	margin: 1rem 0 0.5rem; }

select { 
	width: 50px;
	margin-right: 1rem; }

.promo-code {	
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
    -ms-flex-pack: justify;
        justify-content: space-between; }

.help { margin-bottom: 0.5rem; }

.total { margin-bottom: 1rem; }

.change-delivery { color: $violet; }

.btn-go-checkout { font-size: 1rem; }

input[type="text"] {
	width: calc(100% - 100px - 1rem); 
	padding: 0.5rem; }

.btn-go-checkout {
	margin-top: 1rem;
	width: 100%;
	height: 40px;
	background: $violet;
	box-shadow: 0 3px 6px 2px darken(whitesmoke, 10%); }

.help {	text-align: center; }

html {
	background: repeating-linear-gradient(
		$yellow 10px,
		darken($yellow, 10%) 10px,
		darken($yellow, 10%) 20px,
	); }


/ Daily UI #002 =================
/ Made by Lena ==================
/ 2018 ==========================
/ =============================*/