Skip to content

Instantly share code, notes, and snippets.

@intellectualDarknet
Created April 16, 2022 14:14
Show Gist options
  • Save intellectualDarknet/2794307988994a619f95a7d01747ed03 to your computer and use it in GitHub Desktop.
Save intellectualDarknet/2794307988994a619f95a7d01747ed03 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@function font1($y1,$y2,$x1: 320,$x2: 768) {
$part1: ($y2 - $y1) / ($x2 - $x1);
return $part1
}
.block {
padding:20px;
}
@function font2($y1,$y2,$x1: 320,$x2: 768) {
@return ($y2 - $y1) / ($x2 - $x1) * 100vw + (($x2 * $y1 - $y2 * $x1) / ($x2 - $x1));
}
.block {
padding: 10px;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment