This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/hosts/pinix/localServices/gitserver/cgit.css
pijukka 3d8194fc7d host(pinix): show snapshot downloads and clone URL in cgit
cgit has no download tab; snapshot links only appear on the commit page
(hidden here) and for tags (none exist). A small inline script in
head.html adds tar.gz/zip for the selected branch to the tab bar and
shows the SSH clone URL from cgit's own vcs-git link.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JGodmgtRqahbT52gApsM8N
2026-09-14 13:39:28 +02:00

110 lines
1.9 KiB
CSS

/*
* Ergaenzt cgit.css (wird danach geladen, ueber head.html). Ziel: nur Code
* lesen und herunterladen. Log-, Commit- und Diff-Seiten bleiben per URL
* erreichbar, stehen aber nicht mehr in der Navigation.
*/
body {
margin: 0;
padding: 1.5rem;
background: #fbfbfa;
color: #1f2328;
}
div#cgit {
max-width: 72rem;
margin: 0 auto;
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
font-size: 15px;
}
a {
color: #0b57b3;
}
/* Kopf: Titel ja, Logo und Suchfeld nein. */
table#header td.logo,
table.tabs td.form,
div.footer {
display: none;
}
table#header td.main {
font-size: 1.5em;
font-weight: 600;
}
/* Navigation auf Lesen und Herunterladen reduziert. */
table.tabs a[href*="/log/"],
table.tabs a[href*="/commit/"],
table.tabs a[href*="/diff/"],
table.tabs a[href*="/stats/"] {
display: none;
}
table.tabs td a {
padding: 0.3em 0.8em;
border-radius: 4px 4px 0 0;
}
table.tabs td a.active {
background: #eef1f4;
color: #1f2328;
}
div.content {
border-bottom: none;
}
/* Download und Clone aus head.html. */
span.pinix-download {
margin-left: 1.5em;
}
span.pinix-download a {
margin-left: 0.4em;
padding: 0.25em 0.7em;
border: 1px solid #c9d1d9;
border-radius: 999px;
color: #1f2328;
}
span.pinix-download a:hover {
background: #eef1f4;
text-decoration: none;
}
div.pinix-clone {
margin: 0.6em 0 0.2em;
color: #57606a;
font-size: 0.9em;
}
div.pinix-clone code {
margin-left: 0.4em;
padding: 0.15em 0.5em;
background: #eef1f4;
border-radius: 4px;
user-select: all;
}
/* Code und README ruhig und gut lesbar. */
pre,
table.blob td.lines pre,
table.blob td.linenumbers pre {
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
font-size: 13px;
line-height: 1.55;
}
pre.readme {
white-space: pre-wrap;
background: #fff;
border: 1px solid #e3e6ea;
border-radius: 6px;
padding: 1rem 1.25rem;
}
table.list tr:hover {
background: #f1f3f5;
}