Skip to content

Instantly share code, notes, and snippets.

@selva2code
Forked from csssecrets/dabblet.css
Created January 10, 2016 19:59
Show Gist options
  • Save selva2code/335cb3f9bb3741d5fc1f to your computer and use it in GitHub Desktop.
Save selva2code/335cb3f9bb3741d5fc1f to your computer and use it in GitHub Desktop.

Revisions

  1. selva2code revised this gist Jan 10, 2016. No changes.
  2. @csssecrets csssecrets revised this gist Dec 22, 2014. 1 changed file with 9 additions and 3 deletions.
    12 changes: 9 additions & 3 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,11 @@
    /**
    * Sticky footer
    * Sticky footer with fixed height
    */

    main {
    min-height: calc(100vh - 5em - 7em);
    }

    /* Toggle checkbox to alternate between short/long content */
    #contents:checked ~ p { display: none }

    @@ -11,15 +15,17 @@ body {
    font: 100%/1.5 Palatino Linotype, Palatino, serif;
    }

    h1 { margin-bottom: 0; }
    h1 { margin: .5em 0 0; }

    header { text-align: center; }
    header { text-align: center; height: 3em; }

    main, footer {
    display: block;
    padding: .5em calc(50% - 400px);
    }

    footer {
    background: linear-gradient(#222, #444);
    color: white;
    height: 6em;
    }
  3. @csssecrets csssecrets revised this gist Dec 22, 2014. 2 changed files with 3 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -2,8 +2,8 @@
    * Sticky footer
    */

    /* Toggle this to alternate between short/long content: */
    main > p:nth-of-type(n+2) { display: none }
    /* Toggle checkbox to alternate between short/long content */
    #contents:checked ~ p { display: none }

    /* Basic styling */
    body {
    1 change: 1 addition & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    <h1>Site name</h1>
    </header>
    <main>
    <input type="checkbox" id="contents" /><label for="contents">Toggle contents</label>
    <p>Bacon ipsum dolor sit amet turkey veniam shankle, culpa short ribs kevin t-bone occaecat. Et laborum venison nostrud, ut veniam sint kielbasa ullamco pancetta. Qui drumstick tail, bacon leberkas shoulder capicola laborum. Minim ipsum bacon, mollit laboris t-bone pariatur. Ham hock reprehenderit sint beef, sausage pig eiusmod t-bone shankle strip steak.</p>
    <p>Cow enim excepteur, boudin dolore lorem magna fugiat consequat voluptate. Picanha fugiat chicken, cupim aliquip magna filet mignon prosciutto ut nostrud. Kielbasa rump frankfurter sunt corned beef. Andouille in cillum deserunt, rump et picanha landjaeger tongue anim.</p>
    <p>Ad meatball ipsum ground round shank. Quis ipsum meatball exercitation. Laborum swine spare ribs, sunt ball tip magna t-bone venison. Velit doner voluptate non occaecat do ribeye kevin strip steak et. Esse biltong shank ribeye dolor pariatur aute deserunt non est eiusmod pork belly pancetta pork chop. Pork chop id consectetur rump, meatball short loin brisket tail andouille deserunt alcatra irure prosciutto do.</p>
  4. @csssecrets csssecrets revised this gist Dec 22, 2014. 2 changed files with 10 additions and 3 deletions.
    11 changes: 9 additions & 2 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,22 @@
    /**
    * Sticky footer
    */

    /* Toggle this to alternate between short/long content: */
    main > p:nth-of-type(n+2) { display: none }

    body { margin: 0; }
    /* Basic styling */
    body {
    margin: 0;
    font: 100%/1.5 Palatino Linotype, Palatino, serif;
    }

    h1 { margin-bottom: 0; }

    header { text-align: center; }

    main, footer {
    padding: 1em calc(50% - 400px);
    padding: .5em calc(50% - 400px);
    }

    footer {
    2 changes: 1 addition & 1 deletion dabblet.html
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    <h1>Site name</h1>
    </header>
    <main>
    <p>Bacon ipsum dolor amet turkey veniam shankle, culpa short ribs kevin t-bone occaecat. Et laborum venison nostrud, ut veniam sint kielbasa ullamco pancetta. Qui drumstick tail, bacon leberkas shoulder capicola laborum. Minim ipsum bacon, mollit laboris t-bone pariatur. Ham hock reprehenderit sint beef, sausage pig eiusmod t-bone shankle strip steak.</p>
    <p>Bacon ipsum dolor sit amet turkey veniam shankle, culpa short ribs kevin t-bone occaecat. Et laborum venison nostrud, ut veniam sint kielbasa ullamco pancetta. Qui drumstick tail, bacon leberkas shoulder capicola laborum. Minim ipsum bacon, mollit laboris t-bone pariatur. Ham hock reprehenderit sint beef, sausage pig eiusmod t-bone shankle strip steak.</p>
    <p>Cow enim excepteur, boudin dolore lorem magna fugiat consequat voluptate. Picanha fugiat chicken, cupim aliquip magna filet mignon prosciutto ut nostrud. Kielbasa rump frankfurter sunt corned beef. Andouille in cillum deserunt, rump et picanha landjaeger tongue anim.</p>
    <p>Ad meatball ipsum ground round shank. Quis ipsum meatball exercitation. Laborum swine spare ribs, sunt ball tip magna t-bone venison. Velit doner voluptate non occaecat do ribeye kevin strip steak et. Esse biltong shank ribeye dolor pariatur aute deserunt non est eiusmod pork belly pancetta pork chop. Pork chop id consectetur rump, meatball short loin brisket tail andouille deserunt alcatra irure prosciutto do.</p>
    <p>Dolore reprehenderit ex, meatball doner commodo consectetur ea ribeye. Ad aliqua kevin, chuck excepteur minim et cow esse ham hock landjaeger. Alcatra bresaola dolore tempor do, excepteur in velit flank officia dolore meatloaf corned beef picanha. Eu pancetta brisket eiusmod ipsum aute sausage, culpa rump shoulder excepteur nostrud venison sed pork loin. Tempor proident do magna ground round. Ut venison frankfurter et veniam dolore. Pig pork belly beef ribs kevin, doner exercitation magna esse shankle.</p>
  5. @csssecrets csssecrets created this gist Dec 22, 2014.
    18 changes: 18 additions & 0 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    /**
    * Sticky footer
    */

    body { margin: 0; }

    h1 { margin-bottom: 0; }

    header { text-align: center; }

    main, footer {
    padding: 1em calc(50% - 400px);
    }

    footer {
    background: linear-gradient(#222, #444);
    color: white;
    }
    14 changes: 14 additions & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    <header>
    <h1>Site name</h1>
    </header>
    <main>
    <p>Bacon ipsum dolor amet turkey veniam shankle, culpa short ribs kevin t-bone occaecat. Et laborum venison nostrud, ut veniam sint kielbasa ullamco pancetta. Qui drumstick tail, bacon leberkas shoulder capicola laborum. Minim ipsum bacon, mollit laboris t-bone pariatur. Ham hock reprehenderit sint beef, sausage pig eiusmod t-bone shankle strip steak.</p>
    <p>Cow enim excepteur, boudin dolore lorem magna fugiat consequat voluptate. Picanha fugiat chicken, cupim aliquip magna filet mignon prosciutto ut nostrud. Kielbasa rump frankfurter sunt corned beef. Andouille in cillum deserunt, rump et picanha landjaeger tongue anim.</p>
    <p>Ad meatball ipsum ground round shank. Quis ipsum meatball exercitation. Laborum swine spare ribs, sunt ball tip magna t-bone venison. Velit doner voluptate non occaecat do ribeye kevin strip steak et. Esse biltong shank ribeye dolor pariatur aute deserunt non est eiusmod pork belly pancetta pork chop. Pork chop id consectetur rump, meatball short loin brisket tail andouille deserunt alcatra irure prosciutto do.</p>
    <p>Dolore reprehenderit ex, meatball doner commodo consectetur ea ribeye. Ad aliqua kevin, chuck excepteur minim et cow esse ham hock landjaeger. Alcatra bresaola dolore tempor do, excepteur in velit flank officia dolore meatloaf corned beef picanha. Eu pancetta brisket eiusmod ipsum aute sausage, culpa rump shoulder excepteur nostrud venison sed pork loin. Tempor proident do magna ground round. Ut venison frankfurter et veniam dolore. Pig pork belly beef ribs kevin, doner exercitation magna esse shankle.</p>
    <p>Flank anim chuck boudin id consectetur bresaola ham pork loin cupim andouille frankfurter. Proident do ball tip nostrud nulla sed, frankfurter ut commodo corned beef ut. Ex aute in, pig deserunt beef ribs turducken pastrami irure ball tip pork belly pork chop sausage id. Chicken sunt nisi tempor sed. In eiusmod non fatback tempor tenderloin pastrami adipisicing cow lorem ut tail jerky cupidatat venison. Jowl consequat commodo pork loin ipsum pork belly prosciutto aute beef. Ball tip shoulder aliqua, fugiat landjaeger kevin pork chop beef ribs leberkas hamburger cillum turkey ut doner culpa.</p>
    </main>
    <footer>
    <p>© 2015 No rights reserved.</p>
    <p>Made with ♥ by an anonymous pastafarian.</p>
    </footer>
    1 change: 1 addition & 0 deletions dabblet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    // alert('Hello world!');
    1 change: 1 addition & 0 deletions settings.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}