67 lines
1.8 KiB
CSS
67 lines
1.8 KiB
CSS
/* CSS变量定义 - 设计系统基础值 */
|
|
|
|
:root {
|
|
/* 颜色变量 */
|
|
--color-primary: #3b82f6;
|
|
--color-primary-hover: rgba(59, 130, 246, 0.7);
|
|
--color-primary-light: rgba(59, 130, 246, 0.3);
|
|
|
|
--color-background: #ffffff;
|
|
--color-background-secondary: #f3f4f6;
|
|
--color-background-tertiary: #e5e7eb;
|
|
|
|
--color-border: #e5e7eb;
|
|
--color-border-hover: rgba(59, 130, 246, 0.3);
|
|
|
|
--color-text-primary: #1f2937;
|
|
--color-text-secondary: #6b7280;
|
|
--color-text-tertiary: #9ca3af;
|
|
|
|
--color-shadow: rgba(0, 0, 0, 0.1);
|
|
--color-shadow-lg: rgba(0, 0, 0, 0.12);
|
|
|
|
/* 面板相关尺寸变量 */
|
|
--min-panel-width: 180px;
|
|
--min-panel-height: 100px;
|
|
--min-panel-width-sm: 120px;
|
|
--min-panel-height-sm: 80px;
|
|
--panel-titlebar-height: 30px;
|
|
--panel-titlebar-height-collapsed: 45px;
|
|
--panel-separator-size: 8px;
|
|
--panel-border-radius: 2px;
|
|
|
|
/* 任务栏尺寸变量 */
|
|
--taskbar-height: 40px;
|
|
|
|
/* 动画过渡时间变量 */
|
|
--transition-fast: 0.2s ease;
|
|
--transition-normal: 0.3s ease;
|
|
--transition-slow: 0.5s ease;
|
|
--transition-custom: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
/* 滚动条尺寸 */
|
|
--scrollbar-width: 6px;
|
|
--scrollbar-height: 6px;
|
|
|
|
/* 字体变量 */
|
|
--font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
--font-family-mono: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', Consolas, 'Courier New', monospace;
|
|
--font-size-xs: 10px;
|
|
--font-size-sm: 12px;
|
|
--font-size-base: 14px;
|
|
--font-size-lg: 16px;
|
|
|
|
/* 间距变量 */
|
|
--spacing-xs: 2px;
|
|
--spacing-sm: 4px;
|
|
--spacing-md: 8px;
|
|
--spacing-lg: 12px;
|
|
--spacing-xl: 16px;
|
|
|
|
/* Z-index层级变量 */
|
|
--z-index-base: 1;
|
|
--z-index-panel: 10;
|
|
--z-index-dock-preview: 40;
|
|
--z-index-taskbar: 50;
|
|
--z-index-context-menu: 100;
|
|
} |