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

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.

HTML

              
                <div class="page-wrapper">
	<header>
		<h1>DM Style Guide</h1>	
	</header>
	<nav class="navigation" role='navigation'>
		<ul>
			<li><a href="#">Home</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Clients</a></li>
			<li><a href="#">Contact Us</a></li>
		</ul>
	</nav>
	<section class="typography tk-league-gothic">
		<h2 class="section-title">Typography</h2>
		<div class="section-content">
			<ul>
				<li class="h1-font-size">H1 Header</li>
				<li class="helper-text">h1: League Gothic / 72px / a1a0a1</li>
				<li class="h2-font-size">H2 Header</li>
				<li class="helper-text">h2: League Gothic / 60px / 6e3c6a</li>
				<li class="h3-font-size">H3 Header</li>
				<li class="helper-text">h3: League Gothic / 48px / 666666</li>
				<li class="h4-font-size">H4 Header</li>
				<li class="helper-text">h4: League Gothic / 36px / 666666</li>
				<li class="h5-font-size">H5 Header</li>
				<li class="helper-text">h5: League Gothic / 24px / 6e3c6a</li>
				<li class="h6-font-size">H6 Header</li>
				<li class="helper-text">h6: League Gothic / 22px / 6e3c6a</li>
				<li class="subhead-font-size">
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsum, similique voluptas dignissimos iusto voluptate autem natus minus laudantium cumque ab recusandae officiis, aliquid facere repellat, aspernatur possimus perferendis laborio.</p>
				</li>
				<li class="helper-text">Sub-head: Dapifer / 22.4px / lh: 33.6px</li>
				<li class="body-font-size">
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsum, similique voluptas dignissimos iusto voluptate autem natus minus laudantium cumque ab recusandae officiis, aliquid facere repellat, aspernatur possimus perferendis laboriosam <a href="#" class="text-link">molestiae</a> laborum sequi est, quisquam repellendus harum saepe quo. Illum, quae.</p>
				</li>
				<li class="helper-text">paragraph: Dapifer / 18px / 6e3c6a / 32px</li>
				<li>
					<blockquote cite="https://developer.mozilla.org">
						<p>This is a quotation taken from the Mozilla Developer Center.</p>
					</blockquote>
				</li>
				<li>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. A illo soluta delectus commodi labore quibusdam, <a href="#" class="text-link">deserunt quas</a> accusantium illum porro.</p>
				</li>
			</ul>
		</div>
	</section>
	<section class="colors">
		<h2 class="section-title">Colors</h2>
		<div class="section-content">
			<ul>
		 <li class="color-1">#663366<br>$color-primary</li>
		 <li class="color-2">#FCFBF9<br>$background</li>
		 <li class="color-3">#666666<br>$dark-grey</li>
		 <li class="color-4">#A1A0A1<br>$light-grey</li>
		 <li class="color-5">#B0AF81<br>$olive-yellow</li>
		 <li class="color-6">#efefe6<br>$sage</li>
	 </ul>
		</div> 
	</section>
	<section class="inputs">
		<h2 class="section-title">Inputs</h2>
		<div class="section-content">
			<form action="#">
				<div>
					<label for="name">Text Input:</label>
					<input type="text" name="name" id="name" placeholder="Text Input" />
				</div>
				<div>
					<label for="name">Email Input:</label>
					<input type="email" name="email" id="email" placeholder="Email Input" />
				</div>
				<div>
					<label for="name">Password Input:</label>
					<input type="password" name="password" id="password" placeholder="Password" />
				</div>
				<div>
					<label for="select-choice">Select Dropdown Choice:</label>
					<select name="select-choice" id="select-choice">
						<option value="Choice 1">Choice 1</option>
						<option value="Choice 2">Choice 2</option>
						<option value="Choice 3">Choice 3</option>
					</select>
				</div>
				<fieldset>
					<legend>Radio Button Choice</legend>
					<span>
						<input type="radio" name="radio-choice" id="radio-choice-1" value="choice-1" />
						<label for="radio-choice-1">Choice 1</label>
					</span>
					<span>
						<input type="radio" name="radio-choice" id="radio-choice-2" value="choice-2" />
						<label for="radio-choice-2">Choice 2</label>
					</span>
					<span>
						<input type="radio" name="radio-choice" id="radio-choice-3" value="choice-3" />
						<label for="radio-choice-2">Choice 3</label>
					</span>
				</fieldset>
				<div>
					<label for="textarea">Textarea:</label>
					<textarea  name="textarea" id="textarea"></textarea>
				</div>
				<div>
					<label for="checkbox">Checkbox:</label>
					<input type="checkbox" name="checkbox" id="checkbox" />
				</div>
				<div class="button-section">
					<input type="submit" value="Submit" />
					<button>GO »</button>
				</div>
				<div class="combo">
					<input type="text" name="name" id="name" placeholder="John Smith" />
					<button>GO »</button>
				</div>
			</form>	
		</div>
	</section>
	<section class="icons">
		<h2 class="section-title">Icons</h2>
		<div class="section-content">
		<ul class="icon-list">
		 <li>
		 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-432 284 225 225" enable-background="new -432 284 225 225" xml:space="preserve">
		<rect id="bg" x="-432" y="284" fill="#9FA06E" width="225" height="225"/>
		<circle id="circ" display="none" fill="#E533D0" cx="-319.5" cy="396.5" r="112.5"/>
		<path fill="#FFFFFF" d="M-253.5,341.7h-131.9c-5.2,0-9.4,4.2-9.4,9.4v73c0,5.2,4.2,9.4,9.4,9.4h58.4v11.7h-13.3c-4.3,0-8,3.5-8,8  v4.3c0,4.3,3.5,8,8,8h41.6c4.3,0,8-3.5,8-8v-4.3c0-4.3-3.5-8-8-8h-13.3v-11.7h58.5c5.2,0,9.4-4.2,9.4-9.4v-72.9  C-244.1,345.9-248.3,341.7-253.5,341.7z M-319.5,345.6c1.5,0,2.7,1.2,2.7,2.7c0,1.5-1.2,2.7-2.7,2.7s-2.7-1.2-2.7-2.7  C-322.2,346.9-321,345.6-319.5,345.6z M-255.4,423.5h-128.2v-7.7l0.5,0.5l15.3-15.1c0.5,0.1,1,0.2,1.5,0.2c1.6,0,3.1-0.6,4.2-1.6  l17.4,6.1c0,3.6,3,6.5,6.6,6.5c3.6,0,6.6-3,6.6-6.6c0-1.2-0.3-2.2-0.9-3.2l16.1-16.3c0.8,0.4,1.7,0.6,2.6,0.6c1,0,2-0.3,2.9-0.7  l12.8,10.6c-0.1,0.4-0.1,0.9-0.1,1.4c0,3.6,3,6.6,6.6,6.6s6.6-3,6.6-6.6c0-0.9-0.1-1.7-0.4-2.4l14.7-18.7l1.4,4.3l5.8-16.8  l-15.8,8.2l4.8,0.9l-14.6,18.4c-0.8-0.4-1.7-0.6-2.6-0.6c-1.3,0-2.5,0.4-3.5,1.1l-12.4-10.3c0.2-0.7,0.4-1.4,0.4-2.2  c0-3.6-3-6.6-6.6-6.6c-3.6,0-6.6,3-6.6,6.6c0,0.9,0.1,1.7,0.5,2.4l-16.6,16.8c-0.6-0.1-1.2-0.3-1.8-0.3c-1.9,0-3.5,0.8-4.7,2  l-16.9-6c0-0.1,0.1-0.4,0.1-0.5c0-3.6-3-6.6-6.6-6.6c-3.6,0-6.6,3-6.6,6.6c0,1.2,0.4,2.4,0.9,3.4l-11.8,11.6v-56.4h128.2V423.5z"/>
		</svg>
		 </li>
		 <li>
		 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-432 284 225 225" enable-background="new -432 284 225 225" xml:space="preserve">
		<rect id="bg" x="-432" y="284" fill="#9FA06E" width="225" height="225"/>
		<circle id="circ" display="none" fill="#E533D0" cx="-319.5" cy="396.5" r="112.5"/>
		<g id="icon">
			<path fill="#FFFFFF" d="M-339.8,370.5v-14.6c-0.3,0-0.6-0.1-0.9-0.1c-5,0-9.2,4.6-9.2,10.4c0,0.6,0.1,1.3,0.2,1.8   c-1.4-1.1-3.2-1.7-5-1.7c-5,0-9.2,4.6-9.2,10.4c0,0.5,0.1,0.9,0.1,1.3c-4.5,0.6-7.9,5-7.9,10.2c0,0.9,0.2,1.8,0.4,2.6   c-1.4,1-2.3,2.7-2.3,4.7c0,2.3,1.5,5.1,3.2,5.1s4.8,0,4.8,0v3.6c0,0.1,0,0.2,0,0.3c0,3.1,2.5,5.6,5.6,5.6c3.1,0,5.5-2.4,5.6-5.5   l0,0v-0.1l0,0l0,0v-3.9h14.9v-12.8c-4.5-0.4-8-4.1-8-8.6C-347.8,374.5-344.3,370.8-339.8,370.5z"/>
			<path fill="#FFFFFF" d="M-300.7,382L-300.7,382L-300.7,382C-300.8,382-300.8,382-300.7,382L-300.7,382h-4.3v-24.9   c-1.6-3.2-4.5-5.2-7.9-5.2c-4,0-7.3,2.9-8.6,6.8c-1.7-2.3-4.2-3.9-7.1-3.9s-5.4,1.5-7,3.9l-0.1-0.1v15.2h-2.8c-0.1,0-0.2,0-0.3,0   c-3.1,0-5.5,2.4-5.5,5.5c0,3,2.4,5.5,5.4,5.5l0,0h0.1l0,0l0,0h3.1v15.8h4.4v3.6c0,0.1,0,0.2,0,0.3c0,3.1,2.5,5.6,5.6,5.6   c3.1,0,5.5-2.4,5.6-5.5l0,0v-0.1l0,0l0,0v-3.9h15.2v-7.5h4c0.1,0,0.2,0,0.3,0c3.1,0,5.6-2.5,5.6-5.6   C-295.2,384.5-297.7,382.1-300.7,382z"/>
			<path fill="#FFFFFF" d="M-261.7,405.3c-0.5-0.5-2.9-0.4-2.9-0.4h-5.8c0,7-4.1,9.8-9.2,9.8c-4,0-9-2.6-9-9.8h-28.4   c0,7.6-5.3,9.8-8.9,9.8c-3.6,0-9-2.5-9-9.8H-351c0,6.2-3.8,9.8-9.5,9.8s-8.9-4.1-8.9-9.8h-6.5c0,0-2.4,0-2.9,0.5   c-0.5,0.6-0.5,3.2-0.5,3.2c1.2,33.6,27.2,60.4,59.1,60.4s58-26.8,59.1-60.4C-261,408.5-261.1,405.8-261.7,405.3z M-344.7,434   c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4s6.4,2.9,6.4,6.4C-338.2,431.1-341.1,434-344.7,434z M-320.4,457.5   c-6.4,0-12.2-2.2-16.8-5.9l3-5.2c3.7,3.2,8.6,5.1,13.9,5.1s10.2-2,14-5.1l3,5.2C-308.1,455.3-314,457.5-320.4,457.5z M-299,434   c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4c3.5,0,6.4,2.9,6.4,6.4C-292.5,431.1-295.4,434-299,434z"/>
			<rect x="-323.4" y="312" fill="#FFFFFF" width="5" height="27.5"/>
			<rect x="-256.5" y="386.9" fill="#FFFFFF" width="27.5" height="5"/>
			<rect x="-410" y="386.9" fill="#FFFFFF" width="27.5" height="5"/>

				<rect x="-270.1" y="329.2" transform="matrix(-0.6601 -0.7512 0.7512 -0.6601 -701.7307 368.2584)" fill="#FFFFFF" width="5" height="27.5"/>

				<rect x="-376.1" y="329.1" transform="matrix(0.6601 -0.7512 0.7512 0.6601 -384.5422 -164.091)" fill="#FFFFFF" width="5" height="27.5"/>
			<path fill="#FFFFFF" d="M-266.5,395c0-3.1-2.2-5.6-4.9-5.6c-0.2,0-0.5,0-0.6,0.1c0.7-1.5,1.3-3.2,1.3-5c0-5.1-3.3-9.4-7.7-10.2   c0-0.4,0.1-0.6,0.1-1c0-5.7-4.1-10.4-9.2-10.4c-2.3,0-4.3,1-5.9,2.5c-0.8-4.1-3.7-7.2-7.4-7.9v21.4c4.8,0.1,8.6,3.9,8.6,8.6   s-3.9,8.6-8.6,8.6v4.3h15.8v3.6c0,0.1,0,0.2,0,0.3c0,3.1,2.5,5.6,5.6,5.6c3.1,0,5.5-2.4,5.6-5.5l0,0v-0.1l0,0l0,0v-3.9   c0,0,1.7,0,3.1,0C-269.4,400.6-266.5,397.8-266.5,395z"/>
		</g>
		</svg>
		 </li>
		 <li>
		 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-432 284 225 225" enable-background="new -432 284 225 225" xml:space="preserve">
		<rect id="bg" x="-432" y="284" fill="#9FA06E" width="225" height="225"/>
		<circle id="circ" display="none" fill="#E533D0" cx="-319.5" cy="396.5" r="112.5"/>
		<g id="icon">
			<path fill="#FFFFFF" d="M-252.8,417.5v-10.4c-0.9,0.5-2,0.7-3.2,0.7c-3.4,0.1-6.4-2.1-7.4-5.4l-5-17.1c-0.2-0.7-0.7-0.8-1.1-0.8   s-0.9,0.1-1.1,0.9l-5.2,18.5c-0.9,3.2-3.8,5.4-7.1,5.4h-0.1c-3.3,0-6.2-2.1-7.2-5.3l-4.9-16.3c-0.2-0.7-0.8-0.8-1.1-0.8   c-0.4,0-0.9,0.2-1.1,0.9l-2.7,13.6c-0.7,3.4-3.5,5.8-6.9,6c-3.5,0.2-6.5-1.9-7.5-5.2l-5-16.1c-0.2-0.7-0.7-0.9-1.1-0.8   c-0.4,0-0.9,0.2-1.1,0.9l-4,16.5c-0.8,3.4-3.7,5.6-7.1,5.7c-3.5,0.1-6.4-2.1-7.4-5.4l-5-17.1c-0.2-0.7-0.7-0.8-1.1-0.8l0,0   c-0.4,0-0.9,0.1-1.1,0.9l-5.2,18.5c-0.9,3.2-3.8,5.4-7.1,5.4c-3.4-0.1-6.2-2.1-7.3-5.3l-4.8-16.1c-0.2-0.7-0.7-0.9-1.1-0.8   c-0.4,0-0.9,0.2-1.1,0.9l-4.8,25c-0.4,2.1-1.7,4-3.7,5.1c-1.1,0.6-2.4,0.9-3.6,0.9c-0.6,0-1.3-0.1-1.9-0.3   c1,13.8,12.6,24.8,26.7,24.8h71.3l33,17.3l-6.9-22.2C-257.3,434.5-252.8,426.5-252.8,417.5z"/>
			<path fill="#FFFFFF" d="M-386.7,413.4c0.5,0.2,0.8,0,1-0.1c0.2-0.1,0.5-0.3,0.6-0.8l4.8-25c0.7-3.4,3.5-5.8,7-6   c3.6-0.2,6.5,1.9,7.5,5.3l4.8,16.1c0.2,0.7,0.7,0.8,1.1,0.8s0.9-0.1,1.1-0.9l5.2-18.5c0.9-3.2,3.8-5.4,7.2-5.4h0.1   c3.4,0,6.2,2.1,7.2,5.4l5,17.1c0.2,0.7,0.6,0.9,1.1,0.8c0.4,0,0.9-0.2,1.1-0.9l4-16.5c0.8-3.3,3.6-5.6,7.1-5.7   c3.4-0.1,6.4,2,7.4,5.2l5,16.1c0.2,0.7,0.7,0.8,1.1,0.8s0.9-0.2,1.1-0.9l2.7-13.6c0.7-3.4,3.5-5.8,7-6c3.4-0.2,6.5,1.9,7.5,5.3   l4.9,16.3c0.2,0.7,0.7,0.8,1.1,0.8l0,0c0.4,0,0.9-0.1,1.1-0.9l5.2-18.5c0.9-3.2,3.8-5.4,7.2-5.4c0,0,0,0,0.1,0   c3.4,0,6.2,2.1,7.2,5.4l5,17.1c0.2,0.7,0.7,0.9,1.1,0.8c0.4,0,0.9-0.2,1.1-0.9l2.1-8.9v-17.5c0-14.7-12-26.7-26.7-26.7h-82.1   c-14.7,0-26.7,12-26.7,26.7v38.5L-386.7,413.4z"/>
		</g>
		</svg>
		 </li>
		 <li>
			<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-432 284 225 225" enable-background="new -432 284 225 225" xml:space="preserve">
		<rect id="bg" x="-432" y="284" fill="#9FA06E" width="225" height="225"/>
		<circle id="circ" display="none" fill="#E533D0" cx="-319.5" cy="396.5" r="112.5"/>
		<g id="icons">
			<g id="pencil">

					<rect x="-329.6" y="454.3" transform="matrix(0.964 -0.2659 0.2659 0.964 -133.922 -70.6941)" fill="#FFFFFF" width="3.1" height="9.9"/>
				<path fill="#FFFFFF" d="M-330.6,465l-5.6,1.6c-2.3,0.7-4.8-0.7-5.4-3.1l-0.2-1c-0.7-2.3,0.7-4.8,3.1-5.4l5.6-1.6L-330.6,465z"/>
				<polygon fill="#FFFFFF" points="-270.4,447 -264.5,443.5 -271.3,443.5 -265.5,440.1 -272.2,440.1 -266.3,436.8 -325.2,453     -322.4,463 -263.4,446.8   "/>
				<g>
					<polygon fill="#FFFFFF" points="-241.5,435.2 -249.5,435.4 -248.5,439.1    "/>
					<polygon fill="#FFFFFF" points="-251.9,435.6 -252.6,435.6 -261.6,435.8 -266.2,438.4 -260.4,438.6 -260.4,438.6 -265.2,441.8      -259.6,442 -259.6,442 -264.3,445.1 -259.1,445.1 -251.2,440.6 -250.6,440.3    "/>
				</g>
			</g>
			<g id="brush">
				<path fill="#FFFFFF" d="M-341.2,388.9h-48.4c-4.4,0-7.9,3.5-7.9,7.9v12c0,4.4,3.5,7.9,7.9,7.9h14.6v32.9c0,3.1,2.6,5.7,5.7,5.7    h5.2c3.1,0,5.7-2.6,5.7-5.7v-32.9h17.1c4.4,0,7.9-3.5,7.9-7.9v-12C-333.3,392.5-336.8,388.9-341.2,388.9z M-364.6,448    c-1.3,1.2-3.4,1-4.5-0.4c-1.2-1.4-1-3.4,0.4-4.5c1.3-1.2,3.4-1,4.5,0.4C-363.1,444.9-363.3,446.9-364.6,448z"/>
				<g>
					<path fill="#FFFFFF" d="M-384.1,345h-7.5c-3.4,6.1-5,13.1-5,20.6c0,7.3,1.6,14,4.8,20h7.4c-4-5.7-5.1-12.5-5.1-20     C-389.6,357.8-388.3,350.7-384.1,345z"/>
					<path fill="#FFFFFF" d="M-372.7,345h-7.8c-3.4,6.1-5,13.1-5,20.6c0,7.3,1.6,14,4.8,20h7.7c-4-5.7-5.4-12.5-5.4-20     C-378.4,357.8-376.8,350.7-372.7,345z"/>
					<path fill="#FFFFFF" d="M-362.1,345h-7.4c-3.4,6.1-5,13.1-5,20.6c0,7.3,1.6,14,4.8,20h7.3c-4-5.7-5.1-12.5-5.1-20     C-367.6,357.8-366.4,350.7-362.1,345z"/>
					<path fill="#FFFFFF" d="M-351.1,345h-7.4c-3.4,6.1-5,13.1-5,20.6c0,7.3,1.6,14,4.8,20h7.4c-4-5.7-5.2-12.5-5.2-20     C-356.5,357.8-355.2,350.7-351.1,345z"/>
					<path fill="#FFFFFF" d="M-339.9,345h-7.7c-3.4,6.1-5,13.1-5,20.6c0,7.3,1.6,14,4.8,20h7.7c-4-5.7-5.4-12.5-5.4-20     C-345.6,357.8-344.2,350.7-339.9,345z"/>
				</g>
			</g>
			<path id="scissors" fill="#FFFFFF" d="M-252.1,406l-25.8-26.5l-4.2-20c4.8,2.1,10.4,2.1,15.4-0.5c8.5-4.5,11.7-15.1,7.2-23.6   s-15.1-11.7-23.6-7.2c-7.5,4-10.9,12.8-8.4,20.6l0,0l4.5,21.3l-15.2-15.6l0,0c-5.2-6.4-14.3-8.4-21.8-4.5   c-8.5,4.5-11.7,15.1-7.2,23.6s15.1,11.7,23.6,7.2c4.9-2.6,8.1-7.3,9-12.5l14.3,14.6l7.7,36.2c0.8,3.7,4.5,6.1,8.2,5.4l-6.8-32.2   l23.1,23.5C-249.5,413.1-249.5,408.7-252.1,406z M-310.8,375.2c-5.4,2.9-12,0.8-14.8-4.5c-2.9-5.4-0.8-12,4.5-14.8   c5.4-2.9,12-0.8,14.8,4.5C-303.5,365.7-305.6,372.3-310.8,375.2z M-280.2,333.9c5.4-2.9,12-0.8,14.8,4.5c2.9,5.4,0.8,12-4.5,14.8   c-5.4,2.9-12,0.8-14.8-4.5C-287.4,343.4-285.5,336.8-280.2,333.9z M-282.3,379.3c-1.2,0.7-2.6,0.2-3.2-1c-0.6-1.2-0.2-2.6,1-3.2   c1.2-0.7,2.6-0.2,3.2,1C-280.8,377.1-281.2,378.6-282.3,379.3z"/>
		</g>
		</svg>
		 </li>
		 <li>
		 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="-432 284 225 225" enable-background="new -432 284 225 225" xml:space="preserve">
		<rect id="bg" x="-432" y="284" fill="#9FA06E" width="225" height="225"/>
		<circle id="circ" display="none" fill="#E533D0" cx="-319.5" cy="396.5" r="112.5"/>
		<g id="It_x27_s_about_your_business_x2C__not_ours">
			<g>
				<path fill="#FFFFFF" d="M-289.6,396.5c2.3,8.6,1.6,18.1-2.7,26.8c-4.2,8.6-11.3,15-19.4,18.5l6.1,9.1c9.7-4.7,17.9-12.4,23-22.8    c5.1-10.4,6.2-21.7,4-32.3L-289.6,396.5z"/>
				<path fill="#FFFFFF" d="M-253.2,394l-12.9,0.9c2.4,12.7,0.8,26.1-5.3,38.6c-6.1,12.4-15.8,21.8-27.2,27.7l7.2,10.7    c13.2-7.1,24.4-18.3,31.6-32.8C-252.8,424.6-250.8,408.9-253.2,394z"/>
			</g>
			<g>
				<path fill="#FFFFFF" d="M-343,321c-24.2,0-43.7,19.6-43.7,43.7c0,15.3,0,51.8,0,64.8c0,16.5,13.5,30,30,30c16.5,0,30-13.5,30-30    c0-33.2,26.6-36.9,26.6-65.3C-300.3,336.5-318.9,321-343,321z M-335.9,421.8c0,0.8,0,1.7-0.1,2.5c-0.6,12.3-5.7,23-18.1,23    c-1.3,0-2.6-0.1-3.7-0.3c-6.2-0.5-10.5-3.3-13.4-7.3c-1.1-1.4-1.9-3-2.6-4.7c1.9,0.7,4,1.1,6.2,1.1c9.9,0,17.9-8,17.9-17.9    s-8-17.9-17.9-17.9c-3,0-5.9,0.8-8.4,2.1c0-11.9,0-25.3,0-32.7c0-19.3,13.6-35.1,33-35.1c19.3,0,31.4,12.7,31.4,29.6    C-311.6,387.7-335.9,391.8-335.9,421.8z"/>
				<path fill="#FFFFFF" d="M-344.3,344.8c-6.9,0-13.2,3.3-17.2,8.4l2.6,2c3.4-4,8.4-6.6,14.1-6.6c10.2,0,18.6,8.3,18.6,18.6    c0,7.1-4,13.4-10,16.4l1.6,2.4c7.2-3.5,12.1-10.9,12.1-19.5C-322.6,354.5-332.3,344.8-344.3,344.8z"/>
			</g>
		</g>
		</svg>
		 </li>
		</ul> 
		</div>
	</section>
	
	<span class="scroll-to-top hide"></span>
	<span class="jToolTip"></span>
