JSFiddle - React, Tailwind, and code Playground

by genelocklin

HTML

<header role="banner">
    <hgroup>
        <h1>Adaptive Background Grid</h1>
        <h2><em>by</em> Gene Locklin</h2>        
        <div class="iframe-wrap">
        <a href="https://twitter.com/genelocklin" data-lang="en" data-width="16em" class="twitter-follow-button">Follow @genelocklin</a>
        </div>            
    </hgroup>
</header>

<section role="main">
    <article>

        <p>Watch the background. Resize browser window for effect&hellip;</p>
        
        <h1>Heading 1</h1>

<p>Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb.</p>

        <h2>Heading 2</h2>

<p>Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'?</p>

        <h3>Heading 3</h3>

<p>Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'?</p>

        <h4>Heading 4</h4>

<p>Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.</p>

   ...

CSS

@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700);

/*- awesome reset ----------*/

* { margin: 0; padding: 0; }

/*- type ----------*/

* {  
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
        -ms-hyphens: auto;
         -o-hyphens: auto;
            hyphens: auto;
}

html { 
    -webkit-text-size-adjust:none;
       -moz-text-size-adjust:none;
        -ms-text-size-adjust:none;
         -o-text-size-adjust:none;
            text-size-adjust:none;
    -webkit-tap-highlight-color: red;
    font-size: 93.8%;

}

body {
    font: 100%/1.5 'Droid Sans', sans-serif;
    color: #666;
}

p {
    font-size: 1em;
    line-height: 1.5em;
    margin: 0 0 1.5em 0;
}

h1, h2, h3, h4 { 
    font-weight: bold;  
    color: #111;    
}

h1 {
    font-size: 1.5em;
    line-height: 1em;
    margin-bottom: 1em;
}

h2 {
    font-size: 1.25em;
    line-height: 1.2em;
    margin-bottom: 1.2em;
}

h3, h4 {
    font-size: 1.125em;
    line-height: 1.333333em;
    margin-bottom: 1.333333em;
}

/*- > 600 and base styles ----------*/

/* this is the only part of the code that matters to the demo ----------*/

html { 
    overflow-y: auto; 
    background-color: #fff; 
    background-image: 
      -webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
      -webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
    background-image: 
      -moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
      -moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
    background-image: 
      -ms-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em),
      -ms-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em);
    background-image: 
      -o-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05)...

JavaScript

// by @genelocklin
// post: http://bit.ly/tX1twO

// unrelated js
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
  
(function() {
var s = document.createElement('SCRIPT');
var c = document.getElementsByTagName('script')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://platform.twitter.com/widgets.js';
c.parentNode.insertBefore(s, c);
})();