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

Syntax for responsive #178

Open
robsonsobral opened this issue Jan 13, 2024 · 1 comment
Open

Syntax for responsive #178

robsonsobral opened this issue Jan 13, 2024 · 1 comment

Comments

@robsonsobral
Copy link
Collaborator

he fluid() function:

.foo {
	font-size: ms-fluid(1@320px, 3@480px);
}

Being the syntax:

ms-fluid(STEP@BREAKPOINT, STEP@BREAKPOINT)

Question: Is it possible to have infinite steps and breakpoints? Should we have them? Would that be useful?

We could get the value using clamp()

Even better, if we could have easing functions:

.bar {
	font-size: ms-fluid(1@320px, 3@480px, 'ease-in');
}

Being the default "linear".

Attention: It have been really hard to find how to convert the Bézier cubic notations to mathematical functions.

@robsonsobral
Copy link
Collaborator Author

Should we infer steps from sizes?

.foobar {
	font-size: ms-fluid(16px@320px, 48px@480px);
}

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