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

Typescale mixin #38

Open
gillesbertaux opened this issue Mar 5, 2015 · 0 comments
Open

Typescale mixin #38

gillesbertaux opened this issue Mar 5, 2015 · 0 comments

Comments

@gillesbertaux
Copy link
Owner

We could add a typescale mixin maybe, I drafted sth quickly to get the essence of it, it won't work but you get the idea:

// el-width == you width element (e.g div)
// bp == breakpoint, the idea is to add as many as wanted
// $bp1 = width of breakpoint
@mixin type-scale($el-width, $bps: ($bp1, $bp2, $bp3)) {
  $each $bp in $bps {
    $bp/$el-width : $scaled;
    font-size: $scaled + rem; 
  }
}

What do you guys think?

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

1 participant