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 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

              
                [[[https://codepen.io/shaunrfox/pen/QwrRqM]]]

<div class="batches-in-profile-vault-batches">
	<div class="batch active" id="batch_14">
		<div class="batch-status">
			<svg viewBox="0 0 30 30" class="checkbox ico-check">
				<use xlink:href="#ico-check"></use>
			</svg>
			<svg viewBox="0 0 30 30" class="checkbox ico-close">
				<use xlink:href="#ico-close"></use>
			</svg>
		</div>
		<div class="batch-details">
			<a href="" class="search-string">
					hand lettering -RT
			</a>
			<footer class="batch-footer">
				<div class="footer-table">
					<div class="sources">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/twitter-icon-sm.jpg" alt="Twitter">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/instagram-icon-sm.jpg" alt="Instagram">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/facebook-icon-sm.jpg" alt="Facebook">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/youtube-icon-sm.jpg" alt="Youtube">
					</div>
					<div class="search-location">
						<span>San Francisco, California</span>
					</div>
					<div class="result-count">
						<span>899976 Results</span>
					</div>
				</div>
				
				<div class="button icon-button batch-actions"> 
					<svg viewBox="0 0 30 30" class="checkbox ico-arrow-down">
						<use xlink:href="#ico-arrow-down"></use>
					</svg>
				</div>
			</footer>
		</div>
	</div> <!-- /.batch -->
	<div class="batch inactive" id="batch_14">
		<div class="batch-status">
			<svg viewBox="0 0 30 30" class="checkbox ico-check">
				<use xlink:href="#ico-check"></use>
			</svg>
			<svg viewBox="0 0 30 30" class="checkbox ico-close">
				<use xlink:href="#ico-close"></use>
			</svg>
		</div>
		<div class="batch-details">
			<a href="" class="search-string">
					hand lettering -RT
			</a>
			<footer class="batch-footer">
				<div class="footer-table">
					<div class="sources">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/twitter-icon-sm.jpg" alt="Twitter">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/instagram-icon-sm.jpg" alt="Instagram">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/facebook-icon-sm.jpg" alt="Facebook">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/youtube-icon-sm.jpg" alt="Youtube">
					</div>
					<div class="search-location">
						<span>San Francisco, California</span>
					</div>
					<div class="result-count">
						<span>899976 Results</span>
					</div>
				</div>
				
				<div class="button icon-button batch-actions"> 
					<svg viewBox="0 0 30 30" class="checkbox ico-arrow-down">
						<use xlink:href="#ico-arrow-down"></use>
					</svg>
				</div>
			</footer>
		</div>
	</div> <!-- /.batch -->
	<div class="batch active" id="batch_14">
		<div class="batch-status">
			<svg viewBox="0 0 30 30" class="checkbox ico-check">
				<use xlink:href="#ico-check"></use>
			</svg>
			<svg viewBox="0 0 30 30" class="checkbox ico-close">
				<use xlink:href="#ico-close"></use>
			</svg>
		</div>
		<div class="batch-details">
			<a href="" class="search-string">
					Ham hock ground round beef spare ribs andouille picanha pork belly swine tri-tip. Turducken ground round beef ham hock kevin doner sausage venison flank bacon. Meatloaf tail beef, short ribs porchetta pork loin landjaeger alcatra jowl kielbasa salami. -RT
			</a>
			<footer class="batch-footer">
				<div class="footer-table">
					<div class="sources">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/twitter-icon-sm.jpg" alt="Twitter">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/instagram-icon-sm.jpg" alt="Instagram">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/facebook-icon-sm.jpg" alt="Facebook">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/youtube-icon-sm.jpg" alt="Youtube">
					</div>
					<div class="search-location">
						<span>San Francisco, California</span>
					</div>
					<div class="result-count">
						<span>899976 Results</span>
					</div>
				</div>
				
				<div class="button icon-button batch-actions"> 
					<svg viewBox="0 0 30 30" class="checkbox ico-arrow-down">
						<use xlink:href="#ico-arrow-down"></use>
					</svg>
				</div>
			</footer>
		</div>
	</div> <!-- /.batch -->
	<div class="batch active" id="batch_14">
		<div class="batch-status">
			<svg viewBox="0 0 30 30" class="checkbox ico-check">
				<use xlink:href="#ico-check"></use>
			</svg>
			<svg viewBox="0 0 30 30" class="checkbox ico-close">
				<use xlink:href="#ico-close"></use>
			</svg>
		</div>
		<div class="batch-details">
			<a href="" class="search-string">
					hand lettering -RT
			</a>
			<footer class="batch-footer">
				<div class="footer-table">
					<div class="sources">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/twitter-icon-sm.jpg" alt="Twitter">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/instagram-icon-sm.jpg" alt="Instagram">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/facebook-icon-sm.jpg" alt="Facebook">
						<img src="https://dl.dropboxusercontent.com/u/128045/social-icons-to-link/youtube-icon-sm.jpg" alt="Youtube">
					</div>
					<div class="search-location">
						<span>San Francisco, California</span>
					</div>
					<div class="result-count">
						<span>899976 Results</span>
					</div>
				</div>
				
				<div class="button icon-button batch-actions"> 
					<svg viewBox="0 0 30 30" class="checkbox ico-arrow-down">
						<use xlink:href="#ico-arrow-down"></use>
					</svg>
				</div>
			</footer>
		</div>
	</div> <!-- /.batch -->
</div>
              
            
!

CSS

              
                body {
	width: 100%;
	height: 100%;
	display: block;
	padding: 30px;
}

.batches-in-profile-vault-batches {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}

.batch {
	position: relative;
	display: table;
	width: 100%;
	height: auto;
	background: $off-white;
	border: 1px solid $light-grey;
	margin-bottom: 10px;
	box-shadow: 1px 1px 2px rgba($off-black, .2);
	border-radius: 4px;
	
	.batch-status,
	.batch-details {
		position: relative;
		display: table-cell;
		height: 100%;
	}
	
	.batch-status {
		width: 70px;
		min-width: 70px;
		vertical-align: middle;
		text-align: center;
		border-top-left-radius: 4px;
		border-bottom-left-radius: 4px;
		
		svg {
			width: 50px;
			height: 50px;
			display: none;
		}
	}
	
	&.active {
		.batch-status {
			background: $green;
			
			svg.ico-check {
				display: inline-block;
			}
		}
	}
	
	&.inactive {
		.batch-status {
			background: $red;
			
			svg.ico-close {
				display: inline-block;
				fill: $white;
			}
		}
	}
	
	.batch-footer {
		position: relative;
		width: 100%;
		height: 30px;
		border-top: 1px solid $light-grey;
		
		.footer-table {
			display: table;
			table-layout: fixed;
			height: 30px;
			position: absolute;
			top: 0;
			right: 40px;
			bottom: 0;
			left: 0;
			vertical-align: middle;
			width: calc(100% - 40px);
		}
		
		.sources {
			display: table-cell;
			vertical-align: middle;
			padding-left: 5px;
			padding-top: 3px;
			white-space: nowrap;
			width: 110px;
			
			img {
				width: 18px;
				height: 18px;
				border-radius: 20px;
				margin-right: 5px;
			}
		}
		
		.search-location,
		.result-count {
			display: table-cell;
			@include uppercase();
			@include font-size(1.4);
			color: $dark-grey;
			vertical-align: middle;
			
			span {
				display: block;
				width: 100%;
				height: auto;
				@include truncate();
			}
		}
		
		.search-location { 
			text-align: left; 
		}
		
		.result-count { 
			text-align: right; 
			width: 130px;
		}
		
		.batch-actions {
			float: right;
			margin: 0;
		}
	}
	
	.search-string {
		display: block;
		width: 100%;
		height: auto;
		min-height: 30px;
		background: $white;
		padding: 10px 15px;
		@include font-size(1.8);
		border-top-right-radius: 4px;
		text-decoration: none;
		color: $dark-grey;
		
		&:hover {
			background: tint($blue, 20);
			color: $off-black;
		}
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console