diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-05-04 17:09:51 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-05-04 17:09:51 +0200 |
| commit | 0fbc92e0c4c07d61da55d0bbb3cadd55f51dc4d7 (patch) | |
| tree | 4be569ab0f86370fe9044a9b13d69c858c980de0 /addons/web_editor/static/src/less/web_editor.backend.less | |
| parent | 858188f1a2a2207cf93cc0f2d0d2deb08bb7dbf6 (diff) | |
| parent | 1e86774207d09c901c61b148c5c0c23a511aa282 (diff) | |
[MERGE] forward port of branch saas-10 up to 1e86774
Diffstat (limited to 'addons/web_editor/static/src/less/web_editor.backend.less')
| -rw-r--r-- | addons/web_editor/static/src/less/web_editor.backend.less | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/less/web_editor.backend.less b/addons/web_editor/static/src/less/web_editor.backend.less index 0ff97e327aa..53789aae8af 100644 --- a/addons/web_editor/static/src/less/web_editor.backend.less +++ b/addons/web_editor/static/src/less/web_editor.backend.less @@ -83,3 +83,21 @@ box-shadow: #DDCC33 0 0 5px 2px inset; } } + +// FIX (to improve in next versions) +// --------------------------------- +// The web_editor.colorpicker defines a series of color buttons which toggle the bg-* and text-* classes. +// The problem is that themes can define new buttons whose bg-* and text-* classes only exist in the frontend. +// So these buttons should not be displayed in the backend. Only solution for the current implementation is +// to add this ugly rule (in this backend file) which hides every button and redisplayed the default ones. +.note-editor { + .colorpicker .o_colorpicker_section > button { + display: none; + + &[data-color="alpha"], &[data-color="beta"], &[data-color="gamma"], &[data-color="delta"], &[data-color="epsilon"], + &[data-color="white"], &[data-color="gray-lighter"], &[data-color="gray-light"], &[data-color="gray"], &[data-color="gray-dark"], &[data-color="gray-darker"], &[data-color="black"], + &[data-color="primary"], &[data-color="success"], &[data-color="info"], &[data-color="warning"], &[data-color="danger"] { + display: block; + } + } +} |
