From d9c450ac97de40c71aebd487cff725bfda6a577b Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Sat, 22 Aug 2020 15:02:21 +0000 Subject: [IMP] web_editor, website: introduce foldable zones in the editor UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now any set of widgets and rows can be placed in a we-collapse element so that those elements can be foldable. The first element inside (or the mentioned "string" on the we-collapse element itself) is used as the always shown element (with a toggler on its left to toggle the visibility of the other items). we-collapse inside other we-collapse is supported as well. Limitations / Other infos: - The use of '⌙' and   characters is not automatic (yet?). Sometimes it actually make sense to use them without a we-collapse or to not use them in a we-collapse. - The use of we-collapse is limited to widgets inside the same option. So unfortunately, there is no current way to add all bg image options in a folable section as those contain many different options. Maybe in the future. Part of https://github.com/odoo/odoo/pull/56350 closes odoo/odoo#56350 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/web_editor.variables.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss') diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index ca8f9e6a080..add424313c0 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -117,8 +117,7 @@ $o-we-sidebar-content-main-title-font-size: 13px !default; $o-we-sidebar-content-block-spacing: 10px !default; -$o-we-sidebar-content-fold-block-bg: $o-we-bg-dark !default; -$o-we-sidebar-content-fold-block-inner-spacing: $o-we-sidebar-content-block-spacing !default; +$o-we-sidebar-content-fold-block-bg: $o-we-bg-light !default; $o-we-sidebar-content-field-spacing: $o-we-item-spacing !default; $o-we-sidebar-content-field-color: $o-we-fg-darker !default; -- cgit v1.2.3