commit 2abf8994dd3fea4a39de89c3036bc80c6d9fb5f8
parent bb7e3baade413f474af4c8e8a2cb27e3bf6219f3
Author: Dan Callaghan <djc@djc.id.au>
Date: Tue, 31 Mar 2026 22:18:52 +1100
move stagit styles into stylesheet.css
Diffstat:
2 files changed, 110 insertions(+), 154 deletions(-)
diff --git a/stylesheets/git.css b/stylesheets/git.css
@@ -1,153 +0,0 @@
-body {
- background: #151515 url("/images/bkg.png") 0 0;
- color: #eaeaea;
- font-size: 16px;
- line-height: 1.5;
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
-}
-h1, h2, h3, h4, h5, h6 {
- font-weight: normal;
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
- color: #b5e853;
- letter-spacing: -0.03em;
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
- 0 0 5px rgba(181, 232, 83, 0.1),
- 0 0 10px rgba(181, 232, 83, 0.1);
-}
-
-header {
- background: rgba(0, 0, 0, 0.1);
- width: 100%;
- border-bottom: 1px dashed #b5e853;
- padding: 0 0 40px 0;
- margin: 0 0 40px 0;
-}
-
-header h1 {
- font-size: 30px;
- line-height: 1.5;
- margin: 0;
- font-weight: bold;
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
- color: #b5e853;
- text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
- 0 0 5px rgba(181, 232, 83, 0.1),
- 0 0 10px rgba(181, 232, 83, 0.1);
- letter-spacing: -1px;
- -webkit-font-smoothing: antialiased;
-}
-header .desc, header .url {
- font-size: 18px;
- font-weight: 300;
- color: #888;
-}
-.url:before {
- content: "$ ";
-}
-
-nav {
- margin-top: 20px;
-}
-
-main {
- max-width: 1400px;
-}
-
-b {
- font-weight: 300;
- color: #888;
-}
-
-a:target {
- background-color: #333;
-}
-a.d,
-a.h,
-a.i,
-a.line {
- text-decoration: none;
-}
-a {
- color: #ffcc00;
- font-weight: 400;
- text-decoration: none;
-
- transition: all 0.3s;
- -o-transition: all 0.3s;
- -ms-transition: all 0.3s;
- -moz-transition: all 0.3s;
- -webkit-transition: all 0.3s;
-}
-a:hover {
- color: #ffeb9b;
-}
-
-#blob {
- line-height: 1.25;
-}
-#blob a {
- color: #888;
-}
-#blob a:hover {
- color: #ffeb9b;
-}
-
-table thead td {
- font-weight: 300;
- color: #b5e853;
-}
-table td {
- padding: 0 0.6em;
- vertical-align: top;
- white-space: nowrap;
-}
-table td:first-child {
- padding-left: 0;
-}
-table td:last-child {
- padding-right: 0;
-}
-
-#branches tr:hover td,
-#tags tr:hover td,
-#index tr:hover td,
-#log tr:hover td,
-#files tr:hover td {
- background-color: #333;
-}
-
-#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;
-}
-
-/* Hunk header */
-pre a.h {
- color: #b5e853;
-}
-
-/* Added lines */
-.A,
-span.i,
-pre a.i {
- color: #9e9;
-}
-
-/* Deleted lines */
-.D,
-span.d,
-pre a.d {
- color: #e99;
-}
-
-pre a.h:hover,
-pre a.i:hover,
-pre a.d:hover {
- text-decoration: none;
-}
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
@@ -161,7 +161,7 @@ blockquote {
border-left: 1px dotted #666;
}
-pre {
+pre.code {
background: rgba(0, 0, 0, 0.9);
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 10px;
@@ -259,6 +259,115 @@ a:hover {
}
+/* Stagit */
+
+.container.wide.git {
+ max-width: 1200px;
+}
+
+.git .url {
+ margin: -10px 0 10px 0;
+ color: #666;
+}
+.git .url:before {
+ font-weight: 300;
+ color: #888;
+ content: "$ ";
+}
+
+main.git {
+ margin-top: 40px;
+}
+
+.git b {
+ font-weight: 300;
+ color: #888;
+}
+
+a:target {
+ background-color: #333;
+}
+a.d,
+a.h,
+a.i,
+a.line {
+ text-decoration: none;
+}
+
+#blob {
+ line-height: 1.25;
+}
+#blob a {
+ color: #888;
+}
+#blob a:hover {
+ color: #ffeb9b;
+}
+
+.git table {
+ width: auto;
+}
+.git table thead td {
+ font-weight: 300;
+ color: #b5e853;
+}
+.git table td {
+ padding: 0 0.6em;
+ vertical-align: top;
+ white-space: nowrap;
+}
+.git table td:first-child {
+ padding-left: 0;
+}
+.git table td:last-child {
+ padding-right: 0;
+}
+
+#branches tr:hover td,
+#tags tr:hover td,
+#index tr:hover td,
+#log tr:hover td,
+#files tr:hover td {
+ background-color: #333;
+}
+
+#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;
+}
+
+.git td.num {
+ text-align: right;
+}
+
+/* Hunk header */
+.git pre a.h {
+ color: #b5e853;
+}
+
+/* Added lines */
+.git .A,
+.git span.i,
+.git pre a.i {
+ color: #9e9;
+}
+
+/* Deleted lines */
+.git .D,
+.git span.d,
+.git pre a.d {
+ color: #e99;
+}
+
+.git pre a.h:hover,
+.git pre a.i:hover,
+.git pre a.d:hover {
+ text-decoration: none;
+}
+
+
/* Clearfix */
.cf:before, .cf:after {