diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-07 20:48:59 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-07 20:48:59 +0200 |
| commit | cb09e76adc9d09765b3c3e19e0c2ee32c480c2fd (patch) | |
| tree | 63388b43ddfbe3f1f0baf55ab2029416b67cd195 /cgit.css | |
| parent | fb4dc0ca40de143ac92f73936b60d7679c8337f7 (diff) | |
| download | cgit-theme-danix-cb09e76adc9d09765b3c3e19e0c2ee32c480c2fd.tar.gz cgit-theme-danix-cb09e76adc9d09765b3c3e19e0c2ee32c480c2fd.zip | |
fix(css): widen content area and fix repo link pills
- max-width 980px → 1200px reduces side whitespace on wider monitors
- add td a.button selector: cgit uses class="button" not td.link for
summary/log/tree links; old selector never matched live HTML
- increase pill margin/padding for visible separation between links
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cgit.css')
| -rw-r--r-- | cgit.css | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -344,7 +344,7 @@ div.path a:hover { ============================================================= */ div.content { - max-width: 980px; + max-width: 1200px; margin: 0 auto; padding: 32px 24px; flex: 1; @@ -466,18 +466,21 @@ table.list td.ls-size { white-space: nowrap; } +table.list td a.button, table.list td.link a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); border: 1px solid var(--border); - border-radius: 3px; - padding: 2px 7px; - margin-left: 4px; + border-radius: 4px; + padding: 2px 8px; + margin-left: 6px; + display: inline-block; text-decoration: none; transition: border-color 0.15s, color 0.15s; } +table.list td a.button:hover, table.list td.link a:hover { border-color: var(--accent); color: var(--accent); |
