-
-
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
Edit the visibility of the navbar-burger #1042
Comments
There could be a |
This would be very awesome. |
I'm developing a kind of web-based app for a tablet screen and my temporary fix is to declare |
This is desperately needed. I am of the opinion that hamburgers belong only on phones and my plate. |
I implemented a |
What is the solution to this today? |
I punch this into every Bulma project now and it works 👍 //$gap: 32px;
$tablet: 568px;
$desktop: 896px + (2 * $gap);
//$widescreen: 1152px + (2 * $gap);
//$fullhd: 1344px + (2 * $gap); Try portrait and landscape on mobile and tablet on https://pigeoncoin.org/test/team/ |
in addition to the proposed variable $navbar-breakpoint i suggest adding the following code:
just before the +desktop inside the this should work on anything that is supposed to have a visible menu on landscape phones and up |
Any chance of getting this without modifying the breakpoints? @JohnMica 's solution looks pretty good 🚀 |
Here you go my solution. In my <style> section (using Vue), I add:
Then I patch
By the way, I'm using Hope it helps ;-) |
@JohnMica solution solved part of the problems. Items that were not addressed included the 'untouch-ing' of the box-shadow for the menu, navbar-start and end, etc. I devised a solution that allows you to 'untouch' things like the navbar, or anything else that you deem necessary. src/assets/sass/main.sass // Import Bulma
@import "@/assets/bulma/bulma.sass"
// Customization
$navbar-breakpoint: $tablet // set this for your needs, defaults to $tablet
@import './utilities/_all.sass'
@import './components/_all.sass' src/assets/sass/utilities/initial-variables.sass $navbar-breakpoint: $tablet !default src/assets/sass/utilities/mixins.sass // multi-purpose mixin to 'untouchify' things like the navbar
=untouch
@media screen and (min-width: $navbar-breakpoint) and (max-width: $desktop - 1px)
@content src/assets/sass/components/navbar.sass +untouch
.navbar
& > .container
align-items: stretch
display: flex
min-height: $navbar-height
width: 100%
padding-left: 0.75rem
padding-right: 0.75rem
.navbar-burger
display: none
.navbar,
.navbar-menu,
.navbar-item
flex-grow: 1
flex-shrink: 0
align-items: stretch
display: flex
.navbar-item
display: inline-flex
.navbar-start
justify-content: flex-start
margin-right: auto
.navbar-end
justify-content: flex-end
margin-left: auto
.navbar-menu
box-shadow: unset |
@jgthms Is there any chance of getting this fixed in official release? Could donation help perhaps? Thanks... |
It's been a year 😸 Anything still blocking this? |
In navbar.sass, I changed two things and it seems to work how I want it. It keeps the menu open with no hamburger until phone sized screen. On line 236: +desktop .navbar, .navbar-menu, .navbar-start, .navbar-end I changed +desktop to +mobile However, that still had some remnants of the styling when you open the hamburger menu. So then I changed On line 200, right before .navbar > .container display: block I changed +touch to +mobile. |
Another person looking for an easier supported way of changing the nav-bar breakpoint! |
Fix seeking reviews and ultimately merging in: #2109 |
Largeur minimale à partir de laquelle le burger prend la place des items du menus est maintenant configurable (voir fix jgthms#1042)
Can I get the updated version of this? On line 235 - 239 for Bulma 0.7.5 is now:
|
Overview of the problem
This is about the Bulma CSS framework
I'm using Bulma 5.0.0
Description
I would like to show the hamburger menu only on a mobile device and from a tablet (769px and above) not. It does not seem possible to overwrite the default of a desktop.
The text was updated successfully, but these errors were encountered: