diff options
| author | oco-odoo <oco@odoo.com> | 2018-06-08 15:20:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-08 15:20:49 +0200 |
| commit | d4cd8be48f83a7775c667bc6c968a4b9e14679be (patch) | |
| tree | 9185c59636525a98292e31112ca00152c0db4fb3 /addons/web/static/src/scss/webclient.scss | |
| parent | a8aa0bcbbe48babe877e08d81e5bdcc9e5779fdc (diff) | |
[IMP] web: add decoration support for all field widgets (#25160)
It is sometimes useful to be able to customize slightly the color of a
field depending on some conditions on the current record.
For example, imagine that we want to show a VAT number field in green/red, if
it was validated or not. To do that, we can add a field with an
onchange, and simply add decoration-danger and decoration-success
attributes to the field.
Diffstat (limited to 'addons/web/static/src/scss/webclient.scss')
| -rw-r--r-- | addons/web/static/src/scss/webclient.scss | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/webclient.scss b/addons/web/static/src/scss/webclient.scss index 3c791886140..8f4dadb22df 100644 --- a/addons/web/static/src/scss/webclient.scss +++ b/addons/web/static/src/scss/webclient.scss @@ -137,6 +137,17 @@ div.o_boolean_toggle { align-items: center; } +// Decorations +.text-bf { + font-weight: bold; +} +.text-it { + font-style: italic; +} +.text-muted { + color: lighten($text-muted, 10%); +} + //== Badges .badge { margin: 1px 2px 1px 0; |
