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

Use with postcss-modular-scale #6

Open
strarsis opened this issue Nov 25, 2015 · 0 comments
Open

Use with postcss-modular-scale #6

strarsis opened this issue Nov 25, 2015 · 0 comments

Comments

@strarsis
Copy link

strarsis commented Nov 25, 2015

Quite often vertical-rhythm + modular-scale (postcss-modular-scale) is combined.

How can this be combined?
When this vertical rhythm processor uses the parent font-size as base for the rhythm,
will it also correctly switch between rhythms when the parent font-size changes by mediaquery?
I guess px-to-rem or px-to-em (with different parent font sizes) is necessary in that case to allow proper nesting?

:root {
  --ms-bases: 1, 0.75;
  --ms-ratios: 2;
}

.header {
  font-size: ms(4)rem;
}

In the example above taken from the postcss-modular-scale docs,
there would be a parent with base font-size, but not globally as not the html or body element is used.

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