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

Changed the index to be >= 0 to add offset/push/pull-0 #11295

Closed
wants to merge 8 commits into from

Conversation

erikflowers
Copy link

  • Changed the index to be greater than or equal to zero so that offset-0, push-0, and pull-0 get added to the css file for html usage as "col-md-offset-0" to reset the offset/push/pull if you want to go from something that isn't zero, back to zero. This was changed from 3.0.0 apparently, as with 3.0.1 you can't uses these classes in HTML. You can generate the same effect on a class through less mixins like ".make-sm-column-offset(0)", but if using just bootstrap.css there was no way to reset them back to 0.

…t-0, push-0, and pull-0 get added to the css file for html usage as "col-md-offset-0" to reset the offset/push/pull if you want to go from something that isn't zero, back to zero.
@cvrebert
Copy link
Collaborator

Please run grunt dist and include those changes in your pull request, so we can see the differences in the generated CSS.

…t adds the zero-value offset/pull/push, but also adds a col-*-0, which is useless.
@erikflowers
Copy link
Author

The idea works for un-offsetting/pulling/pushing something, but I think the bootstrap guys would have to decide if/how they wanted to output that as excluding the columns themselves, I am not sure I can figure out.

@FatBoyXPC
Copy link

Building on Erik's change, a potential resolution to get rid of col-*-0, we can add this change:

I edited mixins.less and added an additional condition to the .calc-grid mixin. This has Erik's change on Line 775 as well.

Here are the grunt dist results.

@cvrebert
Copy link
Collaborator

cvrebert commented Nov 6, 2013

Fixes #11328.

@mdo mdo closed this in 88a0664 Nov 6, 2013
@mdo
Copy link
Member

mdo commented Nov 6, 2013

I ended up doing this manually because of the number of master merges in this PR. Thanks for doing this though, it's in 3.0.2 which should drop this afternoon.

@erikflowers
Copy link
Author

Great! I so wanted the official contribution though. Print it out and put it on my fridge. Can I like change one character somewhere =D

stempler pushed a commit to stempler/bootstrap that referenced this pull request Apr 11, 2014
stempler pushed a commit to stempler/bootstrap that referenced this pull request Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants