Files
GLXT/Vue/frontend/src/style.css
2026-01-12 11:42:00 +08:00

74 lines
1.4 KiB
CSS

:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
/* 保留原有的配色方案 */
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 链接样式 */
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
/* 核心修改:清除默认的居中和边距,强制铺满屏幕 */
html, body, #app {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
display: block; /* 覆盖掉原有的 display: flex */
}
/* 全局盒子模型设置 */
*, *::before, *::after {
box-sizing: border-box;
}
/* 按钮样式保持不变 */
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
/* 浅色模式适配 */
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}