-
-
Save OliverJAsh/02eb7911227235a6c82a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin font-size($percent, $min-font-size, $max-font-size) { | |
// Min | |
font-size: $min-font-size; | |
@include breakpoint($min-font-size/$percent * 100) { | |
font-size: #{$percent}vw; | |
} | |
@include breakpoint($max-font-size/$percent * 100) { | |
font-size: $max-font-size; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment