Skip to content

Commit

Permalink
version 1.2.0 - new debbuging classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kocz committed Jun 26, 2012
1 parent ad3d063 commit 9d0e41b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
10 changes: 8 additions & 2 deletions 3L-maxi.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Version: 1.1.1 (2012.04.05)
* Version: 1.2.0 (2012.06.26)
*
*/

Expand Down Expand Up @@ -117,10 +117,16 @@
* nofollow links might be useful in some situations. See here:
* -> http://en.wikipedia.org/wiki/Nofollow#Control_internal_PageRank_flow)
*
* Why div:empty, span:empty, li:empty, p:empty, td:empty, th:empty?
* It'll just check if you have some redundancy (empty elements) in you code.
*
*/

.seo-helper () {
img:not([alt]), img[alt=""], img[alt^=" "], a[href=""], a[href^=" "], a[rel*="nofollow"] {
img:not([alt]), img[alt=""], img[alt^=" "],
a[href=""], a[href^=" "], a[href="#"], a[rel*="nofollow"],
div:empty, span:empty, li:empty, p:empty, td:empty, th:empty,
*[title=""], *[class=""], *[id=""] {
outline: 2px solid red !important;
outline-offset: 3px !important;
}
Expand Down
5 changes: 4 additions & 1 deletion 3L-mini.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.seo-helper () {
img:not([alt]), img[alt=""], img[alt^=" "], a[href=""], a[href^=" "], a[rel*="nofollow"] {
img:not([alt]), img[alt=""], img[alt^=" "],
a[href=""], a[href^=" "], a[href="#"], a[rel*="nofollow"],
div:empty, span:empty, li:empty, p:empty, td:empty, th:empty,
*[title=""], *[class=""], *[id=""] {
outline: 2px solid red !important;
outline-offset: 3px !important;
}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.2.0

-- new debbuging rules: a[href="#"], div:empty, span:empty, li:empty, p:empty, td:empty, th:empty, *[title=""], *[class=""] and *[id=""].

1.1.1

-- mixins updated to be compatible with new variadic arguments - https://gist.github.com/1933613,
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Watch 3L on Github: -> https://github.com/mateuszkocz/3l

Submit a bug issue: -> https://github.com/mateuszkocz/3l/issues?state=open

Download .zip: -> https://github.com/downloads/mateuszkocz/3l/3l-v1.0.1.zip
Download .zip: -> https://github.com/downloads/mateuszkocz/3l/3l-v1.2.0.zip

Licensed under the Apache License v2.0
http://www.apache.org/licenses/LICENSE-2.0

Version: 1.1.1 (2012.04.05)
Version: 1.2.0 (2012.06.26)
LESS version: 1.3.0 (included in 3l's .zip)

Get your own LESS.js: -> http://lesscss.org/
Expand Down

0 comments on commit 9d0e41b

Please sign in to comment.