Skip to content

Commit

Permalink
[IMP] web_environment_ribbon: hide the ribbon when navigation is in use
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-wtioit committed Oct 18, 2021
1 parent 21bd33c commit e2470af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web_environment_ribbon/static/src/css/ribbon.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Copyright 2015 Francesco OpenCode Apruzzese <cescoap@gmail.com>
Copyright 2017 Thomas Binsfeld <thomas.binsfeld@acsone.eu>
Copyright 2021 Andreas Perhab <a.perhab@wtioit.at>
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). */

.test-ribbon {
Expand All @@ -26,3 +27,10 @@
.test-ribbon b {
font-size: 20px;
}

header:hover ~ .test-ribbon,
nav:hover ~ .test-ribbon {
/* Ease out ribbon when user is using the navigation in Odoo */
opacity: 0;
transition: 0.2s ease;
}

0 comments on commit e2470af

Please sign in to comment.