</div>

              
            
!

CSS

              
                ////////////////////////////////////
// Fonts
////////////////////////////////////
@font-face {
  font-family:'Dapifer';
  src:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/42973/Dapifer-Book.otf');
  font-weight:normal;
  font-style:normal;
}
@font-face {
  font-family:"League-Gothic";
  src:url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/42973/LeagueGothic-Regular.otf");
  font-weight:normal;
  font-style:normal;
}

////////////////////////////////////
// Colors
////////////////////////////////////
$olive-yellow: #B0AF81;
$sage: #efefe6;
$light-grey: #A1A0A1;
$dark-grey: #666666;
$background: #FCFBF9;
$dark-purple: #663366;

$color-primary: $dark-purple;
$color-accent: $olive-yellow;

$border-radius:4px;

%transition {
  -webkit-transition: all 0.3s ease-in-out;
     -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
       -o-transition: all 0.3s ease-in-out;
          transition: all 0.3s ease-in-out;
}

@mixin button{
	background-color: $dark-purple;
	display: inline-block;
	font-family: "Dapifer";
	font-weight: bold;
	font-size: 1em;
	line-height: 1em;
	padding:10px 30px;
	height:62px;
	border:none;
	color:#fcfbf9;
	border-radius:$border-radius;
	margin:5px;
	@extend %transition;
	&:hover{
		background-color: $olive-yellow;
		cursor: pointer;
		color: $dark-purple;
	}
}




////////////////////////////////////
// Media Queries
////////////////////////////////////
@mixin small-screen{
  @media only screen and (max-width: 40em) {
    @content;
  }
}
@mixin medium-screen{
  @media only screen and (min-width: 40.063em) {
    @content;
  }
}
@mixin medium-screen-only{
  @media only screen and (min-width: 40.063em) and (max-width: 64em) {
    @content;
  }
}
@mixin large-screen{
  @media only screen and (min-width: 64.063em) {
    @content;
  }
}

////////////////////////////////////
// Typography
////////////////////////////////////
$h1-font-size:72px;
$h2-font-size:60px;
$h3-font-size:48px;
$h4-font-size:36px;
$h5-font-size:24px;
$h6-font-size:22px;
$subhead-font-size:24px;
$body-font-size:18px;
@mixin body-font{
	font-size:$body-font-size;
	line-height: 1.5em;
}


.page-wrapper{
 max-width:1200px;
 margin: 0 auto 20px;
 box-sizing: border-box;
 font-family: Helvetica;
	-webkit-font-smoothing: antialiased;
	position: relative;
}
.text-link{
 font-family:Dapifer;
 font-weight: 500;
 font-size: 18px;
 line-height: 24px;
 color:#b0af81;
 text-decoration: underline; 
}

