:root { --color-bg-page: #0d1117; --color-bg-card: #161b22; --color-bg-card-hover: #1c2128; --color-border: #21262d; --color-border-muted: #30363d; --color-text: #e6edf3; --color-text-muted: #8b949e; --color-text-subtle: #6e7681; --color-text-faint: #484f58; --color-accent: #58a6ff; --color-accent-subtle: #58a6ff11; --color-accent-shadow: #58a6ff1a; --color-success: #238636; --color-success-hover: #2ea043; --color-white: #fff; /* Spacing */ --space-xl: 80px; --space-lg: 24px; --space-md: 20px; --space-sm: 16px; --space-xs: 12px; --space-2xs: 10px; /* Border radius */ --radius-lg: 12px; --radius-md: 8px; --radius-sm: 4px; /* Font sizes */ --text-hero: 3rem; --text-heading: 1.5rem; --text-btn: 0.95rem; --text-base: 0.875rem; --text-sm: 0.8rem; --text-xs: 0.75rem; } /* override gitea defaults */ .page-content > :first-child:not(.secondary-nav) { margin-top: 0 !important; margin: 0 !important; } #alex-landing { min-height: 100vh; background: var(--color-bg-page); color: var(--color-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; } /* Hero */ .hero { display: flex; justify-content: center; align-items: center; padding-top: var(--space-xl); padding-right: var(--space-lg); padding-bottom: 60px; padding-left: var(--space-lg); text-align: center; } .hero-inner { max-width: 640px; } .hero h1 { font-size: var(--text-hero); font-weight: 800; margin: 0 0 var(--space-xs); background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Projects section */ .projects-section { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-lg) var(--space-xl); } .section-header { margin-bottom: var(--space-lg); display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; } .section-header h2 { font-size: var(--text-heading); font-weight: 700; margin: 0; color: var(--color-text); } /* Grid */ .repo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-sm); } /* Skeleton loaders */ .skeleton-card { height: 160px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-border) 50%, var(--color-bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* Repo cards */ .repo-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: var(--space-2xs); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; cursor: pointer; } .repo-card:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: 0 8px 24px var(--color-accent-shadow); } .repo-card-header { display: flex; align-items: center; gap: var(--space-2xs); } .repo-icon { font-size: 1.1rem; flex-shrink: 0; } .repo-name { font-size: 1rem; font-weight: 600; color: var(--color-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .repo-private { font-size: 0.7rem; background: var(--color-border); border: 1px solid var(--color-border-muted); border-radius: var(--radius-sm); padding: 1px 6px; color: var(--color-text-muted); flex-shrink: 0; } .repo-desc { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.5; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .repo-commit { font-size: var(--text-sm); color: var(--color-text-subtle); border-top: 1px solid var(--color-border); padding-top: var(--space-2xs); display: flex; align-items: center; gap: 6px; overflow: hidden; } .commit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); flex-shrink: 0; } .commit-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .commit-time { color: var(--color-text-faint); flex-shrink: 0; } .repo-meta { display: flex; gap: 14px; font-size: var(--text-sm); color: var(--color-text-subtle); } .repo-meta span { display: flex; align-items: center; gap: 4px; } /* Error state */ .error-msg { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--color-text-muted); font-size: var(--text-btn); } /* Activity section */ .activity-section { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-lg) var(--space-xl); } .view-all-link { font-size: 0.85rem; color: var(--color-accent); text-decoration: none; margin-left: auto; } .view-all-link:hover { text-decoration: underline; } .activity-feed { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; } .skeleton-activity { height: 52px; background: linear-gradient(90deg, var(--color-bg-card) 25%, var(--color-border) 50%, var(--color-bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-top: 1px solid var(--color-bg-page); } .skeleton-activity:first-child { border-top: none; } .activity-item { display: flex; align-items: flex-start; gap: var(--space-xs); padding: var(--space-sm) var(--space-sm); background: var(--color-bg-card); border-top: 1px solid var(--color-border); font-size: var(--text-base); transition: background 0.15s; } .activity-item:first-child { border-top: none; } .activity-item:hover { background: var(--color-bg-card-hover); } .activity-op-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-border); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); margin-top: 2px; } .activity-body { flex: 1; min-width: 0; } .activity-headline-row { display: flex; align-items: baseline; gap: var(--space-xs); min-width: 0; } .activity-headline { color: var(--color-text); line-height: 1.5; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .activity-headline a { color: var(--color-accent); text-decoration: none; font-weight: 500; } .activity-headline a:hover { text-decoration: underline; } .activity-commits { margin-top: 5px; display: flex; flex-direction: column; gap: 3px; padding-left: 2px; } .activity-commit-line { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-muted); overflow: hidden; } .activity-commit-sha { font-family: monospace; font-size: var(--text-xs); color: var(--color-text-subtle); background: var(--color-border); border-radius: var(--radius-sm); padding: 1px 5px; flex-shrink: 0; text-decoration: none; } .activity-commit-sha:hover { color: var(--color-accent); text-decoration: none; } .activity-commit-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); } .activity-time { flex-shrink: 0; font-size: 0.75rem; color: var(--color-text-faint); white-space: nowrap; padding-top: 3px; }