-
- Downloads
[IMP] website, *: allow presets user edition
*: web, web_editor Now, the user can edit each individual component of each color preset thanks to the third tab of the left panel. The edition of the first preset is the same as the others for the users but it is actually also used for "no-preset" areas, meaning that they impact the whole website by default (*without impacting the other presets*). The website thus appears as areas using presets, preset 1 being the default (in the future all areas will be customizable with a different preset). The only difference between "using preset 1 explicitely" and "not using a preset" will be that background color is transparent in no-preset, leaving the body background appear. If the body background has no image, then there is no difference at all as the background color of the body is set to be the background color of the preset 1. In boxed mode, that color is used for the "box" and the website body uses a different customizable color. Note: before this commit, the "text" color edition was used to set the main text color and one of the constrasting color for the color-yiq function (the darkest if a dark color or the lightest if a light color). That last part has been removed and automatic colors will now always use $gray-900 and $white as contrasting colors, unless changed by the theme explicitely. This needed to be removed as now the "text color" edition has been moved in the "preset 1" config and should thus only impact the "no-preset / preset 1" areas instead of all the presets. Part of https://github.com/odoo/odoo/pull/45856 task-2197038
Showing
- addons/web/static/src/scss/bootstrap_review.scss 10 additions, 3 deletionsaddons/web/static/src/scss/bootstrap_review.scss
- addons/web/static/src/scss/bs_mixins_overrides.scss 5 additions, 1 deletionaddons/web/static/src/scss/bs_mixins_overrides.scss
- addons/web_editor/static/src/js/editor/snippets.options.js 5 additions, 1 deletionaddons/web_editor/static/src/js/editor/snippets.options.js
- addons/web_editor/static/src/scss/bootstrap_overridden.scss 11 additions, 0 deletionsaddons/web_editor/static/src/scss/bootstrap_overridden.scss
- addons/web_editor/static/src/scss/bootstrap_overridden_backend.scss 11 additions, 0 deletions..._editor/static/src/scss/bootstrap_overridden_backend.scss
- addons/web_editor/static/src/scss/web_editor.common.scss 54 additions, 0 deletionsaddons/web_editor/static/src/scss/web_editor.common.scss
- addons/web_editor/static/src/scss/web_editor.variables.scss 5 additions, 0 deletionsaddons/web_editor/static/src/scss/web_editor.variables.scss
- addons/web_editor/static/src/scss/wysiwyg_snippets.scss 25 additions, 7 deletionsaddons/web_editor/static/src/scss/wysiwyg_snippets.scss
- addons/web_editor/static/src/xml/snippets.xml 9 additions, 6 deletionsaddons/web_editor/static/src/xml/snippets.xml
- addons/website/static/src/js/editor/snippets.options.js 78 additions, 0 deletionsaddons/website/static/src/js/editor/snippets.options.js
- addons/website/static/src/scss/bootstrap_overridden.scss 24 additions, 14 deletionsaddons/website/static/src/scss/bootstrap_overridden.scss
- addons/website/static/src/scss/primary_variables.scss 0 additions, 7 deletionsaddons/website/static/src/scss/primary_variables.scss
- addons/website/static/src/scss/website.scss 6 additions, 20 deletionsaddons/website/static/src/scss/website.scss
- addons/website/static/src/scss/website.wysiwyg.scss 5 additions, 0 deletionsaddons/website/static/src/scss/website.wysiwyg.scss
- addons/website/static/src/xml/website.editor.xml 24 additions, 0 deletionsaddons/website/static/src/xml/website.editor.xml
- addons/website/views/snippets/snippets.xml 12 additions, 22 deletionsaddons/website/views/snippets/snippets.xml
Loading
Please register or sign in to comment