first commit

This commit is contained in:
zjc
2024-12-12 10:30:11 +08:00
commit 81d7983cb6
37 changed files with 5240 additions and 0 deletions

16
src/styles/screen.scss Normal file
View File

@@ -0,0 +1,16 @@
@use "sass:math";
//默认设计稿的宽度
$designWidth:3840;
//默认设计稿的高度
$designHeight:1080;
//px转为vw的函数
@function vw($px) {
@return math.div($px , $designWidth) * 100vw;
}
//px转为vh的函数
@function vh($px) {
@return math.div($px , $designHeight) * 100vh;
}