// UI Elements
header{
	background-color: $color-primary;
	padding: 20px;
	/* margin-bottom: 20px; */
}
h1{
	font-family:"League-Gothic";
	font-size: $h1-font-size;
	margin: 0px;
	color:white;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}	
nav{
	/* background-color: green; */
	ul{
		margin:0;
		padding:0;
	}
	li{
		list-style-type: none;
	}
	a{
		padding:5px 10px 10px;
		display: block;
		font-family:'Dapifer';
		font-size: 18px;
		line-height: 1.8em;
		font-weight: bold;
		border-bottom:solid 2px #fff;
		@extend %transition;
		&:hover{
			/* background-color: red; */
			border-bottom:solid 2px $olive-yellow;
		}
	}
	@include medium-screen{
		li{
			display: inline-block;
			margin-right: 5px;
		}
		a{
			padding-left:20px;
			padding-right:20px;
		}
	}
}
a{
	text-decoration: none;
	color:black;
}
.navigation{
	margin-top: 10px;
	margin-bottom: 10px;
}
//Typography
.typography{
	ul{
		padding-left:0;
		font-family: "League-Gothic";
	}
	li{
		list-style-type: none;
	}
	.h1-font-size{
	font-size: $h1-font-size;
	color: $light-grey;
	}
	.h2-font-size{
	font-size: $h2-font-size;
	color: $dark-purple;
	}
	.h3-font-size{
	font-size: $h3-font-size;
	color:$dark-grey;
	}
	.h4-font-size{
	font-size: $h4-font-size;
	color:$dark-grey;
	}
	.h5-font-size{
	font-size: $h5-font-size;
	color:$dark-purple;
	}
	.h6-font-size{
	font-size: $h6-font-size;
	
	}
	.subhead-font-size{
		font-size: $subhead-font-size;
		line-height: 32px;
		font-family: 'Dapifer';
		margin:0;
		padding:0;
	}
	.helper-text{
		/* background-color: red; */
		margin-top: 10px;
		margin-bottom: 20px;
		padding-bottom: 20px;
		font-family: helvetica;
		font-size: 18px;
		border-bottom:solid thin #ccc;
	}
	.body-font-size{
		font-family: 'Dapifer';
		@include body-font;
	}
	blockquote{
		border: solid thin $color-primary;
		font-family: 'Dapifer';
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
}
// Colors
.colors{
 /* background-color: red; */
	li{
  display: inline-block;
  padding:30px 40px;
  background-color: #333;
  border: solid thin #ccc;
 }
 .color-1{
  background-color: $dark-purple;
	color:white;
 }
 .color-2{
  background-color: $background;
 }
 .color-3{
  background-color: $dark-grey;
	color:white;
 }
 .color-4{
  background-color: $light-grey;
 }
 .color-5{
  background-color: $olive-yellow;
 }
	.color-6{
  background-color: $sage;
 }
}
.text-link{
	color: $color-primary;
	text-decoration: none;
	border-bottom: solid 2px;
	padding-bottom: 3px;
	&:hover{
		color: $color-accent;
		@extend %transition;
	}
}
.inputs{
	label{
		display: block;
		margin-bottom: 5px;
	}
	input{
		display: block;
	}
	input[type="email"], input[type="text"], input[type="password"], textarea, fieldset{
		width:60%;
		border-radius: 4px;
		/* padding:5px; */
		font-size: 1.3em;
		font-family:'Dapifer';
		border: solid thin #ccc;
		margin-bottom: 10px;
		box-sizing: border-box;
		&:focus {
    	outline: none;
		}
	}
	input[type="email"], input[type="text"], input[type="password"]{
		height:62px;
		padding:15px;
	}
	input[type="submit"], button, .button{
		@include button;
	}
	select{
		width:60%;
		padding:5px;
		font-size: 16px;
		height:60px;
		display: block;
		margin-bottom: 20px;
		-webkit-appearance: menulist-button;
		&:focus {
    	outline: none;
		}
	}
	legend{
		padding: 5px 10px;
    /* background-color: red; */
    display: inline-block;
	}
	textarea{
		height: 100px;
		padding:10px;
	}
	fieldset{
		padding: 20px;
		span{
			display: block;
		}
		input, label{
			display: inline-block;
		}
	}
}
.combo{
	input{
		witdth:75%;
		float: left;
		margin-right: 10px;
	}
	button{
		width:25%;
		margin: 0;
	}
}
section{
	position: relative;
	background-color: #eee;
	padding:5px 20px 15px;
	margin-bottom: 30px;
}
.section-title{
	background-color: #ccc;
	padding:20px;
	&:hover{
		cursor:pointer;
	}
}
/* $view-height-size:30vh;
.announcement { 
	display: block;
	height:$view-height-size;
	font-size: 3em;
	line-height:$view-height-size;
	text-align: center;
	background-color:pink;
} */

.section-content{
	// border: solid thin $color-primary;
	// padding:20px;
	display: none;
}
.open{
	.section-content{
		display: block;
	}
	.burger-nav{
		background-color: $color-primary;
		span{
			background-color: #fff;
		}
	}
}

// .typography{
// 	.section-content{
// 		height:0em;
// 		overflow: hidden;
// 		transition-property: height;
// 		transition-duration: 2s;
// 		transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
		
// 		// transition: height .3s linear, padding-top .3s linear, padding-bottom .3s linear, border-top-width .3s linear, border-top-width .3s linear;
// 		// transition: height 500ms ease-in-out;
// 	}
// }

.typography.open{
	.burger-nav{
		transform: rotate(90deg);
	}
}

.colors, .inputs{
	.burger-nav{
		// background-color: yellow;
		height: 50px;
		width: 50px;
		padding:0;
		.line{
			position: absolute;
			width:30px;
			left: 10px;
		}
		.top{
			top:12px;
		}
		.middle{
			top:22px;
		}
		.bottom{
			top:32px;
		}
	}
}
.colors.open, .inputs.open{
	.burger-nav{
		transform: rotate(90deg);
		.top{
			// top:10px;
			top:23px;
			transform: rotate(45deg);
		}
		.middle{
			width:0%;
			left: 50%;
			text-align: center;
		}
		.bottom{
			top:23px;
			transform: rotate(-45deg);
		}
	}
}
// .inputs.open{}
@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {-webkit-trans
			: translateY(0);}
    40% {-webkit-transform: translateY(-30px);}
    60% {-webkit-transform: translateY(-15px);}
} 
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}
.scroll-to-top{
  position: fixed;
  right:10px;
  width:40px;
  height:40px;
  line-height: 40px;
  background-color:#f7f7f7;
  z-index:9999;
  border-radius: 4px;
  text-align: center;
  @extend %transition;
  &:hover{
    background-color: #ccc;
		cursor:pointer;
  }
  &:after{
    content:"↑";
  }
}
.animated { 
	animation-duration: 1s; 
	animation-fill-mode: both; 
	/* animation-iteration-count:3; */
	animation-iteration-count:infinite; 
}
.bounce { 
	-webkit-animation-name: bounce; 
	animation-name: bounce; 
}

