I am adding this answer for users who want to use the bootstrap method to handle a collapsing element using a grid-float breakpoint, that is, the point at which the navigation bar becomes unmounted.
So, if you want the elements to be visible only when folding the line, add the sleeping addon class and enable this css.
The default gind-float-breakpoint is set to screen-sm-min, which is 768px
@media (min-width: 768px){ .collapsed-addon { display: none; }
If you use some processors, use the css variable grid-float-breakpoint
@media (min-width: $grid-float-breakpoint){ .collapsed-addon { display: none; } }
source share