From dbe427f7c378a57255cc81e9a8e69a0fafa1fd00 Mon Sep 17 00:00:00 2001
From: LGH <guanghui.luo@foxmail.com>
Date: Wed, 26 Mar 2025 15:28:39 +0800
Subject: [PATCH] feat: 添加rem来进行适配
---
src/styles/variables.scss | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index ef29df7..bf0d41a 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -1,3 +1,7 @@
$sidebar_width: 230px;
$sidebar_collapse: 60px;
$top_height: 50px;
+
+@function height($px) {
+ @return calc($px / 1080) * 100vh;
+}
--
Gitblit v1.9.3