9562fba0cea49d5fb95cd3e2a2e30a56ad9b4e02
This commit allows users to choose any color for their navbar when it is over the content. With this commit, the user can choose the color he wants for his navbar when it is scrolled and when it is not scrolled without worrying about color mixing. To simplify the explanation below, note that "Colors" option means the Colors option of the header (just below the Template option) and the "Background" option means the option below Header Position. By following these steps: - Drop some blocks in a the page (to be able to scroll) - Set a light transparent red for the Colors option. - Set the navbar position to "Over the content" - With the Background option, set the background color to a dark color. => When you are at the top of the page, the color is the one of the Background option. So far so good. Now when we scroll, the color of the navbar is dark red. This is not what the user expects. The user should be able to have any color he wants for the scrolled navbar. It's not the case before this commit. He cannot have a dark transparent header on the top of his page and a light transparent red when he scrolls. In this configuration, the Colors option should set the color of the navbar once the user has scrolled. The colors should not be mixed. Technical explanation of the problem: Background option applies the color on the header element and Colors option sets the color on the nav element. The nav element is a child of the header element. So when the header has a color set by the Background option and nav has a color set by the Colors option which has transparency, the color of the header influences the color of the navbar when scrolling. This commit allows to correct this. This commit also fixes the same problem for the gradient option. task-2904507 closes odoo/odoo#106281 Signed-off-by: Arthur Detroux (ard) <ard@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%