css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

            
              <div id="hero-container">
	<div class="hero-headline f-halogen"><img src="https://2015.us.wordcamp.org/files/2015/09/icon-star-white.png" class="medium-star" /> <img src="https://2015.us.wordcamp.org/files/2015/09/icon-star-white.png" class="medium-star" /> The Inaugural <img src="https://2015.us.wordcamp.org/files/2015/09/icon-star-white.png" class="medium-star" /> <img src="https://2015.us.wordcamp.org/files/2015/09/icon-star-white.png" class="medium-star" /></div>

	<div id="hero">
		<div class="hero">
			<div class="hero-row v-align-children">
				<div class="hero-column hero-column-6 v-align-bottom">
					<img class="wc-logo" src="https://2015.us.wordcamp.org/files/2015/09/logo1.png" />
				</div>

				<div class="hero-column hero-column-6 t-center v-align-bottom c-secondary hero-event-info">
					<div class="hero-column hero-column-12 medium-type f-base">
						Philadelphia <img src="https://2015.us.wordcamp.org/files/2015/09/icon-bell.png" class="image-inline image-medium" /> PA
					</div>

					<div class="hero-column hero-column-12 large-type c-primary b-top-secondary f-inline extra-pad">
						December 4th
					</div>

					<div class="hero-column hero-column-12 large-type b-bottom-secondary">
						<span class="small-type f-halogen"><span class="icon-star"></span> Through the <span class="icon-star"></span></span> <span class="c-primary f-inline">6th</span>
					</div>

					<div class="hero-column hero-column-12 f-base">
						&bull; At the Pennsylvania Convention Center &bull;
					</div>
				</div>
			</div>

			<div class="hero-row v-align-children">
				<div class="hero-column hero-column-6 v-align-top hide-for-small">
					<img class="wc-logo" src="https://2015.us.wordcamp.org/files/2015/09/date-1.png" />
				</div>

				<div class="hero-column hero-column-6 v-align-top t-center">
					<div class="hero-column hero-column-12">
						<a href="/tickets" class="button"><span class="left"><img src="https://2015.us.wordcamp.org/files/2015/09/diamonds-alt.png" class="image-small img-v-middle" /></span> Tickets Now On Sale <span class="right"><img src="https://2015.us.wordcamp.org/files/2015/09/diamonds.png" class="image-small img-v-middle"></span></a>
					</div>

					<div class="hero-column hero-column-6 v-align-top show-for-small">
						<img class="wc-logo" src="https://2015.us.wordcamp.org/files/2015/09/date-1.png" />
					</div>

					<div class="hero-column hero-column-12 large-type">
						<img src="https://2015.us.wordcamp.org/files/2015/09/floral.png" class="image-medium" />
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
            
          
!
            
              // Load Fonts
@import url('https://fonts.googleapis.com/css?family=Oswald:400,700,300');

