Permalink
Browse files

document opts.elementClass, bump

  • Loading branch information...
1 parent e490450 commit 2aca8ca6417d645d26cbd88da2f8cd5aacd669a8 @substack committed May 28, 2012
Showing with 11 additions and 5 deletions.
  1. +10 −4 README.markdown
  2. +1 −1 package.json
View
14 README.markdown
@@ -48,11 +48,17 @@ methods
var insertPrefix = require('css-prefix')
```
-insertPrefix(prefix, src)
--------------------------
+insertPrefix(opts, src)
+-----------------------
-Insert the string `prefix` before every class and id in the css source string
-`src`, returning the transformed source.
+Insert the string `opts.prefix` before every class and id in the css source
+string `src`, returning the transformed source.
+
+If `opts.elementClass` is given, add this class to all element identifiers. This
+is useful so that your `h1 { color: green; }` declarations don't leak into the
+environment.
+
+If `opts` is a string, treat `opts` as `opts.prefix`.
install
=======
View
2 package.json
@@ -1,6 +1,6 @@
{
"name" : "css-prefix",
- "version" : "0.0.0",
+ "version" : "0.0.1",
"description" : "add a prefix to all classes and identifiers in a stylesheet",
"main" : "index.js",
"directories" : {

0 comments on commit 2aca8ca

Please sign in to comment.