Permalink
Browse files

Adds :target to list of supported pseudo classes

Adds :target to the pseudos variable in the coffee scripts and
compiles the changes to the kss.js file.

Adding :target allows us to show these modifiers in the generated
style guides. Without support, targetted styles cannot be displayed
without user interaction.
  • Loading branch information...
1 parent 45ee9a7 commit 1cf23ea57e0973a39356aeeae3a72bcac0ceda71 @janiv committed Jan 3, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 example/public/javascripts/kss.js
  2. +2 −2 lib/kss.coffee

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

0 comments on commit 1cf23ea

Please sign in to comment.