summaryrefslogtreecommitdiff
path: root/public/assets/style.css
blob: f345dc119251dc55a6623b2edc3a04bf1eb886da (plain)
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
/* -*- css-indent-offset: 8; tab-width: 8 -*- */

body {
	width: 98%;
	max-width: 1024px;
	margin-left: auto;
	margin-right: auto;

	font-family: sans-serif;
}

blockquote {
	border-left: solid .2em #DDDDFF;
	margin-left: 1.5em;
	padding-left: 0.3em;
	font-style: italic;
}

footer {
	text-align: center;
	font-size: 70%;
	color: #333333;
}

/* little hack to make nested lists not take up extra vertical space */
li > p:first-child { margin-top: 0; }
li p + ul { margin-top: -1em; }

/* code elements */

kbd, code, samp, tt, pre {
	background: #DDDDFF;
}
kbd, code, samp, tt,  {
	white-space: pre-wrap;
}
@media screen {
	/* Firefox for Android does weird hacks with font-size.  In
	 * particular, `white-space: pre` is broken on Firefox for
	 * Android if you don't set an absolute font-size.  So this is
	 * a hack to get reasonable behavior without setting
	 * `white-space: pre`.  */
	pre {
		white-space: pre-wrap;
		overflow-x: auto;
	}
	pre > code {
		white-space: pre-wrap;
		display: block;
		min-width: max-content;
	}
}
@media print {
	pre, pre > code {
		white-space: pre-wrap;
	}
}

var {
	color: #008800;
}

pre, ul.tree {
	margin: auto 2em;
	padding: .5em;
	overflow: auto;
	border: solid 1px #AAAAAA;
}

pre hr {
	height: 0px;
	border: none;
	border-top: solid 1px #AAAAAA;
}

/* lists that look like `tree` output */
ul.tree {
	font-family: monospace;
	background: #DDDDFF;
}
ul.tree li {
	list-style-type: none;
}
ul.tree ul {
	padding-left: 0;
}
ul.tree ul li {
	/* draw the vertical lines */
	margin-left: calc(0.5ch - 1px);
	border-left: solid 1px black;
	/* and indent 4 chars */
	padding-left: 3.5ch; /* 4ch - 0.5ch for the margin-left above */
}
ul.tree ul li::before {
	/* make a non-empty inline-block element */
	display: inline-block;
	content: " "; /* a unicode non-breaking space */
	/* un-indent */
	margin-left: calc(-3.5ch - 1px); /* to match the padding-left above */
	border-left: solid 1px transparent;
	/* draw the horizontal lines */
	border-bottom: solid 1px black;
	top: 0;
	height: 1ex;
	width: 2.5ch;
	margin-right: 1ch;
}
ul.tree ul li:last-child {
	/* let the li::before psuedo-element draw the last part of the vertical line. */
	border-left: solid 1px transparent;
}
ul.tree ul li:last-child::before {
	border-left: solid 1px black;
}

/* table elements */

table, td, th {
	border-collapse: collapse;
	border: solid 1px #AAAAAA;
}

table {
	margin-left: auto;
	margin-right: auto;
}

td, th {
	padding-left: .5em;
	padding-right: .5em;
}
th {
	background: #F5F5F5;
}

table > caption {
	text-align: left;
}

table pre {
	margin: auto;
}

/* heading elements */

h1, h2, h3, h4, h5, h6 {
	font-family: sans-serif;
}

h1 {
	text-align: center;
	background-color: #DDDDFF;
}

caption > h1 { /* don't make the headings in captions huge */
	font-size: 100%;
}

/* hyperlink elements */

a {
	text-decoration: none;
}

a:hover, a:focus {
	text-decoration: underline;
}

a.em, a.em:visited {
	color: #0000ee;
	font-weight: bold;
}

/* beg banner */

aside.sponsor {
	margin: 0 auto;
	width: 80%;
	font-size: 142%;
	padding: 1em 1.5em;
	background: #DDDDFF;
	font-weight: bold;
}