mobile menu fix

This commit is contained in:
Jerry
2020-06-04 12:03:50 +03:00
parent 1e6ee9c11d
commit ebeff724cc
8 changed files with 841 additions and 761 deletions

View File

@@ -814,7 +814,8 @@ header {
top: 1px; top: 1px;
-webkit-transform: scale(0.8); -webkit-transform: scale(0.8);
transform: scale(0.8); transform: scale(0.8);
left: 0; } left: 0;
z-index: 12; }
header .main-logo img { header .main-logo img {
max-height: 100%; } max-height: 100%; }
@media (min-width: 769px) { @media (min-width: 769px) {
@@ -1044,7 +1045,8 @@ header {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
top: 10px; top: 10px;
right: 20px; } right: 20px;
z-index: 15; }
@media (min-width: 769px) { @media (min-width: 769px) {
header .mobile-menu { header .mobile-menu {
top: 24px; } } top: 24px; } }
@@ -1088,22 +1090,27 @@ header {
header .mobile-nav { header .mobile-nav {
display: none; display: none;
position: fixed; position: fixed;
top: 0;
z-index: 10000; z-index: 10000;
top: 40px; padding-top: 40px;
right: 0; right: 0;
color: #fff; color: #fff;
background-color: #222; height: 100%;
-webkit-box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75); z-index: 10; }
box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75);
padding: 10px 0 5px;
max-width: 100%;
min-width: 200px; }
@media (min-width: 769px) { @media (min-width: 769px) {
header .mobile-nav { header .mobile-nav {
top: 71px; } } padding-top: 71px; } }
@media (min-width: 992px) { @media (min-width: 992px) {
header .mobile-nav { header .mobile-nav {
display: none !important; } } display: none !important; } }
header .mobile-nav .mm-bg {
padding: 10px 0 5px;
background-color: #222;
-webkit-box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75);
box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.75);
width: 220px;
max-height: 100%;
overflow: auto; }
header .mobile-nav .header-menu { header .mobile-nav .header-menu {
display: block; display: block;
-webkit-box-flex: 0; -webkit-box-flex: 0;
@@ -2494,6 +2501,5 @@ footer {
height: 2px; height: 2px;
background: #48566b; } background: #48566b; }
.main-page .faq-answer img { .main-page .faq-answer img {
width: auto !important;
height: auto !important; height: auto !important;
max-width: 100%; } max-width: 100%; }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -79,6 +79,7 @@ require_once 'inc/walker-nav-menu.php';
</a> </a>
</div> </div>
<div class="mobile-nav" style="display: none;"> <div class="mobile-nav" style="display: none;">
<div class="mm-bg">
<?php <?php
if (has_nav_menu('top')) { if (has_nav_menu('top')) {
wp_nav_menu([ wp_nav_menu([
@@ -130,6 +131,7 @@ require_once 'inc/walker-nav-menu.php';
<!-- <a href="#" class="button bordered">LOGIN</a>--> <!-- <a href="#" class="button bordered">LOGIN</a>-->
<!-- <a href="#" class="button bordered">REGISTER</a>--> <!-- <a href="#" class="button bordered">REGISTER</a>-->
<!-- </div>--> <!-- </div>-->
</div>
</div> </div>
<iframe src="<?= get_lawcarta_url()?>/menu" style="display: none;"></iframe> <iframe src="<?= get_lawcarta_url()?>/menu" style="display: none;"></iframe>
@@ -176,7 +178,7 @@ require_once 'inc/walker-nav-menu.php';
jQuery('.btn-toggle-menu').on('click', function (e) { jQuery('.btn-toggle-menu').on('click', function (e) {
e.preventDefault(); e.preventDefault();
jQuery(this).toggleClass('on'); jQuery(this).toggleClass('on');
jQuery('.mobile-nav').slideToggle(300); jQuery('.mobile-nav').toggleClass('show');
}); });
</script> </script>
</header> </header>

View File

@@ -173,7 +173,7 @@ footer.v2 {
/* Main Page */ /* Main Page */
.main-page .mp-top { .main-page .mp-top {
background-image: url(../../../lawcarta/assets/img/main-page/top-bg-live.jpg); } background-image: url(../img/main-page/top-bg-live.jpg); }
.main-page .mp-top .top-text { .main-page .mp-top .top-text {
background: -webkit-gradient(linear, left top, right top, from(rgba(19, 77, 149, 0.4)), to(rgba(1, 26, 51, 0.4))); background: -webkit-gradient(linear, left top, right top, from(rgba(19, 77, 149, 0.4)), to(rgba(1, 26, 51, 0.4)));
background: linear-gradient(to right, rgba(19, 77, 149, 0.4), rgba(1, 26, 51, 0.4)); } background: linear-gradient(to right, rgba(19, 77, 149, 0.4), rgba(1, 26, 51, 0.4)); }
@@ -262,6 +262,10 @@ footer.v2 {
.main-page .feature-block.with-bg .cont { .main-page .feature-block.with-bg .cont {
color: #ffffff; } color: #ffffff; }
.main-page .feature-block.with-bg.facebook {
background: -webkit-gradient(linear, left top, right top, from(#0e3f7b), to(#539aea));
background: linear-gradient(to right, #0e3f7b, #539aea); }
.main-page .feature-block .fb-img img { .main-page .feature-block .fb-img img {
-webkit-box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4); -webkit-box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4);
box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4); } box-shadow: 16px 16px 16px rgba(0, 0, 0, 0.4); }

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long