I have such a layout:
I would like that when one clicks the orange button, the sidebar shrinks and leaves only the icons visible. And for the mobile should totally shrink and when one clicks the button only the icons should be visible. The behaviour should be like this but I don't understand how to make it work.
For now I have my header:
<div class=navbar-header>
<a class=navbar-minimalize minimalize-styl-2 btn btn-primary href=#menu-toggle onclick=toggle()><i class=fa fa-bars></i></a>
<a class=navbar-brand href=#>...</a>
</div>
But I don't know how to make it collapse when one clicks.. Thanks