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

Different gutter half for each breakpoints #68

Open
Cedric-ruiu opened this issue Jul 30, 2014 · 2 comments
Open

Different gutter half for each breakpoints #68

Cedric-ruiu opened this issue Jul 30, 2014 · 2 comments

Comments

@Cedric-ruiu
Copy link

Hi,

If we need a gutter-half 20px on desktop/tablet and 10px on mobile breakpoint, how can we do this? I thought several times but I did not find "clean" solution...

Cédric R.

@Cedric-ruiu
Copy link
Author

Maybe a solution : create 3 new classes : mobile-gutter-half, tablet-gutter-half and desktop-gutter-half

The problem is that interpolation variable is needed to implement this solution (like $#{$scope}gutter-half), but it's not available in sass :(

@Aybee
Copy link

Aybee commented Mar 23, 2016

Did you try to put different paddings inside the media queries?

*[class^='grid-'] {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767px) {
  *[class^='mobile-grid-'] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

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

2 participants