Permalink
Browse files

Merge pull request #36 from vesan/patch-1

Adds :focus to supported pseudoclasses in styleguide script
  • Loading branch information...
2 parents ba08eb6 + d8cf765 commit 4c80c18c74d5318f4fd8a3e9071b57c608fc0b38 @kneath committed Apr 13, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 example/public/javascripts/kss.js
  2. +3 −3 lib/kss.coffee
@@ -3,7 +3,7 @@
KssStateGenerator = (function() {
function KssStateGenerator() {
var idx, idxs, pseudos, replaceRule, rule, stylesheet, _i, _len, _len2, _ref, _ref2;
- pseudos = /(\:hover|\:disabled|\:active|\:visited)/g;
+ pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus)/g;
try {
_ref = document.styleSheets;
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
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.
+# Supported pseudo classes: hover, disabled, active, visited, focus.
#
# Example:
#
# a:hover{ color:blue; }
# => a.pseudo-class-hover{ color:blue; }
class KssStateGenerator
constructor: ->
- pseudos = /(\:hover|\:disabled|\:active|\:visited)/g
+ pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus)/g
try
for stylesheet in document.styleSheets
@@ -36,4 +36,4 @@ class KssStateGenerator
headEl.appendChild(styleEl)
-new KssStateGenerator
+new KssStateGenerator

0 comments on commit 4c80c18

Please sign in to comment.