132 lines
3.1 KiB
CSS
132 lines
3.1 KiB
CSS
/* SRDB WebUI v2 - Preact Edition */
|
|
|
|
:root {
|
|
/* 主色调 - 优雅的紫蓝色 */
|
|
--primary: #6366f1;
|
|
--primary-dark: #4f46e5;
|
|
--primary-light: #818cf8;
|
|
--primary-bg: rgba(99, 102, 241, 0.1);
|
|
|
|
/* 背景色 - 深色主题(默认)*/
|
|
--bg-main: #0f0f1a;
|
|
--bg-surface: #1a1a2e;
|
|
--bg-elevated: #222236;
|
|
--bg-hover: #2a2a3e;
|
|
|
|
/* 文字颜色 - 深色主题 */
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #a0a0b0;
|
|
--text-tertiary: #6b6b7b;
|
|
|
|
/* 边框和分隔线 - 深色主题 */
|
|
--border-color: rgba(255, 255, 255, 0.1);
|
|
--border-hover: rgba(255, 255, 255, 0.2);
|
|
|
|
/* 状态颜色 */
|
|
--success: #10b981;
|
|
--warning: #f59e0b;
|
|
--danger: #ef4444;
|
|
--info: #3b82f6;
|
|
|
|
/* 阴影 */
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
|
|
|
|
/* 圆角 */
|
|
--radius-sm: 6px;
|
|
--radius-md: 8px;
|
|
--radius-lg: 12px;
|
|
--radius-xl: 16px;
|
|
|
|
/* 过渡 */
|
|
--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* 浅色主题 */
|
|
:root[data-theme="light"] {
|
|
/* 背景色 - 浅色主题 */
|
|
--bg-main: #f5f5f7;
|
|
--bg-surface: #ffffff;
|
|
--bg-elevated: #ffffff;
|
|
--bg-hover: #f0f0f2;
|
|
|
|
/* 文字颜色 - 浅色主题 */
|
|
--text-primary: #1d1d1f;
|
|
--text-secondary: #6e6e73;
|
|
--text-tertiary: #86868b;
|
|
|
|
/* 边框和分隔线 - 浅色主题 */
|
|
--border-color: rgba(0, 0, 0, 0.1);
|
|
--border-hover: rgba(0, 0, 0, 0.2);
|
|
|
|
/* 阴影 - 浅色主题 */
|
|
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: var(--bg-main);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
font-size: 14px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
#app {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* 自定义滚动条 */
|
|
*::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background: var(--border-hover);
|
|
}
|
|
|
|
/* Loading 状态 */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Empty 状态 */
|
|
.empty {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--text-secondary);
|
|
}
|