summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-07-31 14:27:37 +0000
committerqsm-odoo <qsm@odoo.com>2020-08-07 15:15:52 +0000
commit5c0559203200720728a0eb180f5fc6499bef18d9 (patch)
treedaa02ea36a27f8e0a36689abbe527f6f7d8c63f3 /addons/web_editor/static/src
parent995b20fd6ac3eb121ed469df70492845c00ffb58 (diff)
[IMP] web_editor: remove check icon for default active buttons
Before this commit, the enabled state of we-button element was a "pressed-like" background + a check icon. This check icon was then explicitely removed for we-button extension such as checkboxes and button groups' buttons. Now, the enabled state does not contains that check icon by default and it is explicitely added for selects' buttons. Part of https://github.com/odoo/odoo/pull/53017 task-2210790
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg_snippets.scss25
1 files changed, 4 insertions, 21 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
index f0dc92373d3..b2743ef7474 100644
--- a/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg_snippets.scss
@@ -440,9 +440,6 @@ body.editor_enable.editor_has_snippets {
margin-bottom: 1px; // Not sure why but not really centered otherwise
}
}
- &.active {
- @include we-icon-button('\f00c', $align: left);
- }
&.fa > div {
display: none;
}
@@ -480,17 +477,9 @@ body.editor_enable.editor_has_snippets {
}
}
- &.active {
- padding-left: 0;
-
- we-checkbox {
- background-color: $o-we-sidebar-content-field-toggle-active-bg;
- justify-content: flex-end;
- }
-
- &::after {
- display: none;
- }
+ &.active we-checkbox {
+ background-color: $o-we-sidebar-content-field-toggle-active-bg;
+ justify-content: flex-end;
}
}
@@ -542,6 +531,7 @@ body.editor_enable.editor_has_snippets {
}
&.active {
+ @include we-icon-button('\f00c', $align: left);
color: $o-we-sidebar-content-field-dropdown-item-active-color;
}
}
@@ -557,13 +547,6 @@ body.editor_enable.editor_has_snippets {
we-button {
padding: 0 $o-we-sidebar-content-field-button-group-button-spacing;
- &.active {
- padding-left: $o-we-sidebar-content-field-button-group-button-spacing;
-
- &::after {
- display: none;
- }
- }
+ we-button {
border-left: none;
}