Skip to content

Commit

Permalink
Add a notice to show error / warning / notice count
Browse files Browse the repository at this point in the history
  • Loading branch information
imbrianj committed Jan 22, 2014
1 parent 58a350b commit 1286864
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion debugCSS.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ marquee:after,
*[id*=\{]:after,
*[id*=\}]:after,
*[id*=\|]:after,
*[id*=\`]:after {
*[id*=\`]:after,
body:after {
border: 1px solid #000;
color: #000;
display: block;
Expand Down Expand Up @@ -677,6 +678,7 @@ img[src="#"],
*[id*=\\],
*[id*=\.],
*[id*=\#] {
counter-increment: error;
outline: 5px solid #FF8888;
}

Expand Down Expand Up @@ -814,6 +816,7 @@ u,
font,
blink,
marquee {
counter-increment: warning;
outline: 5px solid #FFFF88;
}

Expand Down Expand Up @@ -882,9 +885,24 @@ i,
*[id*=Yellow],
*[id*=White],
*[id*=Black] {
counter-increment: notice;
outline: 5px solid #88FF88;
}

body {
counter-reset: error warning notice;
}

body:after {
background: #FFF;
content: 'Errors: ' counter(error) ' | Warnings: ' counter(warning) ' | Notices: ' counter(notice);
font-size: 125%;
right: 1em;
outline: 5px solid #000;
position: fixed;
bottom: 1em;
}

/*********/
/* EXTRA */
/*********/
Expand Down

0 comments on commit 1286864

Please sign in to comment.