diff options
| author | stefanorigano (SRI) <sri@odoo.com> | 2020-05-28 10:04:40 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-06-02 09:42:18 +0000 |
| commit | 6aa93a9c06b2599b5d1d9f4aedab185afb3234ee (patch) | |
| tree | 58a77707a9e660003b63294608ee8302a24fab5c /addons/web_editor/static/src/scss/web_editor.variables.scss | |
| parent | 0281c951f2808b77599210fe76d4b980b67a85eb (diff) | |
[FIX] web: set the right text-muted from rgba value for o-bg-color mixin
Correctly generate a text-muted color starting from an rgba value.
The 'scale-color' function will take in account the source color's
alpha, decreasing its value.
e.g.
```
$color: rgba(#fff, 0.7);
$muted: rgba($-yiq-color, 0.7);
-> rgba(#fff, 0.7) (same as source value)
$muted: scale-color($-yiq-color, $alpha: -30%);
-> rgba(#fff, 0.42) (correct)
```
Part of https://github.com/odoo/odoo/pull/45856
task-2197038
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
0 files changed, 0 insertions, 0 deletions
