feat:完善舆情页面

This commit is contained in:
zjc
2024-12-19 18:21:28 +08:00
parent 42a680c9c3
commit 188e233c7f
25 changed files with 641 additions and 139 deletions

View File

@@ -19,9 +19,18 @@
.justify-evenly {
justify-content: space-evenly;
}
.gap-8 {
gap: vh(8) vw(8);
}
.mb-6 {
margin-bottom: vh(6) !important;
}
.ml-8 {
margin-left: vw(8) !important;
}
.mr-8 {
margin-right: vw(8) !important;
}
.pt-10 {
padding-top: vh(10) !important;
}

View File

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