@font-face {
	font-family: 'icomoon';
	src:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/147958/icomoon.eot?jhnm0z');
	src:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/147958/icomoon.eot?#iefixjhnm0z') format('embedded-opentype'),
		url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/147958/icomoon.ttf?jhnm0z') format('truetype'),
		url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/147958/icomoon.woff?jhnm0z') format('woff'),
		url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/147958/icomoon.svg?jhnm0z#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;

	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-diamonds-open:before {
	content: "\e602";
}
.icon-diamonds-close:before {
	content: "\e603";
}
.icon-floral:before {
	content: "\e604";
}
.icon-kite:before {
	content: "\e600";
}
.icon-star:before {
	content: "\e601";
}


// Set Variables
/* Color Variables */
$color_primary:   #941217;
$color_secondary: #0f2b56;
$color_accent:    #474747;

/* Font Variables */
$font:         'industry';
$font_base:    'industry-inc-base';
$font_bevel:   'industry-inc-bevel';
$font_inline:  'industry-inc-inline';
$font_halogen: 'halogen';

/* Dimension Variables */
$padding:           15px;
$border-width:      4px;
$height-small:      1.55rem;
$height-small-low:  1.09rem;
$height-medium:     2.7rem;
$height-medium-low: 1.75rem;
$height-large:      3.75rem;
$height-large-low:  2.65rem;

/* Transition/Animation Variables */
$easing: cubic-bezier(0.65, 0.05, 0.36, 1);
$time:   250ms;

/* Media Query Variables */
$media_up:   701px;
$media_down: 700px;

$media_large:  '( min-width: 1025px )';
$media_medium: '( min-width: 701px ) and ( max-width: 1024px )';
$media_small:  '( max-width: 700px )';

// Mixins
/* Trusty clearfix */
@mixin clearfix {
	*zoom: 1;
	&:before, &:after {
		content: " ";
		display: table;
	}
	&:after {
		clear: both;
	}
}

/* Add browser-prefix to properties as needed */
@mixin prefix ( $prop, $val ) {
	$vendors: null;
	$v_w: '-webkit-';
	$v_wo: '-webkit-', '-o-';
	$v_wmo: '-webkit-', '-moz-', '-o-';
	$v_wi: '-webkit-', '-ms-';

	@if $prop == 'animation'{ $vendors: $v_wi; }
	@if $prop == 'transform'{ $vendors: $v_wi; }
	@if $prop == 'transition'{ $vendors: $v_wo; }
	@if $prop == 'box-shadow'{ $vendors: $v_w; }
	@if $prop == 'background-blend-mode' { $vendors: $v_w; }

	@each $vendor in $vendors {
		#{$vendor}#{$prop}: $val;
	}

	#{$prop}: $val;
}

@mixin retina () {
	@media
	only screen and (-webkit-min-device-pixel-ratio: 2),
	only screen and (   min--moz-device-pixel-ratio: 2),
	only screen and (     -o-min-device-pixel-ratio: 2/1),
	only screen and (        min-device-pixel-ratio: 2),
	only screen and (                min-resolution: 192dpi),
	only screen and (                min-resolution: 2dppx) {
		@content;
	}
}

@media ( min-width: $media_up ) {
	.show-for-small {
		display: none !important;
	}
}

@media ( max-width: $media_down ) {
	.hide-for-small {
		display: none !important;
	}

	.hero-column + .hero-column {
		margin-top: 8px;
	}
}

body {
	background: {
		attachment: fixed;
		image: url('https://2015.us.wordcamp.org/files/2015/09/hero-background.jpg');
		position: 50% 0;
		size: cover;
	}
	box-sizing: border-box;
	color: $color_secondary;
	font-family: $font;
	font-size: 16px;
	line-height: 1.125em;
	
	*, *:before, *:after {
		box-sizing: inherit;
	}
}

.left {
	float: left;
}

.right {
	float: right;
}

a {
	color: $color_primary;
	text-decoration: none;
	transition: color 400ms $easing;

	&:hover {
		color: $color_secondary;
	}
}

h1 {
	@media #{$media_large} {
		font-size: $height-large;
		line-height: $height-large;
	}

	@media #{$media_medium} {
		font-size: $height-large-low;
		line-height: $height-large-low;
	}
	
	@media #{$media_small} {
		font-size: $height-large;
		line-height: $height-large;
	}
	
	@media ( max-width: 500px ) {
		font-size: $height-large-low * .9;
		line-height: $height-large-low * .9;
	}
}

h2 {
	@media #{$media_large} {
		font-size: $height-medium;
		line-height: $height-medium;
	}

	@media #{$media_medium} {
		font-size: $height-medium-low;
		line-height: $height-medium-low;
	}
	
	@media #{$media_small} {
		font-size: $height-medium;
		line-height: $height-medium;
	}
	
	@media ( max-width: 500px ) {
		font-size: $height-medium-low * .9;
		line-height: $height-medium-low * .9;
	}
}

h3 {
	@media #{$media_large} {
		font-size: $height-small;
		line-height: $height-small;
	}

	@media #{$media_medium} {
		font-size: $height-small-low;
		line-height: $height-small-low;
	}
	
	@media #{$media_small} {
		font-size: $height-small;
		line-height: $height-small;
	}
	
	@media ( max-width: 500px ) {
		font-size: $height-small-low * .9;
		line-height: $height-small-low * .9;
	}
}

h1, h2, h3, h4, h5, h6 {
	font-family: $font_base;
}

#hero {
	display: table;
	padding: 15px 0;
	width: 100%;
	@media ( min-width: $media_up ) {
		min-height: calc(100vh - 100px);

		.hero {
			display: table-cell;
			vertical-align: middle;
		}
	}
}

.hero-row {
	@include clearfix;
	margin: 0 auto;
	max-width: 1000px;
	text-transform: uppercase;
	width: calc(100% - 20px);

	.hero-row {
		width: 100%;
	}
}

