Skip to content

Commit f7f5240

Browse files
committed
Usage instructions
1 parent 740ddbc commit f7f5240

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

Diff for: README

-6
This file was deleted.

Diff for: README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
![Logo](css-ratiocinator/raw/master/illustration/githubheader.png "Logo")
2+
3+
The CSS Ratiocinator automatically refactors your CSS and generates a
4+
new stylesheet for your site. It works by examining your site's live
5+
DOM in the browser and reverse engineering a new, more elegant, CSS
6+
definition that captures styles down to the pixel.
7+
8+
It addresses the problem of old CSS whose styles accumulate and
9+
contradict each other. After a certain point all CSS seems to grow only
10+
by internal antagonism. The ratiocinator wipes the slate clean and
11+
provides a harmonious new beginning.
12+
13+
## Usage
14+
15+
Runs best in [Google Chrome](//www.google.com/chrome).
16+
17+
1. Visit your page in Chrome.
18+
1. Open the developer tools pane (by pressing ⌥⌘I)
19+
1. Select the Javascript Console<br/>![JS Console](css-ratiocinator/raw/master/illustration/console.png "JS Console")
20+
1. Paste the contents of `css.js` into the console and press enter.
21+
1. If an error occurs, repeat the previous step. ([Issue #18](https://github.com/begriffs/css-ratiocinator/issues/18))
22+
1. The new CSS will appear in the console.
23+
1. (optionally) Feed output through [sass-convert](http://blog.derekperez.com/post/816063805/move-you-existing-stylebase-over-to-sass-or-scss)
24+
25+
## Mechanism
26+

Diff for: illustration/console.png

23.3 KB
Loading

Diff for: illustration/githubheader.png

8.12 KB
Loading

0 commit comments

Comments
 (0)