Skip to content
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

Fixed responsive breakpoints #2039

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fixed responsive breakpoints #2039

wants to merge 3 commits into from

Conversation

corford
Copy link

@corford corford commented Aug 2, 2018

Currently the desktop, widescreen and fullhd breakpoints seem wrong: 1088px, 1280px and 1472px (issue appears to be caused by a commit that changed $gap from 32px to 64px).

Documentation suggests breakpoints for desktop, widescreen and fullhd should be from: 1024px, 1216px and 1408px respectively. Comments in sass/utilities/initial-variables.sass corroborate this (container base width + 4 rem i.e. 64px). Real life agrees too (e.g. desktop width traditionally starts at 1024px).

This PR brings the breakpoints back in line with the documentation by reverting $gap to 32px (instead of 64px).

This is a bugfix.

Proposed solution

Revert to value of 32px for $gap

Tradeoffs

None (afaik). A code search across the bulma source code for $gap seems to suggest no negative impact.

Testing Done

Used forked repo with the change applied and breakpoints appear to work as documentation suggests.

Documentation suggests breakpoints for desktop, widescreen and fullhd are from: 1024px, 1216px and 1408px respectively. Comments in sass/utilities/initial-variables.sass corroborate this (container base width + 4 rem i.e. 64px). Also, real life agrees too (e.g. desktop width traditionally starts at 1024px). Prior to this commit; desktop, widescreen and fullhd breakpoints were wrongly: 1088px, 1280px and 1472px (because $gap was multiplied twice - a hang over from when $gap was 32px rather than 64px?).
Seems a cleaner way to fix the breakpoints (given sass/elements/container.sass would have been negatively impacted by the earlier commit).

Having done a code search for $gap it's not clear what effect changing this value back to 32px (from 64px) has on the rest of bulma (at first glance: nothing).
@AndresDevelop
Copy link

Im actually having the same issue here, these commits hasnt been merged into the master branch has it?

@corford
Copy link
Author

corford commented Aug 26, 2018

Hasn't been merged yet (hoping it will at some point). See issue here: #1864

@kaligari
Copy link

kaligari commented Sep 20, 2018

Other solution is to set $desktop variable:
$gap: 64px
$desktop: 896px + (2 * $gap)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants