summary refs log tree commit diff
path: root/default.css
blob: 1d3d3e5e0849de535a95caa7b1a3e30eea9859ee (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
:root {
	--background: #fff;
	--foreground: #222;
	--light: #eee;
	--dark: #777;
	--accent: #c29;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #111;
		--foreground: #bbb;
		--light: #222;
	}
}

html {
	font-family: monospace;
	line-height: 1.25em;
	color: var(--foreground);
	background-color: var(--background);
}

a, a:visited {
	color: var(--accent);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

body {
	max-width: 130ch;
	padding: 0 1ch;
	margin: auto;
}

h1, h2, nav, table, footer {
	margin: 1rem 0;
}

nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
nav ol {
	margin: 0;
	padding: 0;
	margin-right: 1ch;
}
nav ol li {
	display: inline;
}
nav ol li::before {
	content: '/';
	padding: 0 1ch;
}
nav ol li:first-child::before {
	padding-left: 0;
}

table {
	width: 100%;
	border-spacing: 0;
}
tr {
	vertical-align: top;
}
td:not(:last-child) {
	padding-right: 1ch;
}
th {
	font-weight: inherit;
}

thead {
	background-color: var(--light);
}
tr.topic th {
	text-align: left;
	padding: 0.5em 0.5ch;
}
tr.page th {
	padding: 0.5em 0;
}
tr.gap {
	color: var(--dark);
	background-color: var(--light);
}

td.time, td.network, td.context, td.nick {
	white-space: nowrap;
}
td.time a, td.network a, td.context a {
	font-size: x-small;
	color: var(--dark);
}
tr:target td.time a {
	color: var(--accent);
	text-decoration: underline;
}

td.nick {
	text-align: right;
}
tr.privmsg td.nick span::before {
	content: '<';
}
tr.privmsg td.nick span::after {
	content: '>';
}
tr.action td.nick span::before {
	content: '* ';
}
tr.notice td.nick span::before, tr.notice td.nick span::after {
	content: '-';
}

td.message {
	width: 100%;
	overflow-wrap: anywhere;
}

footer {
	color: var(--dark);
	font-size: small;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
footer a, footer a:visited {
	color: inherit;
}
footer span[title] {
	cursor: help;
}
footer span[title]:hover {
	text-decoration: underline;
	text-decoration-style: dotted;
}