summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-02-14 15:08:44 +0000
committerqsm-odoo <qsm@odoo.com>2019-02-14 16:24:34 +0000
commit473c954aa847d199d3d444a92f5c8eadddf9de21 (patch)
treed2fe8ac655c5d06623e46ea7ae20979c6f277dab /addons/web_editor/static/src
parentbbc24e3f76752149dd9811b8a54431bbcd498b6f (diff)
[FIX] web_editor: fix switch design (website publish btn)
Using chrome, the design was not pixel perfect (letting a white bar appear around the switch). Replacing the linear gradient color by a simple color fixes that particular problem. The design is still not pixel perfect but those are meant to be replaced in master anyway. Part of https://github.com/odoo/odoo/pull/31117 task-1941156
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/scss/web_editor.ui.scss4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/scss/web_editor.ui.scss b/addons/web_editor/static/src/scss/web_editor.ui.scss
index 38f4a92112d..00903d183b6 100644
--- a/addons/web_editor/static/src/scss/web_editor.ui.scss
+++ b/addons/web_editor/static/src/scss/web_editor.ui.scss
@@ -1086,7 +1086,7 @@ body.editor_enable {
&:checked + span {
box-shadow: none;
- background-image: linear-gradient(0deg, $o-we-color-success, darken($o-we-color-success, 10%));
+ background: $o-we-color-success;
&:after {
margin-left: ($o-we-switch-size*1.8 - $o-we-switch-size) + 0.1;
@@ -1097,7 +1097,7 @@ body.editor_enable {
> input {
&:not(:checked) + span {
box-shadow: none;
- background-image: linear-gradient(0deg, lighten(theme-color('danger'), 5%), darken(theme-color('danger'), 5%));
+ background: $o-we-color-danger;
}
}
}