Darken content area when opening the mobile menu

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-12-09 01:09:56 -04:00
parent 3af04e8c42
commit 68342b481b
4 changed files with 14 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
debugging the issue. debugging the issue.
- Switch from librabbitmq to py-amqp. Closes GitLab issue #699. Thanks to - Switch from librabbitmq to py-amqp. Closes GitLab issue #699. Thanks to
Rob de Canha-Knight (@rssfed23) for the report, research, and debug. Rob de Canha-Knight (@rssfed23) for the report, research, and debug.
- Darken content area when opening the mobile menu.
3.3.3 (2019-12-05) 3.3.3 (2019-12-05)
================== ==================

View File

@@ -480,6 +480,16 @@ a i {
display: none; display: none;
} }
.overlay-gray {
background-color: rgba(0,0,0,0.25);
display: block;
height: 100%;
position: fixed;
transition: background-color 0.3s;
width: 100%;
z-index: 50;
}
@media (min-width: 768px) { @media (min-width: 768px) {
#menu-main { #menu-main {
display: block; display: block;

View File

@@ -293,11 +293,13 @@ class MayanApp {
// Small screen main menu toggle to open // Small screen main menu toggle to open
$('body').on('click', '#main-menu-button-open', function (event) { $('body').on('click', '#main-menu-button-open', function (event) {
$('#menu-main').addClass('menu-main-opened'); $('#menu-main').addClass('menu-main-opened');
$('#ajax-header').addClass('overlay-gray');
}); });
// Small screen main menu toggle to close // Small screen main menu toggle to close
$('body').on('click', '#menu-main-button-close', function (event) { $('body').on('click', '#menu-main-button-close', function (event) {
$('#menu-main').removeClass('menu-main-opened'); $('#menu-main').removeClass('menu-main-opened');
$('#ajax-header').removeClass('overlay-gray');
}); });
} }

View File

@@ -40,6 +40,7 @@
<div class="main"> <div class="main">
<div class="row zero-margin"> <div class="row zero-margin">
<div class="col-xs-12"> <div class="col-xs-12">
<div id="ajax-header"></div>
<div id="ajax-content"></div> <div id="ajax-content"></div>
</div> </div>
</div> </div>