@keyframes scroll-to-top-show {
	0% {
		bottom: -100px;
	}
  100% {
		bottom: 10px;
	}
}
@keyframes scroll-to-top-hide {
	0% {
		bottom: -10px;
	}
  100% {
		bottom: -100px;
	}
}
.scroll-to-top-show{
	animation-name: scroll-to-top-show;
	animation-duration: 1s; 
	animation-fill-mode: both; 
	animation-iteration-count:1;
}
.scroll-to-top-hide{
	animation-name: scroll-to-top-hide;
	animation-duration: 1s; 
	animation-fill-mode: both; 
	animation-iteration-count:1;
}

.burger-nav{
	width:50px;
	display: block;
	box-sizing: border-box;
	padding: 10px;
	// background-color: green;
	position: absolute;
	top: 35px;
	right: 30px;
	@extend %transition;
	&:hover{
		cursor:pointer;
	}
	span{
		display: block;
		background-color: $color-primary;
		height: 5px;
		width: 100%;
		margin-bottom: 5px;
		@extend %transition;
		&:last-of-type{
			margin-bottom: 0;
		}
	}
}

.jToolTip{
	padding:1em;
	background-color: #eee;
	border: solid thin #ccc;
	position: fixed;
	bottom:0;
	left: 0;
	z-index: 9999;
	// display: none;
}