@for $i from 1 through 12 {
	.hero-column-#{$i} {
		width: 100% * $i/12;
	}

	.hero-column-offset-#{$i} {
		margin-left: 100% * $i/12;
	}
}

.hero-column {
	float: left;

	@media #{$media_small} {
		margin-left: 0;
		width: 100%;
	}
}

.hero-column-12 + .hero-column-12 {
	margin-top: 8px;
}

#hero-container {
	min-height: 100vh;
}

.c-primary {
	color: $color_primary;
}

.c-secondary {
	color: $color_secondary;
}

.t-center {
	text-align: center;
}

.f-book {
	font-family: $font;
}

.f-base {
	font-family: $font_base;
}

.f-halogen {
	font-family: $font_halogen;
}

.f-bevel {
	font-family: $font_bevel;
}

.f-inline {
	font-family: $font_inline;
}

.b-top-secondary {
	border-top: 4px solid $color_secondary;
}

.b-bottom-secondary {
	border-bottom: 4px solid $color_secondary;
}

.small-type {
	@media #{$media_large} {
		font-size: $height-small;
		line-height: $height-small;
	}

	@media #{$media_medium} {
		font-size: $height-small-low;
		line-height: $height-small-low;
	}

	@media #{$media_small} {
		font-size: $height-small;
		line-height: $height-small;
	}

	@media ( max-width: 500px ) {
		font-size: $height-small-low * .9;
		line-height: $height-small-low * .9;
	}
}

.medium-type {
	@media #{$media_large} {
		font-size: $height-medium;
		line-height: $height-medium;
	}

	@media #{$media_medium} {
		font-size: $height-medium-low;
		line-height: $height-medium-low;
	}

	@media #{$media_small} {
		font-size: $height-medium;
		line-height: $height-medium;
	}

	@media ( max-width: 500px ) {
		font-size: $height-medium-low * .9;
		line-height: $height-medium-low * .9;
	}
}

.large-type {
	line-height: normal;
	position: relative;
	top: -5px;

	@media #{$media_large} {
		font-size: $height-large;
		line-height: $height-large;
	}

	@media #{$media_medium} {
		font-size: $height-large-low;
		line-height: $height-large-low;
	}

	@media #{$media_small} {
		font-size: $height-large;
		line-height: $height-large;
	}

	@media ( max-width: 500px ) {
		font-size: $height-large-low * .9;
		line-height: $height-large-low * .9;
	}

	.small-type,
	.medium-type {
		display: inline-block;
		line-height: inherit;
		position: relative;
		vertical-align: middle;
	}
}

.image-inline {
	display: inline-block;
}

.image-small {
	height: $height-small-low;
}

.image-medium {
	height: $height-medium-low;
}

.hero-headline {
	background: {
		color: rgba($color_secondary, .9);
		image: url('https://2015.us.wordcamp.org/files/2015/09/texture-home.png');
		position: 50% 0;
		size: cover;
	}
	color: white;
	height: 50px;
	line-height: 58px;
	margin-bottom: 50px;
	text-align: center;
	text-transform: uppercase;
	
	@include retina {
		background-image: url('https://2015.us.wordcamp.org/files/2015/09/texture-home-2x.png');
	}

	.medium-star {
		display: inline-block;
		vertical-align: middle;
		position: relative;
		top: -4px;
	}
}

.wc-logo {
	display: block;
	margin: 0 auto;
	max-width: 300px;
	width: 100%;
}

.button {
	@extend .f-book;
	background-color: $color_secondary;
	border: $border-width solid white;
	color: white;
	display: block;
	line-height: 30px;
	padding: 3px 5px 0;
	position: relative;
	overflow: hidden;
	text-decoration: none;
	transition: background-color 400ms $easing;

	&:hover {
		background-color: $color_primary;
		color: white;
	}
}

.v-align-children {
	@media ( min-width: $media_up ) {
		display: table;
		width: 100%;

		.v-align-top,
		.v-align-middle,
		.v-align-bottom {
			display: table-cell;
			float: none;
		}

		.v-align-top {
			vertical-align: top;
		}

		.v-align-middle {
			vertical-align: middle;
		}

		.v-align-bottom {
			vertical-align: bottom;
		}
	}
}

.extra-pad {
	padding-top: 8px;
}
            
          
!
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.
Loading ..................

Console