-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
side-nav links doesn't works in fixed navbar #3982
Comments
Yes same problem. |
Please try moving the <div class="navbar-fixed">
<nav class="green">
<div class="nav-wrapper">
<a href="/" class="brand-logo">
<i class="material-icons">shopping_basket</i>
macromeal
</a>
<a href="#" data-activates="mobile-demo" class="button-collapse">
<i class="material-icons">menu</i>
</a>
<ul class="right hide-on-med-and-down">
<%= render 'layouts/links' %>
</ul>
</div>
</nav>
</div>
<ul class="side-nav" id="mobile-demo">
<%= render 'layouts/links' %>
</ul> Not exactly sure but in principle this works. 😃 |
wow its working
Daniel Bendel <notifications@github.com>于2016年12月8日周四 下午10:32写道:
… Please try moving the side-nav out of the nav. Like this:
<div class="navbar-fixed">
<nav class="green">
<div class="nav-wrapper">
<a href="/" class="brand-logo">
<i class="material-icons">shopping_basket</i>
macromeal
</a>
<a href="#" data-activates="mobile-demo" class="button-collapse">
<i class="material-icons">menu</i>
</a>
<ul class="right hide-on-med-and-down">
<%= render 'layouts/links' %>
</ul>
</div>
</nav>
</div>
<ul class="side-nav" id="mobile-demo">
<%= render 'layouts/links' %>
</ul>
Not exactly sure but in principle this works. 😃
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3982 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJEkgwq_VDbLF5WNLRcJeNrQMF5aVExQks5rGBTqgaJpZM4LHMBm>
.
|
Duplicate #3844 |
Thanks @Thanood ! I will try it. function initialize() {
$('.button-collapse').sideNav();
$('.button-collapse').click(removeOverlay);
}
function removeOverlay() {
$('div[id^=sidenav-overlay]').remove();
} Oops, sorry @tomscholz . I searched but I didn't find it |
This was referenced Apr 1, 2017
This was referenced Apr 1, 2017
Repository owner
locked and limited conversation to collaborators
Sep 2, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a navbar with brand logo at left and links at right, and the sidenav function works perfect.
I tried to make the navbar fixed, but now the sidenav links doesn't works (the sidenav appears in grey color)
Code
Screenshot

The text was updated successfully, but these errors were encountered: