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

HTML

              
                .calendar
	h1
		span January
		| 2016
	.container
		.block.weekday Sun
		.block.weekday Mon
		.block.weekday Tue
		.block.weekday Wed
		.block.weekday Thu
		.block.weekday Fri
		.block.weekday Sat
		.block.day
		.block.day
		.block.day
		.block.day
		.block.day
		.block.day(value="1")
		.block.day(value="2" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore labore non velit blanditiis ducimus! Ipsam, dolor laudantium, enim ad, natus commodi illum nam non qui fugit porro sapiente molestias a!
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi aut in sed quidem animi deleniti, eligendi vero molestias libero rem nemo assumenda necessitatibus ex sequi cupiditate blanditiis alias repellendus, laborum?
		.block.day(value="3")
		.block.day(value="4")
		.block.day(value="5" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cum sunt minima voluptate delectus beatae cumque esse, doloribus, illum reiciendis eius animi a consequatur atque corporis voluptatum laudantium magnam ratione placeat?
		.block.day(value="6")
		.block.day(value="7" title="Codepen.io")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum hic, mollitia ad ducimus doloremque iste excepturi suscipit sunt, autem aut tempore veniam! Tenetur atque ullam, repellat asperiores libero vero, delectus.
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam corporis aliquid, dolores eum sit! Dolores natus eos cupiditate iure debitis nemo, non quibusdam sapiente, repellendus minus dolorum. Voluptatum, quidem. Consectetur.
		.block.day(value="8" title="Codepen.io")
			input(type="checkbox" name="day")
			.contents
		.block.day(value="9")
		.block.day(value="10")
		.block.day(value="11")
		.block.day(value="12" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolorum quibusdam quod optio nostrum ad vero eum, consectetur repellat odit libero animi delectus maxime adipisci saepe autem blanditiis vitae voluptatem doloribus?
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iste, ex quisquam ab officia libero eum aut ullam dolores pariatur. Magnam reprehenderit dolor doloremque, placeat. Delectus itaque placeat impedit eaque dignissimos.
		.block.day(value="13")
		.block.day(value="14")
		.block.day(value="15")
		.block.day(value="16")
		.block.day(value="17" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloribus tempore accusamus sint eius vitae minima, ipsa error molestiae accusantium sapiente consectetur quidem, quam voluptatibus ex enim? Voluptatum, quis. Quis, laborum.
		.block.day(value="18")
		.block.day(value="19")
		.block.day(value="20")
		.block.day(value="21")
		.block.day(value="22" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. In odio itaque quaerat officia consectetur illum neque, esse placeat corrupti, ipsam asperiores minus commodi maiores amet reiciendis aliquam ratione autem rerum.
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laborum sint cum dolor necessitatibus eaque id ipsum iste perferendis pariatur beatae! Similique nihil voluptatem error cupiditate ullam obcaecati! Facilis, pariatur, corporis?
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatem, unde explicabo. Hic sapiente vel quaerat quo qui quas numquam provident eius quae voluptate rerum omnis architecto beatae, illum quasi! Dolorem.
		.block.day(value="23")
		.block.day(value="24" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aliquam culpa illo cum delectus, dignissimos explicabo accusantium, sunt sit ratione in voluptas ducimus harum possimus facere. Magnam, fugiat ab expedita fuga.
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Incidunt fugit vero quae, nulla neque aperiam quasi maxime ut nesciunt dolor mollitia culpa facilis, labore pariatur asperiores repellat obcaecati atque sint!
		.block.day(value="25" title="Codepen")
			input(type="checkbox" name="day")
			.contents
				p  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Maiores repellat magnam quam! Praesentium dolor in modi consequatur possimus facilis quaerat mollitia quos, quam. Alias expedita inventore sunt ut iusto delectus!
		.block.day(value="26")
		.block.day(value="27")
		.block.day(value="28" title="ari")
			input(type="checkbox" name="day")
			.contents
				p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequuntur, reiciendis molestias! Iusto minima numquam totam consequuntur fugiat veritatis excepturi quam soluta praesentium dolore, blanditiis commodi, cum, alias velit, eius impedit.
		.block.day(value="29")
		.block.day(value="30")
		.block.day(value="31")
		.block.day
		.block.day
		.block.day
		.block.day
		.block.day
		.block.day
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto);
$base-color: #edecb9;

*, *:before, *:after { box-sizing: border-box;}

body,html { height: 100%;}

body {
	font-family: 'Roboto', sans-serif;
	line-height: 1.5;
	background-image: linear-gradient(180deg,#bdc 10%, #ddd 100%);
}

.calendar {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 90%;
	height: 90%;
	padding: 5%;
	background-color: #fff;
	box-shadow: 0 1em 1em rgba(0,0,0,0.55);
	transform: translate(-50%,-50%);
	display: flex;
	flex-flow: column nowrap;
}

h1 {
	color: #333;
	font-size: 1rem;
	text-transform: uppercase;
	margin-bottom: 20px;
	display: flex;
	flex-basis: 20%;
	flex-flow: column nowrap;
	align-items: center;
	justify-content: flex-end;
	
	span {
		font-size: 1.45rem;
		letter-spacing: 0.5rem;
		font-weight: bold;
	}
}

.container {
	color: #333;
	border-bottom: 1px solid #333;
	border-right: 1px solid #333;
	display: flex;
	flex: 1;
	flex-flow: row wrap;
}

.block {
	position: relative;
	text-shadow: 0px 1px 1px rgba(0,0,0,0.1);
	font-size: 0.74rem;
	border-top: 1px solid #333;
	border-left: 1px solid #333;
	display: flex;
	flex-basis: 100% * 1 / 7;

	&.weekday {
		background-color: darken($base-color,10%);
		justify-content: center;
		align-items: center;
	}
	
	&.day {
		padding: 3px 6px;
		justify-content: flex-end;

		&:before {
			content: attr(value);
		}
		
		&:after {
			position: absolute;
			width: 16px;
			height: 16px;
			line-height: 16px;
			bottom: 3px;
			left: 3px;
			background-color: #e93;
			border-radius: 50%;
			text-align: center;
		}
		
		&:not(:empty) {
			counter-reset: i;
			background-color: $base-color;
			
			&:after {
				content: counter(i);
			}
		}
		
		&:hover {
			&:not(:empty) {
				background-color: #e93;
				
				&:after {
					background-color: #fff;
				}
			}
		}
	}
	
	.contents {
		position: fixed;
		top: 0%;
		left: 0%;
		width: 100%;
		height: 100%;
		transition: background-color 0.1s ease;
		visibility: hidden;
		
		p {
			position: relative;
			background-color: #fff;
			max-width: 90%;
			padding: 16px;
			margin: 16px;
			z-index: 50;
			box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
			transform: translateX(-100%);
			transition: transform 0.3s;
			counter-increment: i;
			
			&:nth-child(even){
				transition-delay: 0.05s;
			}
		}
	}
}

input[type="checkbox"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	z-index: 10;
	cursor: pointer;
	
	&:hover {
		background-color: rgba(white,0.1);
	}
	
	&:checked {
		position: fixed;
		z-index: 30;
		
		+ .contents {
			visibility: visible;
			background-color: rgba(0,0,0,0.75);
			z-index: 25;
			
			p {
				transform: translateX(0%);
			}
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console