diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-09-28 14:28:26 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-09-28 16:54:27 +0000 |
| commit | 225ec35e50b5d71fa795f64cb9a9a6c2ceda7631 (patch) | |
| tree | ea65e55a63a0d7126c92ade70a17bf2b8a719a7f | |
| parent | 94068037fbddc816926af7c68c19780926832722 (diff) | |
[FIX] web_editor: restore background and foreground color previews
closes odoo/odoo#58727
X-original-commit: ee8cd9952736d9ea57609e218e3479963785a78d
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
| -rw-r--r-- | addons/web_editor/static/src/scss/wysiwyg.scss | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 60e7799f455..335bce16d8b 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -78,11 +78,23 @@ $o-we-zindex: $o-we-overlay-zindex + 1 !default; background: $o-we-sidebar-content-field-clickable-bg; color: inherit; font-size: $o-we-font-size !important; + border-bottom-color: transparent; // See caret design below &.active, &:focus, &:active, &:focus:active { @extend %we-active-button; } + + // This element should have been removed but still exists in 13.0 by + // mistake. This takes advantage of it to restore the color preview + // feature which disappeared and cannot be fixed as in 12.0. + // TODO fix the right way in 14.0. + > .caret { + display: block; + @include o-position-absolute(auto, 0, 0, 0); + border-bottom: 3px solid transparent; + border-bottom-color: inherit; + } } .btn-group.show { > .btn { |
