summary refs log tree commit diff
path: root/stylesheet.c
blob: 41a0bd9a52b91046644cf3d6a5385c42236e7882 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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;
	}
);