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

              
                <section class="md-ui component-card" data-material-ui-component="card">
	<figure class="md-ui card-figure">
		<img class="figure-photo" src="https://images.unsplash.com/photo-1465326117523-6450112b60b2?dpr=1&auto=format&crop=entropy&fit=crop&w=1366&h=769&q=80">
		<figcaption class="figure-caption">
			<h1 class="caption-title">Mount Everest</h1>
			<h2 class="caption-subtitle">The tallest mountain in the world</h2>
			<div class="action-menu">
				<input type="button" class="figure-action-button" value="share">
				<input type="button" class="figure-action-button explore" value="explore">
				<i class="material-icons md-36">keyboard_arrow_up</i>
			</div>
			<p class="caption-paragraph">Mount Everest, also known in Nepal as Sagarmāthā and in Tibet as Chomolungma, is Earth's highest mountain. It is located in the Mahalangur mountain range in Nepal and Tibet. Its peak is 8,848 metres (29,029 ft) above sea level. The international border between China (Tibet Autonomous Region) and Nepal runs across Everest's precise summit point.</p>
		</figcaption>
	</figure>
</section>
              
            
!

CSS

              
                body {
	background: #eee;
	font-size: 100%;
}

/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }

.md-ui.component-card {
	background: #fff;
	border: 0;
	border-radius: .125em;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
	color: #212121;
	font-family: "Roboto", sans-serif;
	font-size: 1em;
	font-weight: 400;
	text-align: left;
	width: 400px;
	display: block;
	padding: 0;
	margin: 1em;
	z-index: 1;
	.card-figure {
		padding: 0;
		margin: 0 auto;
		display: block;
		.figure-photo {
			border-radius: .125em .125em 0 0;
			text-align: center;
			width: 400px;
			display: block;
			margin: 0 auto;
		}
		.figure-caption {
			text-align: left;
			padding: 0;
			margin: 0;
			.caption-title {
				color: #212121;
				font-size: 1.5em;
				font-weight: 400;
				padding: 24px 16px 16px 16px;
				margin: 0;
			}
			.caption-subtitle {
				color: #9e9e9e;
				font-size: .875em;
				font-weight: 400;
				padding: 0 16px 16px 16px;
				margin: 0;
			}
			.action-menu {
				padding: 8px;
				.figure-action-button {
					background: transparent;
					border: 0;
					box-shadow: none;
					color: #212121;
					font-family: "Roboto", sans-serif;
					font-size: .875em;
					font-weight: 700;
					text-align: center;
					text-transform: uppercase;
					height: 36px;
					min-width: 64px;
					padding: 0 16px;
					display: inline-block;
					vertical-align: middle;
					cursor: pointer;
					&.explore {
						color: #2196F3;
					}
				}
				i {
					float: right;
					padding-right: 8px;
					display: inline-block;
					vertical-align: middle;
				}
			}
			.caption-paragraph {
				color: #212121;
				font-size: .875em;
				font-weight: 400;
				line-height: 1.75;
				padding: 16px 16px 24px 16px;
				margin: 0;
			}
		}
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console