doc: scoped css
This commit is contained in:
parent
78c5661ae7
commit
216d26e74b
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue