I'm using Bootstrap on my site and I'm making a bar with navbar.
The menu consists of a brand, 3 "li" items, a search bar and a link.
How could I do that by using smaller screens or even resizing the browser, the search bar would not go into this "collapse"?
Current code:
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Minha Empresa</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#">Item 1</a></li>
<li><a href="#">Item 2</a></li>
<li><a href="#">Item 3</a></li>
</ul>
<input type="text" id="OmniSearch" class="form-control" placeholder="Buscar..." />
<ul class="nav navbar-nav navbar-right">
<li><a href="#" class="navbar-link">Entrar / Cadastro</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
Reducedmenu:
My question is how to make the search bar visible in collapsed mode?
Is there any anti-collapse class in Bootstrap?
Thank you.