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

Custom gutter width #20

Open
danielchimen opened this issue Aug 19, 2016 · 3 comments
Open

Custom gutter width #20

danielchimen opened this issue Aug 19, 2016 · 3 comments

Comments

@danielchimen
Copy link

Hi there!

Is there a way to create a variation of the grid that allows me to quickly change the gutter width? For example .grid-gutterSm, .grid-gutterMd, etc...

This would be useful with the project that I'm working with at the moment as the design isn't very consistent.

Thanks!

@stadtkonzeptbasel
Copy link

you can simply add this by yourself. Did it that way:

&[#{$gl-attributeName}*="-halfGutter"]{
  margin: 0 (-$gl-gutter/4);
  > [#{$gl-attributeName}~="#{$gl-colName}"],
  > [#{$gl-attributeName}*="#{$gl-colName}-"]{
    padding: 0 ($gl-gutter/4) $gl-gutter-vertical/2;
  }
}

adding this on line 55 after noGutter definition

@migueljteixeira
Copy link

This is now possible in release 2.4 👍

$gl-gutter: 20rem;
$gl-gutter-vertical: 10rem;

@afivos
Copy link

afivos commented Feb 4, 2019

This is now possible in release 2.4 👍

$gl-gutter: 20rem;
$gl-gutter-vertical: 10rem;

Does this still work in v. 2.7.1? Can't seem to figure it out.

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

No branches or pull requests

4 participants