commit - 5b03c877b9cd40f4c0d4b0aba35a4ba29de1d60a
commit + 6fc9f9354f44f9b03d0405938c3d69d5004a4b77
blob - 1d772a264674a3065974c30b81e7c124a0a99fa0
blob + 506186669950e6df8c2fc9495a0495690f65d822
--- stagit-index.c
+++ stagit-index.c
"<title>", fp);
xmlencode(fp, description, strlen(description));
fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
- fprintf(fp, "%s", "<style>*{box-sizing:border-box;-webkit-text-size-adjust:100%;}body{font-family:sans-serif;font-size:14px;margin:0;padding:10px;}h1{margin:0;}#content{overflow-x:auto;}#content table{min-width:900px;width:100%;}pre{overflow:scroll;}</style>");
+ fprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://stagit.btxx.org/style.css\" />\n", fp);
fputs("</head>\n<body>\n", fp);
fprintf(fp, "%s", "<table>\n<tr><td><span class=\"desc\">");
xmlencode(fp, description, strlen(description));
blob - aba5cfcc10a9554d7cfc878d88acb4052fbf7907
blob + f66a1ce449e2832b8c1b47d85e38478d02f10c4e
--- stagit.c
+++ stagit.c
fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
xmlencode(fp, name, strlen(name));
fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
- fprintf(fp, "%s", "<style>*{box-sizing:border-box;}body{font-family:sans-serif;font-size:14px;margin:0;padding:10px;}h1{margin:0;}#content{overflow-x:auto;}#content table{min-width:900px;width:100%;}pre{overflow:scroll;}</style>");
+ fprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://stagit.btxx.org/style.css\" />\n", fp);
fputs("</head>\n<body>\n<table>", fp);
fputs("<tr><td><h1>", fp);
xmlencode(fp, strippedname, strlen(strippedname));
blob - 8d162bcfe15ae3f6ee087c6bafc34f4304581215
blob + 5084f6a8f416a7cab91b023f9eddee2b6b2fe912
--- style.css
+++ style.css
+* {
+ box-sizing: border-box;
+ -webkit-text-size-adjust: 100%;
+}
body {
font-family: sans-serif;
+ font-size: 14px;
+ margin: 0;
+ padding: 10px;
}
-
-h1, h2, h3, h4, h5, h6 {
- font-size: 1em;
+h1 {
margin: 0;
}
-
-img, h1, h2 {
- vertical-align: middle;
+#content {
+ overflow-x: auto;
}
-
-img {
- border: 0;
+#content table {
+ min-width: 900px;
+ width: 100%;
}
-
-a:target {
- background-color: rgba(0,0,0,0.1);
-}
-
-a.d,
-a.h,
-a.i,
-a.line {
- text-decoration: none;
-}
-
-#blob a {
- color: #555;
-}
-
-#blob a:hover {
- text-decoration: none;
-}
-
-table thead td {
- font-weight: bold;
-}
-
-table td {
- padding: 0 0.4em;
-}
-
-#content table td {
- vertical-align: top;
- white-space: nowrap;
-}
-
-#branches tr:hover td,
-#tags tr:hover td,
-#index tr:hover td,
-#log tr:hover td,
-#files tr:hover td {
- background-color: rgba(0,0,0,0.1);
-}
-
-#index tr td:nth-child(2),
-#tags tr td:nth-child(3),
-#branches tr td:nth-child(3),
-#log tr td:nth-child(2) {
- white-space: normal;
-}
-
-td.num {
- text-align: right;
-}
-
-.desc {
- color: #555;
-}
-
-hr {
- border: 0;
- border-top: 1px solid #555;
- height: 1px;
-}
-
pre {
- font-family: monospace;
-}
-
-pre a.h {
- color: #00a;
-}
-
-.A,
-span.i,
-pre a.i {
- color: #070;
-}
-
-.D,
-span.d,
-pre a.d {
- color: #e00;
-}
-
-pre a.h:hover,
-pre a.i:hover,
-pre a.d:hover {
- text-decoration: none;
-}
-
-@media (prefers-color-scheme: dark) {
- hr {
- border-color: #222;
- }
- a:target {
- background-color: #222;
- }
- .desc {
- color: #aaa;
- }
- #blob a {
- color: #555;
- }
- #blob a:target {
- color: #eee;
- }
- #blob a:hover {
- color: #56c8ff;
- }
- pre a.h {
- color: #00cdcd;
- }
- .A,
- span.i,
- pre a.i {
- color: #00cd00;
- }
- .D,
- span.d,
- pre a.d {
- color: #cd0000;
- }
- #branches tr:hover td,
- #tags tr:hover td,
- #index tr:hover td,
- #log tr:hover td,
- #files tr:hover td {
- background-color: #111;
- }
-}
+ overflow: scroll;
+}
\ No newline at end of file