about summary refs log tree commit diff
path: root/stylesheet.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-01 23:39:25 -0500
committerJune McEnroe <june@causal.agency>2020-12-02 00:56:55 -0500
commit054121d6fa207c082d3e4f3b854e59ad116e5a59 (patch)
tree9829a2042b1bf4e721e9cccdb4658020e8020d55 /stylesheet.c
parentBe even less weird about HTML (diff)
downloadbubger-054121d6fa207c082d3e4f3b854e59ad116e5a59.tar.gz
bubger-054121d6fa207c082d3e4f3b854e59ad116e5a59.zip
Switch to inline default stylesheet
Diffstat (limited to 'stylesheet.c')
-rw-r--r--stylesheet.c96
1 files changed, 96 insertions, 0 deletions
diff --git a/stylesheet.c b/stylesheet.c
new file mode 100644
index 0000000..41a0bd9
--- /dev/null
+++ b/stylesheet.c
@@ -0,0 +1,96 @@
+#include "archive.h"
+const char Stylesheet[] = Q(
+	html {
+		font-family: monospace;
+	}
+	body {
+		max-width: 104ch;
+		margin: auto;
+		padding: 0 1ch;
+	}
+
+	header {
+		margin: 1em 0;
+	}
+
+	main.index ol {
+		list-style-type: none;
+		padding: 0;
+	}
+	main.index ol li {
+		margin: 1em 0;
+	}
+	main.index h2 {
+		font-size: 1em;
+		margin: 0;
+	}
+	main.index time, main.index data.replies {
+		display: block;
+	}
+	main.index data.replies[value="0"] {
+		display: none;
+	}
+
+	article.message header {
+		background-color: gainsboro;
+		padding: 1ex 1ch;
+	}
+	article.message:target header {
+		background-color: khaki;
+	}
+	article.message header h2 {
+		font-size: 1em;
+		margin: 0;
+	}
+
+	pre {
+		white-space: pre-wrap;
+	}
+	span.quote {
+		color: navy;
+	}
+	span.quote.level2 {
+		color: teal;
+	}
+	span.quote.level3 {
+		color: purple;
+	}
+	span.diff.head {
+		font-weight: bold;
+	}
+	span.diff.hunk {
+		color: navy;
+	}
+	span.diff.old {
+		color: red;
+	}
+	span.diff.new {
+		text-decoration: none;
+		color: green;
+	}
+
+	ul.attachment {
+		background-color: gainsboro;
+		padding-top: 1ex;
+		padding-bottom: 1ex;
+		list-style-type: square;
+	}
+
+	details.subthread, article.message > article.message {
+		border-left: 2px solid gainsboro;
+		padding-left: 1ch;
+	}
+	details.subthread summary {
+		margin: 1em 0;
+	}
+
+	footer {
+		margin: 1em 0;
+		font-size: x-small;
+		text-align: center;
+		color: gray;
+	}
+	footer a {
+		color: inherit;
+	}
+);