stagit

static git page - forked from https://git.codemadness.org/stagit
git clone git://src.gearsix.net/stagitstagit.zip
Log | Files | Refs | Atom | README | LICENSE

commit c9917b1e795773bf9c90ccce48d510fd0d307a5f
parent 580956c405a2ceba28271090cde3cd19dfe1f037
Author: gearsix <gearsix@tuta.io>
Date:   Wed, 19 Feb 2025 20:35:39 +0000

stagit: logo spans over all rows of header table; bigger size

Diffstat:
Mstagit-index.c | 5+++--
Mstagit.c | 10+++++-----
Mstyle-gearsix.css | 14+++++++-------
3 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -108,8 +108,9 @@ writeheader(FILE *fp) fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", rootpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", rootpath); fputs("</head><body>\n", fp); - fprintf(fp, "<table>\n<tr><td id=\"logo\"><img src=\"%slogo.png\" alt=\"\" width=\"50\" height=\"50\" /></td>\n" - "<td><h2>%s</h2>", rootpath, description); + fprintf(fp, "<table>\n<tr>" + "<td id=\"logo\"><img src=\"%slogo.png\" alt=\"\" width=\"75px\" height=\"75px\" /></td>\n" + "<td><h2>%s</h2>", rootpath, description); if (contact && strlen(contact) > 0) { int c = strlen(contact)-1; fprintf(fp, "<span class=\"contact\"><b>contact:</b> "); diff --git a/stagit.c b/stagit.c @@ -521,8 +521,8 @@ writeheader(FILE *fp, const char *title) xmlencode(fp, name, strlen(name)); fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath); fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", rootpath); - fputs("</head>\n<body>\n<table><tr><td id=\"logo\">", fp); - fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"50\" height=\"50\" /></a>", + fputs("</head>\n<body>\n<table><tr><td id=\"logo\" rowspan=3>", fp); + fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"75px\" height=\"75px\" /></a>", relpath, rootpath); fputs("</td><td><h1>", fp); xmlencode(fp, strippedname, strlen(strippedname)); @@ -531,13 +531,13 @@ writeheader(FILE *fp, const char *title) fputs(forked, fp); fputs("</span></td></tr>", fp); if (cloneurl[0]) { - fputs("<tr class=\"url\"><td></td><td>git clone <a href=\"", fp); + fputs("<tr class=\"url\"><td>git clone <a href=\"", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); /* not percent-encoded */ fputs("\">", fp); xmlencode(fp, cloneurl, strlen(cloneurl)); fputs("</a></td></tr>", fp); } - fputs("<tr><td></td><td>\n", fp); + fputs("<tr><td>\n", fp); fprintf(fp, "<a href=\"%slog.html\">Log</a> | ", relpath); fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath); fprintf(fp, "<a href=\"%srefs.html\">Refs</a> | ", relpath); @@ -850,7 +850,7 @@ err: git_revwalk_free(w); if (nlogcommits == 0 && remcommits != 0) { - fprintf(fp, "<tr><td></td><td colspan=\"5\">" + fprintf(fp, "<tr><td colspan=\"5\">" "%zu more commits remaining, fetch the repository" "</td></tr>\n", remcommits); } diff --git a/style-gearsix.css b/style-gearsix.css @@ -15,17 +15,20 @@ a:hover { h1, h2 { margin: 0; } -#logo { - vertical-align: bottom; -} hr { border-top: 0; border-bottom: dashed 1px white; } +table { + padding-bottom: 1em; +} table td { padding: 0 1em; max-width: 60vw; - vertical-align: top; + vertical-align: middle; +} +td #contact { + vertical-algin: middle; } #content table tr:hover { background-color: #333; @@ -36,6 +39,3 @@ pre { .line { text-decoration: none; } -details { - margin-bottom: 2em; -}