An ultra-lightweight, low-RAM PHP file browser for bare Git repositories
:root { --bg-color: #f8fafc; --card-bg: #ffffff; --text-main: #0f172a; --text-muted: #64748b; --primary: #005293; --primary-hover: #006ec4; --border: #e2e8f0; --font-mono: "JetBrains Mono", monospace;}* { box-sizing: border-box; margin: 0; padding: 0;}body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.5; padding: 3rem 1rem;}.container { width: 100%; max-width: 1200px; /* Widened slightly to accommodate side-by-side grid cards better */ margin: 0 auto;}/* Header is flat at the top of the canvas */header { margin-bottom: 2.5rem;}header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text-main);}header p.subtitle { color: var(--text-muted); font-size: 1rem;}/* -------------------------------------- * Repository Grid Layout (Responsive) * -------------------------------------- */.repo-list { display: grid; /* Automatically creates columns that are at least 320px wide. If the screen is smaller (mobile), it falls back to a single column. */ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;}.repo-card { display: flex; flex-direction: column; padding: 1.75rem; background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 2px solid var(--border); transition: all 0.2s ease; color: inherit; text-decoration: none; height: 100%; /* Ensures all cards in a row match heights perfectly */}/* Hover functionality using your link/border specs */.repo-card:hover { border-color: var(--primary); background-color: #eff6ff; transform: translateY(-2px);}.repo-card h2 { color: var(--primary); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.5rem; transition: color 0.2s ease;}.repo-card:hover h2 { color: var(--primary-hover);}.repo-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem;}/* Clone Box Inside Cards */.clone-box { display: flex; flex-direction: column; gap: 0.35rem; margin-top: auto; /* Pushes the clone tools to the bottom so cards look uniform */}.clone-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700;}.clone-input-wrapper { display: flex; background-color: var(--bg-color); border: 1px solid var(--border); border-radius: 6px; overflow: hidden;}.clone-url { font-family: var(--font-mono); font-size: 0.8rem; padding: 0.6rem 0.75rem; background: transparent; color: var(--text-main); border: none; width: 100%; outline: none;}