-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
burger size is not responsive to navbar height #1534
Comments
@jimblue, I interpreted the overall burger size as the button since it was an upgrade that I wanted as well. Was this correct, or did you mean the spacing in between the burger elements? |
@raygervais It's because the burger mixin define the bulma/sass/utilities/mixins.sass Line 125 in fdeba5d
|
In my opinion there is two solutions:
|
I see, agree that the 3 spans / lines need to be responsive as well. I believe the first solution you propose would be the correct fix. If that is the case then I'd revert back my change since it is truly is already responsive and somehow I missed that. Then will look at the optimal algorithm for sizing. We could easily use the dimension itself which is passed in by the function signature: bulma/sass/utilities/mixins.sass Line 109 in fdeba5d
|
Cool, so you have an idea how to modify the mixin to do so? |
Animation would have to be updated to accommodate the dynamic width of the spans, but this process wouldn't break the animation I imagine. I imagine a dynamic calculation such as Animation width would take this into account in a similar fashion. |
Ok let's do it!! How can I help? |
@jimblue, Double Height, Still requires an update to the algorithm for the spacing of the hamburger 'layers' Half Width Burger Element: As you can see, the idea that I'm proposing (still up for debate) is to make the width of the lines 40%, which was based on calculations I had done for the padding and margins which scale with the width. This addresses the width, the actual height of the burger and it's layers would take on a similar logic. |
Hey @raygervais ! I see using percentage is kind of working but it breaks the square ratio of the button which is not good. Changing the navbar height already change the burger button to keep a square size. That mean the 3 lines should use responsive value relative to the button size to not break the ratio. What could be nice is also to space the 3 lines a bit more when the button get bigger. In the end I think it would be probably better to define in px 3 sizes:
That way user could decide... What do you think? |
Adding size modifier classes makes quite a bit of sense for a framework such as Bulma, it follows similar practice to other elements. The responsive classes may fix the issue which you and I mentioned. Currently, the square doesn't change on 0.6.1 when you change the height of the navbar, I am using the latest codebase. If it is supposed to, can you show even just via an image? Regarding these responsive classes, they me be the perfect class to utilize the percentage calculations, this way we can have a 16:9, 4:4, etc. I'll explore more of this when I have a chance today / tomorrow. |
Interesting, I don't see the responsive change in my repository, perhaps I'm behind on a critical patch. Will revert any changes I've made, update the branch and apply the concepts we've discussed here. Do you believe these are appropriate class names?
|
I think it would make more sens to use the following class on
It's enough right? Agree for the rest 😄 |
Agreed 👍 |
@jimblue, Here are what the classes look like based on our agreed upon sizing conventions, with the included is-largeis-activeis-smallis-active |
Hey!! Great job @raygervais ! 😄 The small doesn't look too close to the bottom IMO. It's look like Bulma spirit is respected here, I think you can go for the PR ! |
You're welcome, thanks to you for the PR |
This is desperately needed! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Overview of the problem
This is about the Bulma CSS framework
I'm using Bulma version [0.6.1]
Description
Burger size is fixed. It's a problem when changing the navbar height for higher value as the burger will look too small.
Expected behavior
Changing the navbar height should have an influence on the burger size.
The text was updated successfully, but these errors were encountered: