-
Notifications
You must be signed in to change notification settings - Fork 3
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
Using margin instead of padding for item (column) gutter #42
Comments
You can use |
Sounds good - thanks |
So the problem with this is that margin gets added to the outer-width of a box and thereby making it impossible to declare The solution to this is using Thanks for bringing it up @mmjaeger. if you want to help, the code is pretty well documented via SASSDoc and Stylelint. Feel free to send a PR anytime :) |
any progress on the margin gutter yet |
not yet, i have a lot of other stuff on my plate and the change as a whole is non-trivial. if you want to take a stab at it, feel free to do so. that being said, i will probably get to it soon :) |
Looking forward - by the way, how would I set up a collapsed grid (no gutter) |
Assuming you have this markup (and no custom <section class="items">
<article class="item">Item 1</article>
<article class="item">Item 2</article>
<article class="item">Item 3</article>
</section> You would get a grid based on thirds without gutters like this: .items {
@include g(full);
}
.item {
@include i(1/3);
} |
I think I got a little further with the margin gutter - I set a global var in the functions.scss file I changed the code to:
seems to work - have not check push and pull but I will later - it would be On Fri, Jul 22, 2016 at 6:56 AM, Felix Spöttel notifications@github.com
Marco M. Jaeger |
nice work @mmjaeger, I will take a shot at it this weekend and link you in the PR in case you want to review it. The only open question is how to use the |
I think I got the different gutter sizes working with grid-calc. how about |
Played a little bit with the code - the difficulty actually is where to set the global variable for the gutter and where to reset it. |
Thanks for the input! I'm leaning towards solving this via the item mixin as it would enable fine-grained configuration (setting wide gutters for big screens only), does not require another config var set and is consistent with the rest of the library's api. The downside is that it would require another layer of string-parsing (@i() already looks for fractions, units, |
I'm actually not familiar with github - I know it's embarrassing but I'll as to the gutters I actually like that you're applying the gutter to the |
We use Hagrid on all projects here ❤️ 🙂. I'm ok with going forward and removing support for old browsers. Developers who need to support older browsers could still use an older version of Hagrid, right? |
@renatocarvalho that is very nice to hear, glad that it is useful! yes, old versions will be available via npm/yarn. I will set aside some time to make v4.0 happen soon, been pretty swamped with work lately |
Let me know if you need any help. Even on the landing page. I think Hagrid deserves to be known by more people; it's really awesome! |
Hello
I was wondering how difficult it would be to use margin-left/margin-right for the column gutter? would be nice if there would be an option to choose either one? is it possible to have a collapsed grid with no gutter at all?
The text was updated successfully, but these errors were encountered: