mirror of
https://github.com/zhigang1992/RubyMotion-PixateFreestyle.git
synced 2026-04-30 05:35:45 +08:00
update README
This commit is contained in:
16
README.md
16
README.md
@@ -38,17 +38,17 @@ end
|
||||
|
||||
## Usage
|
||||
|
||||
motion-pixate provides "style" method in REPL. You could change the stylesheet at the moment in REPL.
|
||||
```
|
||||
(main)> style "button { color : blue; }"
|
||||
(main)> style "button { background-color: red; corner-radius: 20pt; }"
|
||||
```
|
||||
|
||||
motion-pixate supports [Sass](http://sass-lang.com/) to generate the stylesheet. Create the `sass` directory and `default.scss` with the `rake pixate:init` command. Then, `rake pixate:sass` command generates the stylesheet from `default.scss`.
|
||||
Pixate gem supports [Sass](http://sass-lang.com/) to generate the stylesheet. Create the `sass` directory and `default.scss` with the `rake pixate:init` command. Then, `rake pixate:sass` command generates the stylesheet from `default.scss`.
|
||||
|
||||
You could specify the Sass output style through `style` environment variable. For example,
|
||||
```
|
||||
$ rake pixate:sass style=compressed
|
||||
```
|
||||
|
||||
You could use `nested`, `expanded`, `compact` and `compressed` as output style.
|
||||
You could use `nested`, `expanded`, `compact` and `compressed` as output style.
|
||||
|
||||
Pixate gem provides "style" method in REPL. You could change the stylesheet at the moment in REPL. For example,
|
||||
```
|
||||
(main)> style "button { color : blue; }"
|
||||
(main)> style "button { background-color: red; corner-radius: 20pt; }"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user