.icon-list{
 li{
	 // background-color: yellow;
	 list-style-type: none;
	 display: inline-block;
	 padding: 0.5em;
	 box-sizing: border-box;
 }
}
svg{
 /* fill:red; */
 width:200px;
 height:200px;
 border-radius:100%;
 
 &:hover{
  #bg{
   fill:$color-primary;
  }
 }
}
#bg{
 fill:$olive-yellow;
 transition: fill .4s ease;
}
              
            
!

JS

              
                var jToolTip = $(".jToolTip");

var pTag = document.createElement("p");
var innerSpan = document.createElement("span");
pTag.className = "info";
pTag.innerHTML = "Window scroll top: ";
pTag.appendChild(innerSpan);

jToolTip.append(pTag);

// calculate the height of the header
var jHeader = document.querySelector("header");
var result = jHeader.offsetHeight;
// var result = jHeader.clientHeight;


// Add the burger nav to each section
$(".page-wrapper section").each(function (index, value) {
	var toggleIcon = $('<span class="burger-nav"><span class="line top"></span><span class="line middle"></span><span class="line bottom"></span></span>');
	$(this).append(toggleIcon);
	// console.log('the index', index);
	// console.log('the value', value);
});

$(".burger-nav").click(function(){
	// adding the toggle class to the section
	$(this).parent().toggleClass("open");
	buttonClicked();
});


$(document).on('scroll', function(){
	
	// update jToolTip
	var scrollTop = $(window).scrollTop().toFixed(2);
	$(".info span").text(scrollTop + "px");
	
	if ( $(document).scrollTop() > result ){
		$('.scroll-to-top').addClass('scroll-to-top-show');
		$('.scroll-to-top').removeClass('scroll-to-top-hide');
	} else {
		$('.scroll-to-top').addClass('scroll-to-top-hide');
		$('.scroll-to-top').removeClass('scroll-to-top-show');
	}
});

$('.scroll-to-top').click(function(){
	var body = $("html, body");
	body.animate({scrollTop:0},'500','swing');
});


function buttonClicked(){
	console.log("Button has been clicked");
}
              
            
!
999px

Console