summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-09-28 15:26:49 +0000
committerqsm-odoo <qsm@odoo.com>2020-09-28 15:31:14 +0000
commit19be84634d394f47ceb882c5ddd24585f31b50ae (patch)
treefae2c9d3d51c18d2378c034b0bd8c05f7a6bf57c /addons/web_editor/static/src/scss
parentad20f2b97ef925a27cef4976462d3d0aa39d0433 (diff)
[FIX] web_editor: restore background and foreground color previews
Forward-port of [1] for the custom text tools for the website editor. Still has to be improved with the future text tools. [1]: https://github.com/odoo/odoo/pull/58690 Part of https://github.com/odoo/odoo/pull/58638 closes odoo/odoo#58638 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/scss')
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg_snippets.scss12
1 files changed, 10 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
index e73da07afbf..f432de9c9f6 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -96,8 +96,16 @@ body.editor_enable.editor_has_snippets {
.note-back-color-preview {
margin-left: $-text-tools-gap;
}
- .btn:after {
- display: none;
+ .btn {
+
+ > .caret {
+ display: block;
+ @include o-position-absolute(auto, 0, 0, 0);
+ border-bottom: 2px solid transparent;
+ }
+ &::after {
+ display: none;
+ }
}
}
&.note-style {