Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <input type="checkbox" id="share-menu" />
<label for="share-menu" class="share-menu">
	<ul>
		<li><strong>Share</strong></li>
		<li><a href="#">Google+</a></li>
		<li><a href="#">Facebook</a></li>
		<li><a href="#">Twitter</a></li>
		<li><a href="#">Email</a></li>
	</ul>
</label>
<header>
	<h1>Material Share Button + Menu (CSS Only)<br />
		<span>Click It</span></h1>
</header>
<section>
	<div class="container">
		<h2>Busey Ipsum</h2>
		<p>The best way to communicate is compatible. Compatible communication is listening with open ears and an open mind, and not being fearful or judgemental about what you're hearing.I wrestled a bear once. A 750lbs black bear.When you get lost in your imaginatory vagueness, your foresight will become a nimble vagrant.</p>

		<p>It's OK to get Rib-grease on your face, because you're allowing people to see that you're proud of these ribs.These kind of things only happen for the first time once.You gotta go through it to see there ain't nothing to it.When you get lost in your imaginatory vagueness, your foresight will become a nimble vagrant.</p>

		<p>You gotta go through it to see there ain't nothing to it.The best way to communicate is compatible. Compatible communication is listening with open ears and an open mind, and not being fearful or judgemental about what you're hearing.I would like to give you a backstage pass to my imagination.</p>

		<p>I wrestled a bear once. A 750lbs black bear.When you get lost in your imaginatory vagueness, your foresight will become a nimble vagrant.It's OK to get Rib-grease on your face, because you're allowing people to see that you're proud of these ribs.Sometimes horses cough and fart at the same time, so stay out of the range of its butt muscle because a horses butt muscle is thick.</p>

		<p>Go with the feeling of the nature. Take it easy. Know why you're here. And remember to balance your internal energy with the environment.The best way to communicate is compatible. Compatible communication is listening with open ears and an open mind, and not being fearful or judgemental about what you're hearing.</p>
	</div> <!-- .container -->
</section>
<footer>
	<p>Click this <a href="http://www.geekstudios.co" target="_blank">link</a>.</p>
</footer>
              
            
!

CSS

              
                @import "bourbon";
@import "neat";

html, body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	color: #555; 
}

.container {
	max-width: 80%;
	margin: 0 auto;
}

header {
	position: relative;
	width: 100%;
	height: 250px;padding: 100px 0;
	background-color: whitesmoke;
	
	h1 {
		position: relative;
		margin: 0;
		padding: 0;
		font-weight: 100;
		text-align: center;
		line-height: 1;
		
		span {
			position: relative;
			padding: 5px 10px;
			background-color: darken(whitesmoke,30%);
			font-size: 14px;
			font-weight: 100;
			color: white;
			border-radius: 99px;
		}
	}
}

section {
	position: relative;
	width: 100%;
	padding: 50px 0;
	background-color: white;
	border-top: 1px solid #e0e0e0;
	
	p {
		font-weight: 300;
		line-height: 1.5;
	}
}

footer {
	position: relative;
	width: 100%;
	padding: 30px 0;
	background-color: lighten(black,20%);
	
	p {
		color: white;
		font-weight: 300;
		text-align: center;
		
		a {
			color: white;
		}
	}
}

.share-menu {
	position: absolute;
	display: block;
	width: 50px;
	height: 50px;
	right: 40px;
	top: 225px;
	padding: 0 12px;
	color: white;
	line-height: 1.75;
	border-radius: 50%;
	font-size: 24px;
	line-height: 2.2;
	background-color: Tomato;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
	float: right;
	cursor: pointer;
	transition: width 250ms, height 250ms, border-radius 250ms;
	z-index: 10;
	
	&:before {
		position: absolute;
		// right: 0;
		// top: 0;
		content: '\e80d';
		font-family: 'Material Icons';
		font-weight: 100;
		text-align: center;
	}

	ul {
		display: none;
		width: 0;
		height: 0;
	}
}

#share-menu {
	display: none;

	&:checked + .share-menu {
		position: absolute;
		display: block;
		width: 200px;
		height: 200px;
		right: 40px;
		top: 225px;
		border-radius: 4px;
		float: right;
		clear: right;
		
		
		&:before {
			position: absolute;
			right: 20px;
			top: 0;
			content: '\e5cd';
			font-family: 'Material Icons';
			font-weight: 100;
			
			&:hover {
				transform: rotate(360deg);
			}
		}

		ul {
			position: relative;
			display: block;
			margin: 0;
			padding: 10px;
			list-style-type: none;
			font-size: 16px;
			
			li {
				
				a {
					font-family: sans-serif;
					font-weight: 100;
					font-size: 14px;
					color: white;
					text-decoration: none;
				}
			}
		}
	}
}
























.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  //font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}
              
            
!

JS

              
                
              
            
!
999px

Console