Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @function responsive($value1, $value2, $width1: 320, $width2: 1920) {
  2. $x1: $width1;
  3. $x2: $width2;
  4. $y1: $value1;
  5. $y2: $value2;
  6. $a: ($y2 - $y1) / ($x2 - $x1);
  7. $b: ($x2 * $y1 - $x1 * $y2) / ($x2 - $x1);
  8. @return calc(#{$a * 100vw} + #{$b * 1px});
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement