111 lines
2.0 KiB
CSS
111 lines
2.0 KiB
CSS
:root {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
line-height: 1.5;
|
|
font-weight: 400;
|
|
|
|
color-scheme: light dark;
|
|
color: rgba(255, 255, 255, 0.87);
|
|
background-color: transparent;
|
|
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Preview mode specific styles */
|
|
.preview-view {
|
|
background-color: transparent !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* 为预览页面专门设置透明背景 */
|
|
body.preview-mode,
|
|
html.preview-mode {
|
|
background-color: transparent !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* 确保 #app 在预览模式下也是透明的 */
|
|
body.preview-mode #app {
|
|
background-color: transparent !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
/* 确保滚动行为平滑 */
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* 全局文本选择样式 */
|
|
::selection {
|
|
background-color: rgba(52, 152, 219, 0.3);
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 按钮通用样式改进 */
|
|
button {
|
|
transition: all 0.3s ease;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
color: #213547;
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
button:hover {
|
|
border-color: #3498db;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
button:focus,
|
|
button:focus-visible {
|
|
outline: 2px solid #3498db;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.card {
|
|
padding: 2em;
|
|
}
|
|
|
|
#app {
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
:root {
|
|
color: #213547;
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* 确保预览模式下即使在浅色主题也是透明的 */
|
|
body.preview-mode,
|
|
html.preview-mode,
|
|
body.preview-mode #app {
|
|
background-color: transparent !important;
|
|
background: transparent !important;
|
|
}
|
|
|
|
a:hover {
|
|
color: #3498db;
|
|
}
|
|
button {
|
|
background-color: #f8f9fa;
|
|
}
|
|
}
|