初始化提交
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
Some checks failed
CI / Check / macos-latest (push) Has been cancelled
CI / Check / ubuntu-latest (push) Has been cancelled
CI / Check / windows-latest (push) Has been cancelled
CI / Test / macos-latest (push) Has been cancelled
CI / Test / ubuntu-latest (push) Has been cancelled
CI / Test / windows-latest (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Security Audit (push) Has been cancelled
CI / Secrets Scan (push) Has been cancelled
CI / Install Script Smoke Test (push) Has been cancelled
This commit is contained in:
3075
crates/openfang-api/static/css/components.css
Normal file
3075
crates/openfang-api/static/css/components.css
Normal file
File diff suppressed because it is too large
Load Diff
309
crates/openfang-api/static/css/layout.css
Normal file
309
crates/openfang-api/static/css/layout.css
Normal file
@@ -0,0 +1,309 @@
|
||||
/* OpenFang Layout — Grid + Sidebar + Responsive */
|
||||
|
||||
.app-layout {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Sidebar */
|
||||
.sidebar {
|
||||
width: var(--sidebar-width);
|
||||
background: var(--bg-primary);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
transition: width var(--transition-normal);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.sidebar.collapsed {
|
||||
width: var(--sidebar-collapsed);
|
||||
}
|
||||
|
||||
.sidebar.collapsed .sidebar-label,
|
||||
.sidebar.collapsed .sidebar-header-text,
|
||||
.sidebar.collapsed .nav-label { display: none; }
|
||||
|
||||
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px 0; }
|
||||
|
||||
.sidebar-header {
|
||||
padding: 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 60px;
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.sidebar-logo img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.2s, transform 0.2s;
|
||||
}
|
||||
|
||||
.sidebar-logo img:hover {
|
||||
opacity: 1;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.sidebar-header h1 {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
letter-spacing: 3px;
|
||||
font-family: var(--font-mono);
|
||||
}
|
||||
|
||||
.sidebar-header .version {
|
||||
font-size: 9px;
|
||||
color: var(--text-muted);
|
||||
margin-top: 1px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.sidebar-status {
|
||||
font-size: 11px;
|
||||
color: var(--success);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 8px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.sidebar-status.offline { color: var(--error); }
|
||||
|
||||
.status-dot {
|
||||
width: 6px; height: 6px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 0 6px currentColor;
|
||||
}
|
||||
|
||||
.conn-badge {
|
||||
font-size: 9px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 3px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
margin-left: auto;
|
||||
}
|
||||
.conn-badge.ws { background: var(--success); color: #000; }
|
||||
.conn-badge.http { background: var(--warning); color: #000; }
|
||||
|
||||
/* Navigation */
|
||||
.sidebar-nav {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 8px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.sidebar-nav::-webkit-scrollbar { width: 0; }
|
||||
|
||||
.nav-section {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.nav-section-title {
|
||||
font-size: 9px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1.5px;
|
||||
color: var(--text-muted);
|
||||
padding: 12px 12px 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sidebar.collapsed .nav-section-title { display: none; }
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 9px 12px;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
color: var(--text-dim);
|
||||
transition: all var(--transition-fast);
|
||||
text-decoration: none;
|
||||
border: 1px solid transparent;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.nav-item:hover {
|
||||
background: var(--surface2);
|
||||
color: var(--text);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.nav-item.active {
|
||||
background: var(--accent);
|
||||
color: var(--bg-primary);
|
||||
font-weight: 600;
|
||||
box-shadow: var(--shadow-sm), 0 2px 8px rgba(255, 92, 0, 0.2);
|
||||
}
|
||||
|
||||
.nav-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.nav-icon svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
/* Sidebar toggle button */
|
||||
.sidebar-toggle {
|
||||
padding: 10px 16px;
|
||||
border-top: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
transition: color var(--transition-fast);
|
||||
}
|
||||
|
||||
.sidebar-toggle:hover { color: var(--text); }
|
||||
|
||||
/* Main content area */
|
||||
.main-content {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
/* Page wrapper divs (rendered by x-if) must fill the column
|
||||
and be flex containers so .page-body can scroll. */
|
||||
.main-content > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 14px 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: var(--header-height);
|
||||
}
|
||||
|
||||
.page-header h2 {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.page-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
/* Mobile overlay */
|
||||
.sidebar-overlay {
|
||||
display: none;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,0.6);
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
/* Wide desktop — larger card grids */
|
||||
@media (min-width: 1400px) {
|
||||
.card-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
|
||||
}
|
||||
|
||||
/* Responsive — tablet breakpoint */
|
||||
@media (max-width: 1024px) {
|
||||
.card-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
|
||||
.security-grid { grid-template-columns: 1fr; }
|
||||
.cost-charts-row { grid-template-columns: 1fr; }
|
||||
.overview-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
|
||||
.page-body { padding: 16px; }
|
||||
}
|
||||
|
||||
/* Responsive — mobile breakpoint */
|
||||
@media (max-width: 768px) {
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
left: -300px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
transition: left var(--transition-normal);
|
||||
}
|
||||
.sidebar.mobile-open {
|
||||
left: 0;
|
||||
}
|
||||
.sidebar.mobile-open + .sidebar-overlay {
|
||||
display: block;
|
||||
}
|
||||
.sidebar.collapsed {
|
||||
width: var(--sidebar-width);
|
||||
left: -300px;
|
||||
}
|
||||
.mobile-menu-btn { display: flex !important; }
|
||||
}
|
||||
|
||||
@media (min-width: 769px) {
|
||||
.mobile-menu-btn { display: none !important; }
|
||||
}
|
||||
|
||||
/* Mobile small screen */
|
||||
@media (max-width: 480px) {
|
||||
.page-header { flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 16px; }
|
||||
.page-body { padding: 12px; }
|
||||
.stats-row { flex-wrap: wrap; }
|
||||
.stat-card { min-width: 80px; flex: 1 1 40%; }
|
||||
.stat-card-lg { min-width: 80px; flex: 1 1 40%; padding: 12px; }
|
||||
.stat-card-lg .stat-value { font-size: 22px; }
|
||||
.card-grid { grid-template-columns: 1fr; }
|
||||
.overview-grid { grid-template-columns: 1fr; }
|
||||
.input-area { padding: 8px 12px; }
|
||||
.main-content { padding: 0; }
|
||||
.table-wrap { font-size: 10px; }
|
||||
.modal { margin: 8px; max-height: calc(100vh - 16px); }
|
||||
}
|
||||
|
||||
/* Touch-friendly tap targets */
|
||||
@media (pointer: coarse) {
|
||||
.btn { min-height: 44px; min-width: 44px; }
|
||||
.nav-item { min-height: 44px; }
|
||||
.form-input, .form-select, .form-textarea { min-height: 44px; }
|
||||
.toggle { min-width: 44px; min-height: 28px; }
|
||||
}
|
||||
|
||||
/* Focus mode — hide sidebar for distraction-free chat */
|
||||
.app-layout.focus-mode .sidebar { display: none; }
|
||||
.app-layout.focus-mode .sidebar-overlay { display: none; }
|
||||
.app-layout.focus-mode .main-content { max-width: 100%; margin-left: 0; }
|
||||
.app-layout.focus-mode .mobile-menu-btn { display: none !important; }
|
||||
276
crates/openfang-api/static/css/theme.css
Normal file
276
crates/openfang-api/static/css/theme.css
Normal file
@@ -0,0 +1,276 @@
|
||||
/* OpenFang Theme — Premium design system */
|
||||
|
||||
/* Font imports in index_head.html: Inter (body) + Geist Mono (code) */
|
||||
|
||||
[data-theme="light"], :root {
|
||||
/* Backgrounds — layered depth */
|
||||
--bg: #F5F4F2;
|
||||
--bg-primary: #EDECEB;
|
||||
--bg-elevated: #F8F7F6;
|
||||
--surface: #FFFFFF;
|
||||
--surface2: #F0EEEC;
|
||||
--surface3: #E8E6E3;
|
||||
--border: #D5D2CF;
|
||||
--border-light: #C8C4C0;
|
||||
--border-subtle: #E0DEDA;
|
||||
|
||||
/* Text hierarchy */
|
||||
--text: #1A1817;
|
||||
--text-secondary: #3D3935;
|
||||
--text-dim: #6B6560;
|
||||
--text-muted: #9A958F;
|
||||
|
||||
/* Brand — Orange accent */
|
||||
--accent: #FF5C00;
|
||||
--accent-light: #FF7A2E;
|
||||
--accent-dim: #E05200;
|
||||
--accent-glow: rgba(255, 92, 0, 0.1);
|
||||
--accent-subtle: rgba(255, 92, 0, 0.05);
|
||||
|
||||
/* Status colors */
|
||||
--success: #22C55E;
|
||||
--success-dim: #16A34A;
|
||||
--success-subtle: rgba(34, 197, 94, 0.08);
|
||||
--error: #EF4444;
|
||||
--error-dim: #DC2626;
|
||||
--error-subtle: rgba(239, 68, 68, 0.06);
|
||||
--warning: #F59E0B;
|
||||
--warning-dim: #D97706;
|
||||
--warning-subtle: rgba(245, 158, 11, 0.08);
|
||||
--info: #3B82F6;
|
||||
--info-dim: #2563EB;
|
||||
--info-subtle: rgba(59, 130, 246, 0.06);
|
||||
--success-muted: rgba(34, 197, 94, 0.15);
|
||||
--error-muted: rgba(239, 68, 68, 0.15);
|
||||
--warning-muted: rgba(245, 158, 11, 0.15);
|
||||
--info-muted: rgba(59, 130, 246, 0.15);
|
||||
--border-strong: #B0ACA8;
|
||||
--card-highlight: rgba(0, 0, 0, 0.02);
|
||||
|
||||
/* Chat-specific */
|
||||
--agent-bg: #F5F4F2;
|
||||
--user-bg: #FFF3E6;
|
||||
|
||||
/* Layout */
|
||||
--sidebar-width: 240px;
|
||||
--sidebar-collapsed: 56px;
|
||||
--header-height: 48px;
|
||||
|
||||
/* Radius — slightly larger for premium feel */
|
||||
--radius-xs: 4px;
|
||||
--radius-sm: 6px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
|
||||
/* Shadows — 6-level depth system */
|
||||
--shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
|
||||
--shadow-lg: 0 12px 28px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
|
||||
--shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
|
||||
--shadow-glow: 0 0 40px rgba(0,0,0,0.05);
|
||||
--shadow-accent: 0 4px 16px rgba(255, 92, 0, 0.12);
|
||||
--shadow-inset: inset 0 1px 0 rgba(255,255,255,0.5);
|
||||
|
||||
/* Typography — dual font system */
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
||||
--font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
|
||||
|
||||
/* Motion — spring curves for premium feel */
|
||||
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
--ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
||||
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
||||
--transition-fast: 0.15s var(--ease-smooth);
|
||||
--transition-normal: 0.25s var(--ease-smooth);
|
||||
--transition-spring: 0.4s var(--ease-spring);
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
--bg: #080706;
|
||||
--bg-primary: #0F0E0E;
|
||||
--bg-elevated: #161413;
|
||||
--surface: #1F1D1C;
|
||||
--surface2: #2A2725;
|
||||
--surface3: #1A1817;
|
||||
--border: #2D2A28;
|
||||
--border-light: #3D3A38;
|
||||
--border-subtle: #232120;
|
||||
--text: #F0EFEE;
|
||||
--text-secondary: #C4C0BC;
|
||||
--text-dim: #8A8380;
|
||||
--text-muted: #5C5754;
|
||||
--accent: #FF5C00;
|
||||
--accent-light: #FF7A2E;
|
||||
--accent-dim: #E05200;
|
||||
--accent-glow: rgba(255, 92, 0, 0.15);
|
||||
--accent-subtle: rgba(255, 92, 0, 0.08);
|
||||
--success: #4ADE80;
|
||||
--success-dim: #22C55E;
|
||||
--success-subtle: rgba(74, 222, 128, 0.1);
|
||||
--error: #EF4444;
|
||||
--error-dim: #B91C1C;
|
||||
--error-subtle: rgba(239, 68, 68, 0.1);
|
||||
--warning: #F59E0B;
|
||||
--warning-dim: #D97706;
|
||||
--warning-subtle: rgba(245, 158, 11, 0.1);
|
||||
--info: #3B82F6;
|
||||
--info-dim: #2563EB;
|
||||
--info-subtle: rgba(59, 130, 246, 0.1);
|
||||
--success-muted: rgba(74, 222, 128, 0.25);
|
||||
--error-muted: rgba(239, 68, 68, 0.25);
|
||||
--warning-muted: rgba(245, 158, 11, 0.25);
|
||||
--info-muted: rgba(59, 130, 246, 0.25);
|
||||
--border-strong: #4A4644;
|
||||
--card-highlight: rgba(255, 255, 255, 0.04);
|
||||
--agent-bg: #1A1817;
|
||||
--user-bg: #2A1A08;
|
||||
--shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
|
||||
--shadow-lg: 0 12px 28px rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.3);
|
||||
--shadow-xl: 0 20px 40px rgba(0,0,0,0.4), 0 8px 16px rgba(0,0,0,0.3);
|
||||
--shadow-glow: 0 0 80px rgba(0,0,0,0.6);
|
||||
--shadow-accent: 0 4px 16px rgba(255, 92, 0, 0.2);
|
||||
--shadow-inset: inset 0 1px 0 rgba(255,255,255,0.03);
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
/* Mono text utility — only for code/data */
|
||||
.font-mono, code, pre, .tool-pre, .tool-card-name, .detail-value,
|
||||
.stat-value, .conn-badge, .version { font-family: var(--font-mono); }
|
||||
|
||||
/* Scrollbar — Webkit (Chrome, Edge, Safari) */
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
|
||||
|
||||
/* Scrollbar — Firefox */
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border) transparent;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: var(--accent);
|
||||
color: var(--bg-primary);
|
||||
}
|
||||
|
||||
/* Theme transition — smooth switch between light/dark */
|
||||
body {
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
.sidebar, .main-content, .card, .modal, .tool-card, .toast, .page-header {
|
||||
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
/* Tighter letter spacing for headings */
|
||||
h1, h2, h3, .card-header, .stat-value, .page-header h2 { letter-spacing: -0.02em; }
|
||||
.nav-section-title, .badge, th { letter-spacing: 0.04em; }
|
||||
|
||||
/* Focus styles — accessible double-ring with glow */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
box-shadow: 0 0 0 4px var(--accent-glow);
|
||||
}
|
||||
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
box-shadow: 0 0 0 4px var(--accent-glow);
|
||||
}
|
||||
|
||||
/* Entrance animations */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from { opacity: 0; transform: translateY(8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes slideDown {
|
||||
from { opacity: 0; transform: translateY(-8px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
@keyframes scaleIn {
|
||||
from { opacity: 0; transform: scale(0.95); }
|
||||
to { opacity: 1; transform: scale(1); }
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
0% { background-position: -200% 0; }
|
||||
100% { background-position: 200% 0; }
|
||||
}
|
||||
|
||||
@keyframes pulse-ring {
|
||||
0% { box-shadow: 0 0 0 0 currentColor; }
|
||||
70% { box-shadow: 0 0 0 4px transparent; }
|
||||
100% { box-shadow: 0 0 0 0 transparent; }
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* Staggered card entry animation */
|
||||
@keyframes cardEntry {
|
||||
from { opacity: 0; transform: translateY(12px) scale(0.98); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
.animate-entry { animation: cardEntry 0.35s var(--ease-spring) both; }
|
||||
.stagger-1 { animation-delay: 0.05s; }
|
||||
.stagger-2 { animation-delay: 0.10s; }
|
||||
.stagger-3 { animation-delay: 0.15s; }
|
||||
.stagger-4 { animation-delay: 0.20s; }
|
||||
.stagger-5 { animation-delay: 0.25s; }
|
||||
.stagger-6 { animation-delay: 0.30s; }
|
||||
|
||||
/* Skeleton loading animation */
|
||||
.skeleton {
|
||||
background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
|
||||
background-size: 200% 100%;
|
||||
animation: shimmer 1.5s ease-in-out infinite;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.skeleton-text { height: 14px; margin-bottom: 8px; }
|
||||
.skeleton-text:last-child { width: 60%; }
|
||||
.skeleton-heading { height: 20px; width: 40%; margin-bottom: 12px; }
|
||||
.skeleton-card { height: 100px; border-radius: var(--radius-lg); }
|
||||
.skeleton-avatar { width: 32px; height: 32px; border-radius: 50%; }
|
||||
|
||||
/* Print styles */
|
||||
@media print {
|
||||
.sidebar, .sidebar-overlay, .mobile-menu-btn, .toast-container, .btn { display: none !important; }
|
||||
.main-content { margin: 0; max-width: 100%; }
|
||||
body { background: #fff; color: #000; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user