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

Container width exceed 960px when browser's width is between 961 and 1087 #2297

Comments

@tsewaiho
Copy link

This is about Bulma framework.
I'm using Bulma 0.7.2

Description:

Container width is fixed at 960px when browser width is between 1088px to 1279px.
And when browser width is below 1088, container width equal parent element width.

But when browser width is between 961px and 1087px, let's say 1087px, the container width will be 1087px.
Even wrapped by a section, container still has 1039px. It exceed the container width of next breakpoint - desktop.

I think this is not a intentional effect, because when using container combine with is-widescreen, it will constraint the width by max-width: 1152px. It will not exceed next breakpoint.

Steps to Reproduce

<div class="container">Hello World</div>

Go to Chrome Developer Tools, use device toolbar to set the device width to 1087px.

Expected behavior

the container has 960px width

Actual behavior

the container has 1087px width

Suggestion

.container
  margin: 0 auto
  position: relative
  max-width: $desktop - (2 * $gap)
  width: auto
@jgthms jgthms closed this as completed in 97cb031 May 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment