-
-
Notifications
You must be signed in to change notification settings - Fork 161
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 widths by breakpoint/media query #417
Comments
I've had this question a few times. Presently, there isn't a way to change the global gutter from mobile to desktop. Maybe this is something I should look into adding. 🤔 |
@peterramsing If you can point me in the right direction. I might be able to take a stab at it when I have some time. |
I would like to use Lost, but I can already can guarantee the designers on our team will adjust the gutter width on mobile, and I'm not sure where to go from there. |
how can I change gutter for different viewport globally? |
For a workaround until this may be implemented, you could declare mixins that handle the different gutter sizes. Declare global variables for gutter sizes and create the mixins according to your breakpoints:
This is for a mobile-first approach, you can also adjust the media queries or use multiple mixins like Using these would look like this:
|
Perhaps this is a dumb question, but I couldn't find the answer after a precursory look through the docs.
Is there a way to change the global gutter width at specific breakpoints? For e.g. make it a thinner sized gutter on mobile than on desktop.
TY
The text was updated successfully, but these errors were encountered: