Files
rct/frontend/src/style.css
T
yilv e1a26344b6 chore: 移除 HarmonyOS Sans SC 字体文件及引用
移除自定义字体以简化前端资源依赖,使用系统默认字体栈提升加载性能
2026-02-27 17:18:30 +08:00

83 lines
1.5 KiB
CSS

:root {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
/* Modern Palette */
--color-bg: #f5f7fa;
--color-text: #2c3e50;
--color-primary: #409eff;
--color-white: #ffffff;
--color-border: #e4e7ed;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
margin: 0;
display: block; /* Removed flex center from default vite template */
min-width: 320px;
min-height: 100vh;
background-color: var(--color-bg);
color: var(--color-text);
}
#app {
/* Removed max-width and centering */
width: 100%;
height: 100vh;
padding: 0;
text-align: left;
}
h1, h2, h3 {
margin: 0;
font-weight: 600;
}
/* Transitions */
.fade-transform-enter-active,
.fade-transform-leave-active {
transition: all 0.3s;
}
.fade-transform-enter-from {
opacity: 0;
transform: translateX(-30px);
}
.fade-transform-leave-to {
opacity: 0;
transform: translateX(30px);
}
/* Card Hover Effect */
.hover-card {
transition: transform 0.3s, box-shadow 0.3s;
}
.hover-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
background: #c0c4cc;
border-radius: 4px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}