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

Introduce card-columns-count as class #22136

Closed
hellow554 opened this issue Mar 8, 2017 · 1 comment
Closed

Introduce card-columns-count as class #22136

hellow554 opened this issue Mar 8, 2017 · 1 comment

Comments

@hellow554
Copy link

I'd like to specify the number of columns which a .card-columns class has by using a class, e.g.
card-columns-{2,3,4}.

This would give the user the opportunity to specify the layout even further. The css would be something like this for the correspoding classes.

.card-columns-2 {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

Maybe even with the sm, md, lg, xl prefix: card-columns-{sm,md,lg,xl}-{2,3,4}, so you could resolve the issue, that card decks for example aren't responsive currently, but this would lead to responsiveness. I'm currently using the sm prefix for my project to distinct between one and two columns. Works like a charm :)

@mdo
Copy link
Member

mdo commented Mar 9, 2017

For that level of control, I imagine the grid is what you want. I don't think we'll implement this much control over card column layout at this time. Thanks though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants