From e3ce70a64d7da6532f50c61762c23c26a7106153 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 29 Apr 2016 17:56:31 +0200 Subject: [FIX] web_editor: backend editor style The editor had been restyled thinking its DOM structure was the same in every context. The problem is that the message composer editor DOM structure is different. So, some important style like button icons were missing in this context. --- .../web_editor/static/src/less/web_editor.ui.less | 54 +++++++++++++--------- 1 file changed, 32 insertions(+), 22 deletions(-) (limited to 'addons/web_editor/static/src/less/web_editor.ui.less') diff --git a/addons/web_editor/static/src/less/web_editor.ui.less b/addons/web_editor/static/src/less/web_editor.ui.less index 33edd55dc61..df96dac896d 100644 --- a/addons/web_editor/static/src/less/web_editor.ui.less +++ b/addons/web_editor/static/src/less/web_editor.ui.less @@ -643,8 +643,10 @@ width: auto; text-align: center; box-shadow: none; + .popover-content { height: @odoo-navbar-height; + .btn { height: @odoo-navbar-height; border: none; @@ -684,13 +686,6 @@ background-color: @o-we-tab-active-bg; color: white; } - - > i { - visibility: hidden; - } - &.checked > i { - visibility: visible; - } } } #colors_preview { @@ -707,26 +702,41 @@ // COLORPICKER .note-color { - .dropdown-toggle { - width: auto; - } - .o_foreground_toggle > button:before { - font-family: FontAwesome; - content: '\f1fc'; - } - .o_background_toggle > button:before { - font-family: FontAwesome; - content: '\f0c3'; - } - border: 1px solid @o-we-color-divider; border-width: 0 1px; - .dropdown-menu { - min-width: 250px!important; - padding: 0!important; + } + } +} + +.note-popover .popover, .note-editor { + .dropdown-menu { + > li > a { + > i { + visibility: hidden; + } + &.checked > i { + visibility: visible; } } } + + .note-color { + .dropdown-toggle { + width: auto; + } + .o_foreground_toggle > button:before { + font-family: FontAwesome; + content: '\f1fc'; + } + .o_background_toggle > button:before { + font-family: FontAwesome; + content: '\f0c3'; + } + .dropdown-menu { + min-width: 250px!important; + padding: 0!important; + } + } } table.colorpicker { -- cgit v1.2.3