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

The grid need to use percent and compute the nearest number for the columns #8

Open
lenybernard opened this issue Nov 18, 2016 · 1 comment

Comments

@lenybernard
Copy link
Contributor

For example, if we set this:

{{ almanach_grid([
        almanach_gridItem('Div Grid Item 1', {
            classGridItem: {
                sm: 75,
                lg: 50
            }
        }),
        almanach_gridItem('Div Grid Item 2', {
            classGridItem: {
                sm: 25,
                lg: 50
            }
        })
    ])
}}

should render in bootstrap:

<div class="row">
    <div class="col-sm-8 col-lg-6"></div>
    <div class="col-sm-4 col-lg-6"></div>
</div>
@LoicGoyet
Copy link

Beware the possibilty with sass to change the max number of columns on one line. It is indeed by default 12, but it can be changed.

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