Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reset the offset on columns #1186

Comments

@chasegiunta
Copy link

Overview of the problem

This is about the Bulma CSS framework

I'm using Bulma version [0.5.2]

Description

Forgive me if this is currently possible and I'm just unable to find out how, but I think Bulma needs is-offset-0-xxx classes in order to reset the columns at certain breakpoints.

column is-offset-3 is-6 is-offset-0-desktop is-4-desktop

The above example: if I have a column that I want to be centered (or slightly offset, whatever) on tablet or mobile, but on desktop would like to go back to a two-column layout side-by-side, AFAIK, there's no way to do so without adding empty columns like is-3 is-hidden-desktop. That workaround works, but not an ideal solution.

Expected behavior

Be able to use is-offset-0-XXX to reset column offsets at various breakpoints.

@miking-the-viking
Copy link

miking-the-viking commented Dec 20, 2017

This would be a brilliant feature! I feel at present it's a bit of an oversight in Bulma's responsiveness classes.

For instance, I'm wanting to apply is-offset-3 on desktop.... but on mobile I want that offset reduced to is-offset-1.

Using your recommended approach @chasegiunta I'd use is-offset-3-desktop is-offset-1-mobile. This follows Bulma's naming conventions, and is perfectly logical.

If anyone has an alternate suggestion, I'm all ears!

@darr1s
Copy link

darr1s commented Apr 1, 2018

Why doesn't offset use max-width instead? The offset is applied to desktop, how do I avoid it? Tho, I think I might overlooked how to use Bulma / convention.

column is-8-tablet is-offset-2-tablet is-4-desktop

@jp-sauve
Copy link

I tried to use this without even realizing that It's not available. Count this as my vote!

@rayhaanq
Copy link

rayhaanq commented Nov 7, 2018

I've come across the same issue and need some sort of offset reset for desktop

@Saboteur777
Copy link
Contributor

I just sent a PR for this issue: #2290

@jgthms jgthms added pinned and removed pinned labels Jan 21, 2019
@jgthms jgthms closed this as completed in 3c73b33 May 17, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment