From 216d26e74b5f4975178fb550b6996830c6d72ab8 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 22 Feb 2017 10:07:52 +0100 Subject: [PATCH] doc: scoped css --- resources/docs/user-guide/widgets-generics.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/docs/user-guide/widgets-generics.md b/resources/docs/user-guide/widgets-generics.md index 6a2a4839..80b9a4f1 100644 --- a/resources/docs/user-guide/widgets-generics.md +++ b/resources/docs/user-guide/widgets-generics.md @@ -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