From 16be7b046b8c10cefa3fbc5a1883d73cfc627a01 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 8 May 2026 10:00:20 +0200 Subject: 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. --- cgit.css | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'cgit.css') diff --git a/cgit.css b/cgit.css index 8f1085c..9114f17 100644 --- a/cgit.css +++ b/cgit.css @@ -351,6 +351,46 @@ div.content { width: 100%; } +/* ============================================================= + 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 ============================================================= */ -- cgit v1.2.3