Skip to content
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

Fixed navbar #393

Closed
murliatdure opened this issue Jan 4, 2015 · 8 comments
Closed

Fixed navbar #393

murliatdure opened this issue Jan 4, 2015 · 8 comments

Comments

@murliatdure
Copy link

  • Looking for some utility class that considers the fixed navbar feature

Simply applying position-fixed is working but the color pallete and all others are getting disturbs.

@murliatdure
Copy link
Author

.nav-fixed {
position: fixed;
z-index: auto !important;
}

Still not working.
Seems to be NAVBAR-FIXED with Material Color Pallete, does't fit !!

@cofcoder
Copy link

cofcoder commented Jan 4, 2015

Try adding this CSS to your custom CSS file:

body{
    padding-top: 45px;
}

.nav-fixed{
position: fixed;
right: 0;
left: 0;
z-index: 1030;
}

.nav-fixed {
top: 0;
}

@media (min-width: 768px)
.nav-fixed{
border-radius: 0;
}

Image of Screenshot
I have used it time and time again from previous Bootstrap projects and there has been no issues (fingers crossed) I hope it works for you too!

@carlosperate
Copy link

The CSS from tmd-uk fixes the navbar to the top. However, the z-index needs to be set a bellow a 1000 to allow things like tooltips and menus to cover the bar (I found a z-index of 2 to be enough). The other problem that I experience is that any z-value added to the "nav" tag will cause the side menu to be covered by the "shade" as shown in the screenshot below.

zxcz

@murliatdure
Copy link
Author

Thanks

@carlosperate
Copy link

@murliatdure any chance we can get the issue listed in my responsed looked into? The latest version in the bin folder still causes the menu to be shaded as shown in my screenshot.

@Dogfalo
Copy link
Owner

Dogfalo commented Jan 5, 2015

If you set the z-index it should be at least 999

@carlosperate
Copy link

A z-index of 999 or above will cause the navbar to not be shaded:
kgk
A z-index below 999 will shade everything as shown before.
Is there any workaround to fix this?

@aminnairi
Copy link

Moving the <ul class="side-nav"> outside the <div class="navbar-fixed"> does fix the issue without touching the CSS

CodePen Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants