-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Horizontal collapse #17496
Comments
Offset Canvas already do it!? But we have to use a bit jquery to exchange collapse for canvas! |
one would also like the option to have a slide-(left|right) nav on tablet and mobile, that overlays the content rather than pushing it aside. |
What is the status of this? |
https://github.com/bootstrapstudio/bootstrap-better-nav so this is a thing that exists and which I've used successfully in a redesign. |
Any chance of an update on this? |
@mdo, it looks really good! 👍 |
This is a really good example of left nav/sidebar that hides on smaller screens and has an icon only collapse option on larger screens. |
@mrlife's example of a sidebar that collapses to an icon bar is exactly why I came looking for a horizontal collapse 😄 |
Tried in #31681 but couldn't make it work with just CSS. Would love if someone could give it a go! |
Thanks for trying! Unfortunately I'm pretty rusty on CSS; more of a back-ender now. |
I thought this would be just as the existing vertical collapse but horizontal and hence be a minor change that was easy. |
I have a use case for this functionality that I just finished implementing and I thought I'd circle back to see what value I can bring to this issue! The ProblemFrom what I understand, during the expanding of the collapse element, the height is set to 0, overflow is set to hidden, the The JavaScript already has support for adding a SolutionTo solve this problem while still using the collapse functionality, I set a fixed width on the child element. This way, the https://codepen.io/SpaceJam/pen/wvJQBPB The pros here are that I could use the existing JS, and only need to make a few small styling changes to support the functionality I needed. The con is that this isn't responsive. It would be simple enough to add some responsive variables to change the collapse width at different screen sizes -
In my mind, this is still less than a perfect option. From what I can see above, others have settled on this same fixed-width solution, but that didn't give traction to getting this issue resolved. I'm happy to open a PR (it would probably look similar to #31681) to support this solution if you all feel this adequately fulfills the issue request. |
It would be nice with a horizontal collapse feature.
This would be very handy for collapsing sidebars.
The text was updated successfully, but these errors were encountered: