Skip to content

Instantly share code, notes, and snippets.

@tdhsmith
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save tdhsmith/f04510a8aaa722220b88 to your computer and use it in GitHub Desktop.

Select an option

Save tdhsmith/f04510a8aaa722220b88 to your computer and use it in GitHub Desktop.

Revisions

  1. tdhsmith revised this gist Aug 10, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dabblet.css
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,6 @@ p.third:nth-of-type(3) {
    min-height: 100%;
    }

    p .not-last:nth-of-type(2) {
    p .not-last:nth-of-type(1) {
    font-weight: bold;
    }
  2. tdhsmith created this gist Aug 10, 2015.
    13 changes: 13 additions & 0 deletions dabblet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    /**
    * Nth-of-type and compound selectors demo
    */

    p.third:nth-of-type(3) {
    background: #f06;
    background: linear-gradient(45deg, #f06, yellow);
    min-height: 100%;
    }

    p .not-last:nth-of-type(2) {
    font-weight: bold;
    }
    4 changes: 4 additions & 0 deletions dabblet.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    <!-- content to be placed inside <body>…</body> -->
    <p class="first not-last">I'm the first.</p>
    <p class="second not-last">I'm the second.</p>
    <p class="third">I'm the third.</p>
    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":"all"}