commit 2bdb11b40149ed8d3fab69c5c82704e86693e5da
parent 3f9b024cf6965a4767cb9547de4a24a1db33202d
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sun, 5 Apr 2020 12:24:26 -0500
Update style
Diffstat:
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 {