summaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-08 10:00:20 +0200
committerDanilo M. <danix@danix.xyz>2026-05-08 10:00:20 +0200
commit16be7b046b8c10cefa3fbc5a1883d73cfc627a01 (patch)
tree958d63743e2630cf5a9c78a398e2a83b49826550 /cgit.css
parentcb09e76adc9d09765b3c3e19e0c2ee32c480c2fd (diff)
downloadcgit-theme-danix-16be7b046b8c10cefa3fbc5a1883d73cfc627a01.tar.gz
cgit-theme-danix-16be7b046b8c10cefa3fbc5a1883d73cfc627a01.zip
feat: add welcome text to index page via root-readme
Inject site-desc.html on the repo list page using cgit's root-readme option. Mirrors the welcome text and signature from the gitweb theme.
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css40
1 files changed, 40 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 8f1085c..9114f17 100644
--- a/cgit.css
+++ b/cgit.css
@@ -352,6 +352,46 @@ div.content {
}
/* =============================================================
+ SITE DESCRIPTION (index page, root-readme)
+ ============================================================= */
+
+div.site-desc {
+ max-width: 680px;
+ margin: 2rem auto 2.5rem;
+ padding: 0 1rem;
+ color: var(--text);
+ font-family: 'IBM Plex Sans', sans-serif;
+ font-size: 0.95rem;
+ line-height: 1.7;
+}
+
+div.site-desc h2 {
+ font-family: 'Oxanium', sans-serif;
+ font-size: 1.4rem;
+ color: var(--accent);
+ margin-bottom: 0.75rem;
+}
+
+div.site-desc a {
+ color: var(--accent2);
+ text-decoration: none;
+}
+
+div.site-desc a:hover {
+ text-decoration: underline;
+ opacity: 1;
+}
+
+div.site-desc .welcome-close {
+ color: var(--text-dim);
+ font-style: italic;
+}
+
+div.site-desc .signature-wrap {
+ margin-top: 1rem;
+}
+
+/* =============================================================
REPO LIST PAGE
============================================================= */