Skip to content

Elwood-P/sass-fluid-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Sass Fluid Properties

A Sass mixin to simplify using CSS fluid properties.
Read blog post

Usage

Use with any unit based property. Compatible with either px or rem units.

p {
  @include fluid-property(font-size, 16px, 32px);
  @include fluid-property(margin-bottom, 1rem, 2rem);
}

Customisation

Customise the variables $min-vw and $max-vw to set the minimum and maximum screen widths between which the fluid property interpolates. Add the desired values in _variables.scss.

// Set minimum and maximum screen widths between which the fluid property interpolates

$min-vw: 400px;
$max-vw: 1400px;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages