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

Static gutters using calc() #536

Open
lkmill opened this issue Nov 4, 2015 · 2 comments
Open

Static gutters using calc() #536

lkmill opened this issue Nov 4, 2015 · 2 comments

Comments

@lkmill
Copy link

lkmill commented Nov 4, 2015

Since margins are not part of border-box or content-box width, one simply can't set a percentage width along with a fixed gutter. However, should it not be possible to implement this with as such:

[span] {
    width: calc($percentage-width - $fixed-gutter-size);
    margin-right: $fixed-gutter-size;
}

... or would this not evenly distribute across differently spanning spans? (such as span(1 of 4) and spans(3 of 4).

@mirisuzanne
Copy link
Member

Seems promising. Susy 3 will accept plugins for functionality like this.

@lkmill
Copy link
Author

lkmill commented Nov 4, 2015

Wow, fast. Yeah, I've used similar code with great success. Just found Susy
today, but already I can't wait for v3! Great job

On 4 November 2015 at 18:04, E. Miriam Suzanne notifications@github.com
wrote:

Seems promising http://sassmeister.com/gist/16fc216d663e26011052. Susy
3 will accept plugins for functionality like this.


Reply to this email directly or view it on GitHub
#536 (comment).

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