diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-07-16 12:01:52 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-07-17 09:53:23 +0200 |
| commit | c22d75bdc541919a1dc861645d1e0306ab62be9c (patch) | |
| tree | 9af3a77e2874b41d92ce3b13f8afd77afb3f6e65 /addons/web_editor/static/src/css | |
| parent | d5f6167a47b70c33d8974c998fd1ba67ace2ebc8 (diff) | |
[FIX] web_editor: restrict scope of css rules
within the editor, to prevent styling every tables in Odoo.
Diffstat (limited to 'addons/web_editor/static/src/css')
| -rw-r--r-- | addons/web_editor/static/src/css/web_editor.css | 7 | ||||
| -rw-r--r-- | addons/web_editor/static/src/css/web_editor.sass | 9 |
2 files changed, 7 insertions, 9 deletions
diff --git a/addons/web_editor/static/src/css/web_editor.css b/addons/web_editor/static/src/css/web_editor.css index e61e5244e40..09a55ac9846 100644 --- a/addons/web_editor/static/src/css/web_editor.css +++ b/addons/web_editor/static/src/css/web_editor.css @@ -1,4 +1,3 @@ -@charset "utf-8"; /* ----- EDITOR ----- */ .css_non_editable_mode_hidden { display: none !important; @@ -14,17 +13,15 @@ } /* ----- GENERIC LAYOUTING HELPERS ---- */ - .hidden { display: none !important; } /* table */ -table.table { +#wrapwrap table.table, .o_editable table.table { table-layout: fixed; } - -td { +#wrapwrap table.table td, .o_editable table.table td { min-width: 20px; } diff --git a/addons/web_editor/static/src/css/web_editor.sass b/addons/web_editor/static/src/css/web_editor.sass index 75b4ad6c781..c9ea7876c16 100644 --- a/addons/web_editor/static/src/css/web_editor.sass +++ b/addons/web_editor/static/src/css/web_editor.sass @@ -21,11 +21,12 @@ /* table */ -table.table - table-layout: fixed +#wrapwrap, .o_editable + table.table + table-layout: fixed + td + min-width: 20px -td - min-width: 20px /* Vertical Spacing */ |
