Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature request: expressions in colspan() arguments? #13

Open
beep opened this issue Jul 21, 2017 · 0 comments
Open

Feature request: expressions in colspan() arguments? #13

beep opened this issue Jul 21, 2017 · 0 comments

Comments

@beep
Copy link

beep commented Jul 21, 2017

Something that came up when working on the “Get Involved” module: when padding is applied to a container, it adds quite a bit of complexity to inner colspan() calculations. Just e.g.,

.promo-get-involved .brief-thumb {
    float: left;
    width: ( colspan( 1, 4 ) - colspan( p, 4 ) ) + colspan( p, 12 );
    @include breakpoint-range(sm, lg) {
        float: right;
        margin-left: $scale-5;
        width: 25%;
    }
}

One possible solution for this—though probably not the only one!—would be to allow the two colspan() arguments to accept expressions, like so

colspan( 1 - g, 4 - p )

I realize that, uh, would probably get pretty complicated pretty quickly, but thought I’d mention it as a possibility.

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

No branches or pull requests

1 participant