Skip to content

Instantly share code, notes, and snippets.

@mischah
Created January 30, 2015 07:49
Show Gist options
  • Select an option

  • Save mischah/6de338dbc0c49da75cf6 to your computer and use it in GitHub Desktop.

Select an option

Save mischah/6de338dbc0c49da75cf6 to your computer and use it in GitHub Desktop.

Revisions

  1. mischah created this gist Jan 30, 2015.
    21 changes: 21 additions & 0 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    /**
    * Simple folded corners
    */

    div {
    background: yellowgreen; /* fallback */


    padding: 1em;
    width: 12em;
    margin: 1em;
    font: 150%/1.6 Baskerville, Palatino, serif;
    }

    body {
    /* Showcase that the effect supports any backdrop */
    background: repeating-linear-gradient(-45deg, #ddd 0, #ddd 25%, white 0, white 50%) 0 / 6px 6px;
    box-sizing: border-box;
    padding: 1em;
    height: 100vh;
    }
    2 changes: 2 additions & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <div>Look at my cool folded corner.
    It only took two lines of CSS, degrades gracefully and works everywhere!</div>
    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"}