doc: scoped css

This commit is contained in:
jean-emmanuel 2017-02-22 10:07:52 +01:00
parent 78c5661ae7
commit 216d26e74b

View file

@ -65,7 +65,10 @@ A widget object is a javascript object. All widgets share a set of generic prope
#### `css`
- type: `string`
- default: *empty*
- usage: the `css` property can be used to override inherited [theming](theming.md) variables. Also, some widgets expose specific theming variables that allow a finer customization. Standard `css` properties can be applied to the widget's root element through this property.
- usage: the `css` property can be used to override inherited [theming](theming.md) variables. Also, some widgets expose specific theming variables that allow a finer customization. Standard `css` properties can be applied to the widget's root element through this property, `css` selectors can also be used apply custom styles to the widget's children.
- examples:
- `border-radius:5rem; .label {font-size: 20rem}` will round the widget's corners and increase its label's font-size and all its children's labels'
- `border-radius:5rem; > .label {font-size: 20rem}` will round the widget's corners and increase its label's font-size (the `>` selector targets only the direct children of the widget element)
----
### OSC