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

User defined Unit #7

Merged
merged 2 commits into from
Nov 30, 2020
Merged

User defined Unit #7

merged 2 commits into from
Nov 30, 2020

Conversation

Loque-
Copy link
Owner

@Loque- Loque- commented Nov 30, 2020

Also has an unfortunate trailing comma update.

You can now specify the unit that Guttr will use when producing padding;

const siteGutter = guttr({
    base: {
        gutter: 1,
        unit: 'rem',
    },
    breakpoints: {
        small: {
            gutter: 16,
            unit: 'px',
            mediaQuery: `@media(min-width: 768px)`,
        },
        medium: {
            gutter: 4,
            // will return to base if not specified
            mediaQuery: `@media(min-width: 992px)`,
        },
    },
});

@Loque- Loque- merged commit 9109a3c into master Nov 30, 2020
@Loque- Loque- deleted the feature/user-defined-unit branch November 30, 2020 13:13
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

Successfully merging this pull request may close these issues.

1 participant