Adds :target to list of supported pseudo classes #52

Merged
merged 1 commit into from Jun 15, 2013

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,15 +1,15 @@
# This class scans your stylesheets for pseudo classes, then inserts a new CSS
# rule with the same properties, but named 'psuedo-class-{{name}}'.
#
-# Supported pseudo classes: hover, disabled, active, visited, focus.
+# Supported pseudo classes: hover, disabled, active, visited, focus, target.
#
# Example:
#
# a:hover{ color:blue; }
# => a.pseudo-class-hover{ color:blue; }
class KssStateGenerator
constructor: ->
- pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus)/g
+ pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus|\:target)/g
try
for stylesheet in document.styleSheets