HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<body>
<div class="box">
<header>
<h1><a href="javascript:void(0);">Header</a></h1>
<p><a href="javascript:void(0);">Page One</a> <a href="javascript:void(0);">Page Two</a> <a href="javascript:void(0);">Page Three</a> <a href="javascript:void(0);">Page Four</a></p>
</header>
<!--Left Column--->
<section>
<article>
<h2>Long Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. </p>
<p>Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. <b>Mauris massa</b>. Maecenas mattis. Sed convallis tristique sem. <b>Vestibulum lacinia arcu eget nulla</b>. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. <i>Lorem ipsum dolor sit amet, consectetur adipiscing elit</i>. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. </p>
<p>Quisque volutpat condimentum velit. <b>Sed dignissim lacinia nunc</b>. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. <b>Maecenas mattis</b>. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. <i>Aenean quam</i>. Nunc feugiat mi a tellus consequat imperdiet. <b>Fusce ac turpis quis ligula lacinia aliquet</b>. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. </p>
</article>
<article>
<h2>Medium Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
</article>
<article>
<h2>Extra Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Praesent mauris. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. </p>
</article>
<article>
<h2>Short Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. </p>
</article>
</section>
<!--Right Column--->
<section>
<article class="reverse">
<h2>Short Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. </p>
</article>
<article class="reverse">
<h2>Extra Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Praesent mauris. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. </p>
</article>
<article class="reverse">
<h2>Long Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero. Sed dignissim lacinia nunc. </p>
<p>Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. <b>Mauris massa</b>. Maecenas mattis. Sed convallis tristique sem. <b>Vestibulum lacinia arcu eget nulla</b>. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. <i>Lorem ipsum dolor sit amet, consectetur adipiscing elit</i>. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. </p>
<p>Quisque volutpat condimentum velit. <b>Sed dignissim lacinia nunc</b>. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. <b>Maecenas mattis</b>. Nam nec ante. Sed lacinia, urna non tincidunt mattis, tortor neque adipiscing diam, a cursus ipsum ante quis turpis. Nulla facilisi. Ut fringilla. Suspendisse potenti. <i>Aenean quam</i>. Nunc feugiat mi a tellus consequat imperdiet. <b>Fusce ac turpis quis ligula lacinia aliquet</b>. Vestibulum sapien. Proin quam. Etiam ultrices. Suspendisse in justo eu magna luctus suscipit. </p>
</article>
<article class="reverse">
<h2>Medium Box</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. <b>Lorem ipsum dolor sit amet, consectetur adipiscing elit</b>. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
</article>
</section>
<footer>
<h3>Footer</h3>
<p><a href="javascript: history.back(-1)">Back</a> <a href="javascript: history.go(0)">Refresh</a>
<a href="javascript: history.forward(-2)">Forward</a></p>
<p>Copyright 2013</p>
</footer>
</div>
<div class="jump"><a href="#top"><div class="up"></div></a></div>
</body>
</html>
<style>
::-webkit-scrollbar{width: 2px;}
::-webkit-scrollbar-track{background-color:#fff;}
::-webkit-scrollbar-thumb{background-color:#fff;}
body{
font-family:"Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif;
color: #fff;
text-shadow: 1px 1px 5px #000;
text-align: center;
margin:0 auto;
padding:4px;
position: relative;
background-color: #000;
background-image: -webkit-gradient(linear, 0 100%, 100% 0,
color-stop(.25, rgba(255, 255, 255, .2)),
color-stop(.25, transparent),
color-stop(.5, transparent),
color-stop(.5, rgba(255, 255, 255, .2)),
color-stop(.75, rgba(255, 255, 255, .2)),
color-stop(.75, transparent), to(transparent));
background-image: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
background-image: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
background-image: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
background-image: linear-gradient(-45deg, rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent);
-webkit-background-size: 36px 36px;
-moz-background-size: 36px 36px;
background-size: 36px 36px;
background-position: fixed;}
a{text-decoration:none; color:#fff; outline: none; font-family:"Open Sans", "Trebuchet MS", Helvetica, Arial, sans-serif; text-shadow: 1px 1px 5px #000;}
.box {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: center;
-ms-flex-line-pack: center;
align-content: center;
-webkit-align-items: flex-start;
-ms-flex-align: flex-start;
align-items: flex-start;
padding:.5% 1%;}
section > article {
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;}
article {border:1px solid #fff;}
header{margin-bottom:4px; padding:.5%; border:1px solid #fff;}
footer{margin-top:0px; padding:.5%; border:1px solid #fff;}
p, h1, h2, h3 {margin: 2px;}
section{width:50%;} /* Equal Columns */
article{-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto; padding:.5%; margin:2px; margin-top:0px; margin-bottom:4px;}
.box > header{width:100%; height: auto; background: rgba(153, 0, 102, .5); margin: 0px 2px; margin-bottom:4px;}
.box > footer{width:100%; height: auto; background: rgba(153, 0, 102, .5); margin: 0px 2px;}
.box > header:hover, .box > footer:hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(153, 0, 102, .65);}
/*Left Post Colors*/
article:nth-of-type(4n+1) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(255, 0, 51, .5);}
article:nth-of-type(4n+2) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(170, 221, 51, .5);}
article:nth-of-type(4n+3) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(51, 204, 204, .5);}
article:nth-of-type(4n+4) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(204, 204, 0, .5);}
/* Left Post Hovers */
article:nth-of-type(4n+1):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(255, 0, 51, .65);}
article:nth-of-type(4n+2):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(170, 221, 51, .65);}
article:nth-of-type(4n+3):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(51, 204, 204, .65);}
article:nth-of-type(4n+4):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(204, 204, 0, .65);}
/*Right Post Colors*/
.reverse:nth-of-type(4n+1) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(51, 204, 204, .5);}
.reverse:nth-of-type(4n+2) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(204, 204, 0, .5);}
.reverse:nth-of-type(4n+3) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(255, 0, 51, .5);}
.reverse:nth-of-type(4n+4) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(170, 221, 51, .5);}
/*Right Post Hover*/
.reverse:nth-of-type(4n+1):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(51, 204, 204, .65);}
.reverse:nth-of-type(4n+2):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(204, 204, 0, .65);}
.reverse:nth-of-type(4n+3):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(255, 0, 51, .65);}
.reverse:nth-of-type(4n+4):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(170, 221, 51, .65);}
/* Jump to Top of Page Link */
div.jump {position:fixed; background: rgba(0,0,0, .25); border:1px solid rgba(255, 255, 255, .25); z-index:100; padding: 1px; bottom:0;
display:block;
height:12px;
width:12px;
-webkit-transition: background 0.75s ease-in-out;
-moz-transition: background 0.75s ease-in-out;
-o-transition: background 0.75s ease-in-out;
-ms-transition: background 0.75s ease-in-out;
transition: background 0.75s ease-in-out;
-webkit-transition: border 0.75s ease-in-out;
-moz-transition: border 0.75s ease-in-out;
-o-transition: border 0.75s ease-in-out;
-ms-transition: border 0.75s ease-in-out;
transition: border 0.75s ease-in-out;}
div.jump:hover {background: rgba(0,0,0, 1); border: 1px solid rgba(255, 255, 255, 1);}
.up {width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid rgba(255, 255, 255, .25); margin: 0 auto; padding-top:3px;
-webkit-transition: border 0.5s ease-in-out;
-moz-transition: border 0.5s ease-in-out;
-o-transition: border 0.5s ease-in-out;
-ms-transition: border 0.5s ease-in-out;
transition: border 0.5s ease-in-out;}
.up:hover{border-bottom: 6px solid rgba(255, 255, 255, 1);}
/* One Column Layout for Mobile */
@media only screen and (max-width: 480px) {
section{width:100%;}
/* Regulated Background Post Pattern */
.reverse:nth-of-type(4n+1) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(255, 0, 51, .5);}
.reverse:nth-of-type(4n+2) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(170, 221, 51, .5);}
.reverse:nth-of-type(4n+3) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(51, 204, 204, .5);}
.reverse:nth-of-type(4n+4) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(204, 204, 0, .5);}
/* Regulated Background Post Pattern Hover */
.reverse:nth-of-type(4n+1):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(255, 0, 51, .65);}
.reverse:nth-of-type(4n+2):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(170, 221, 51, .65);}
.reverse:nth-of-type(4n+3):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(51, 204, 204, .65);}
.reverse:nth-of-type(4n+4):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(204, 204, 0, .65);}}
/* Mobile Layout w/Screens larger than 480px */
@media all and (orientation: portrait) {
section{width:100%;}
/* Regulated Background Post Pattern */
.reverse:nth-of-type(4n+1) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(255, 0, 51, .5);}
.reverse:nth-of-type(4n+2) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(170, 221, 51, .5);}
.reverse:nth-of-type(4n+3) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(51, 204, 204, .5);}
.reverse:nth-of-type(4n+4) {
-webkit-order: 0; -ms-flex-order: 0; order: 0;
-webkit-flex: 0 1 auto;-ms-flex: 0 1 auto; flex: 0 1 auto;
-webkit-align-self: auto; -ms-flex-item-align: auto; align-self: auto;
background: rgba(204, 204, 0, .5);}
/* Regulated Background Post Pattern Hover */
.reverse:nth-of-type(4n+1):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(255, 0, 51, .65);}
.reverse:nth-of-type(4n+2):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(170, 221, 51, .65);}
.reverse:nth-of-type(4n+3):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(51, 204, 204, .65);}
.reverse:nth-of-type(4n+4):hover {
-webkit-transition: background 0.35s ease-in-out;
-moz-transition: background 0.35s ease-in-out;
-o-transition: background 0.35s ease-in-out;
-ms-transition: background 0.35s ease-in-out;
transition: background 0.35s ease-in-out;
background: rgba(204, 204, 0, .65);}}
</style>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
/* Note: The mostly transparent square w/a triangle in the bottom left corner is a "top of page" link that I styled to match the layout. I got bored so I made one just for that reason. */
/* Update (5/31/13): Lots of browsers bugs I need to fix. Works best in Chrome. */
/* This is my first (successful) attempt of using the Flexbox model. The post format is somewhat inspired by Pinterest's layout. I think it turned out rather well, despite the weird colors I chose. I will add a better styled navigation bar once I create one that I like. For now, this is good enough. */
Also see: Tab Triggers