stagit

My fork of stagit

git clone git://git.shimmy1996.com/stagit.git
commit c6904e2d49ad0110da5b7feb7cbf4279349c7f4a
parent 5b8033b06d9da7d30089d186977490980f019653
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun,  5 Apr 2020 12:24:26 -0500

Update style

Diffstat:
Mstagit-index.c | 4++--
Mstyle.css | 15++++++++-------
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -74,9 +74,9 @@ writeheader(FILE *fp)
 	fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
 	fputs("</head>\n<body>\n<header>\n", fp);
     fprintf(fp, "<h1>%s</h1>\n", title);
-    fprintf(fp, "<p>");
+    fprintf(fp, "<p><em>");
 	xmlencode(fp, description, strlen(description));
-	fputs("</p>\n"
+	fputs("</em></p>\n"
 		"</header>\n<main>\n"
 		"<table id=\"index\"><thead><tr>\n"
 		"<th>Name</th><th>Description</th><th>Owner</th><th>Last commit</th>"
diff --git a/style.css b/style.css
@@ -11,14 +11,11 @@ table {
     margin: auto;
 }
 
-table td {
-    padding: 0 0.5em;
+td {
     vertical-align: top;
     white-space: nowrap;
-}
-
-tr:hover {
-    background-color: #eee;
+    border-top: 1px dotted;
+    padding: 2px 5px 1px 5px;
 }
 
 #index tr td:nth-child(2),
@@ -37,6 +34,10 @@ pre table {
     margin-left: 0;
 }
 
+pre td {
+    border: none;
+}
+
 pre {
     overflow-x: auto;
 }
@@ -46,7 +47,7 @@ a.d, a.h, a.i, a.line {
 }
 
 a:target {
-    border: dotted;
+    border: 1px dotted;
 }
 
 pre a.h {