Skip to content

Syntax for responsive #178

Description

@robsonsobral

The 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions