Add 'advanced use' and 'style' docs

Fix #450
This commit is contained in:
Nicolas Gallagher
2017-05-06 16:01:14 +01:00
parent 7aef8f04c1
commit 124de7562d
7 changed files with 294 additions and 92 deletions
+5 -4
View File
@@ -1,9 +1,10 @@
# StyleSheet
The `StyleSheet` abstraction converts predefined styles to (vendor-prefixed)
CSS without requiring a compile-time step. Some styles cannot be resolved
outside of the render loop and are applied as inline styles. Read more about
[how to style your application](../guides/style.md).
CSS without requiring a compile-time step. Styles that cannot be resolved
outside of the render loop (e.g., dynamic positioning) are usually applied as
inline styles. Read more about [how to style your
application](../guides/style.md).
## Methods
@@ -15,7 +16,7 @@ Each key of the object passed to `create` must define a style object.
Flattens an array of styles into a single style object.
**renderToString**: function
(web) **renderToString**: function
Returns a string of the stylesheet for use in server-side rendering.