Created
February 22, 2020 17:06
-
-
Save mio-U-M/50246aaea701f819538b02279f68d326 to your computer and use it in GitHub Desktop.
画面に応じて拡大縮小できるようにvwにして返してくれる
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
// size | |
$pc-min-width: 1440px; | |
$tablet_max_width: 769px; | |
$sp_max_width: 375px; | |
@function pSize($value) { | |
@return $value / $pc_min_width * 100 + vw; | |
} | |
@function tSize($value) { | |
@return $value / $tablet_max_width * 100 + vw; | |
} | |
@function sSize($value) { | |
@return $value / $sp_max_width * 100 + vw; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment