jquery - Mobile menu breakpoint in Foundation -
when resize browser, mobile menu shows @ 568x320 default breakpoint is.
so want create breakpoint around 900px rid of menu issue (menu big) see in image below have no idea how it. i've been trying 5 hrs. straight , can't figure out. help? fiddle here. thanks.
<nav class="top-bar" data-topbar role="navigation"> <ul class="title-area"> <li class="name"> <h1><a href="#">my site</a></h1> </li> <!-- remove class "menu-icon" rid of menu icon. take out "menu" have icon alone --> <li class="toggle-topbar menu-icon"><a href="#"><span>menu</span></a> </li> </ul> <section class="top-bar-section"> <!-- right nav section --> <ul class="right"> <li class="has-dropdown"> <a href="#">right button dropdown</a> <ul class="dropdown"> <li><a href="#">first link in dropdown</a> </li> <li class="active"><a href="#">active link in dropdown</a> </li> </ul> </li> </ul> </section> </nav>
all solutions found .scss
, i'm using plain .css
. it:
@media screen , (max-width: 64.063em) { meta.foundation-mq-topbar { font-family: "/only screen , (min-width:64.063em)/"; width: 64.063em; } .top-bar { overflow: hidden; height: 2.8125rem; line-height: 2.8125rem; position: relative; background: #333; margin-bottom: 0; } .top-bar-section { left: 0; position: relative; width: auto; transition: left 300ms ease-out; } .top-bar-section ul { padding: 0; width: 100%; height: auto; display: block; font-size: 16px; margin: 0; } .top-bar .toggle-topbar.menu-icon { top: 50%; margin-top: -16px; display:block; } .top-bar .title-area { float: none; } }
that solve issue. wanted change brakepoint. wanted hamburger (as many call) show in max-width: 64.063em
. so, small , middle devices show hamburger , rest show regular navigation.
this fiddle it: https://jsfiddle.net/labanino/99sz3wt0/5/embedded/result/
Comments
Post a Comment