NavToggle Breakpoint

Hey there, I have a responsive toggle nav bar that appears at a certain
point at about 768px and I want it to appear a little earlier at a larger width
but I am wondering if I then need to target each width that says @media (width: 768px)
and which specific ones? Website

You will have to over-ride some properties and set it up yourself unless you want to change it sitewide by adjusting one of the pre-processor variables.

From this example.

@media (max-width: 1128px) {
    .navbar-header {
        float: none;
    }
    .navbar-left,.navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
    float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
          display:block !important;
    }
}
1 Like

I see thank you.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.