ea9b7747e2
确保在 Lenis 加载完成前后都能正确锁定页面滚动 修复滚动锁定计数逻辑,避免重复操作
33 lines
549 B
CSS
33 lines
549 B
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
:root {
|
|
--page-container--width: 1400px;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
max-width: 100%;
|
|
overflow-x: clip;
|
|
background: #fff;
|
|
}
|
|
|
|
html {
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
html::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
/* 首页入场动画期间首帧就隐藏滚动条,避免黑色遮罩边缘露出白色滚动槽。 */
|
|
html.is-home-intro-active,
|
|
html.is-home-intro-active body {
|
|
overflow: hidden !important;
|
|
background: #000;
|
|
}
|
|
}
|