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

Columns too wide on mobile #660

Closed
wants to merge 2 commits into from

Conversation

thijsvdanker
Copy link

Proposed solution

When using .columns on a mobile device, the margin-right: -0.75rem causes the body to overflow.
This makes it possible for the user to scroll and see whitespace.
By changing the horizontal padding and margin on mobile, this issue is resolved.
Fixes: #449

Tradeoffs

People relying on the horizontal padding for mobile will lose this.

Testing Done

Works on Chrome (OS X)

@@ -242,6 +243,9 @@
&.is-vcentered
align-items: center
// Responsiveness
+mobile
margin-left: 0
margin-right: 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bulma is mobile-first. So this should be undone on tablet.

@@ -41,6 +41,7 @@
.columns.is-mobile > &.is-offset-#{$i}
margin-left: ($i / 12) * 100%
+mobile
padding: 0.75rem 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this is for.

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.

class "columns" too wide on mobile
2 participants