Files: babb262b078e38fca3a8939a37b6f4320d307995 / static / styles.css
6158 bytesRaw
1 | body { |
2 | margin: 1ex 1em; |
3 | line-height: 1.6; |
4 | background-color: #eee; |
5 | font-family: sans-serif; |
6 | } |
7 | |
8 | header, article { |
9 | width: 45em; |
10 | max-width: 100%; |
11 | min-width: 16em; |
12 | margin: 0 auto; |
13 | } |
14 | |
15 | pre { |
16 | font: 12px/1.45 Consolas, "Liberation Mono", Menlo, Courier, monospace; |
17 | padding: .5em 1.25ex; |
18 | border: 1px solid #ddd; |
19 | background: #f8f8f8; |
20 | border-radius: .5ex; |
21 | } |
22 | |
23 | section code { |
24 | padding: .5ex; |
25 | border-radius: .5ex; |
26 | background-color: #f5f5f5; |
27 | } |
28 | |
29 | pre > code { |
30 | padding: 0; |
31 | background-color: #f8f8f8; |
32 | } |
33 | |
34 | /* header */ |
35 | |
36 | header h1 { |
37 | font-weight: inherit; |
38 | font-size: 1.5em; |
39 | display: inline; |
40 | } |
41 | |
42 | header h1 :link, |
43 | header h1 :visited { |
44 | color: #666; |
45 | } |
46 | |
47 | header h1 sub { |
48 | color: #444; |
49 | font-style: oblique; |
50 | font-size: small; |
51 | } |
52 | |
53 | header .search-bar { |
54 | float: right; |
55 | margin-top: .5em; |
56 | margin-left: 1ex; |
57 | max-width: 65%; |
58 | padding: .25em; |
59 | font-size: 10pt; |
60 | } |
61 | |
62 | .profile-icon { |
63 | height: 1.5em; |
64 | width: 1.5em; |
65 | margin: .5em .5ex 0 .5ex; |
66 | border: none; |
67 | } |
68 | |
69 | .icon-right { |
70 | float: right; |
71 | } |
72 | |
73 | /* content */ |
74 | |
75 | section { |
76 | background-color: white; |
77 | padding: 1ex 1ex; |
78 | margin-bottom: 1ex; |
79 | border-radius: .5ex; |
80 | border: 1px #ccc; |
81 | border-style: none solid solid none; |
82 | } |
83 | |
84 | section.collapse { |
85 | margin-bottom: 0; |
86 | } |
87 | |
88 | h1, h2, h3, h4, h5, h6 { |
89 | margin: 0; |
90 | } |
91 | |
92 | h3 ~ h4 { |
93 | margin-top: 1em; |
94 | } |
95 | |
96 | a:link, a:visited { |
97 | color: #006eff; |
98 | text-decoration: none; |
99 | } |
100 | a:hover { |
101 | color: #1f8fff; |
102 | } |
103 | |
104 | hr { |
105 | border: 0; |
106 | border-bottom: 1px solid #ddd; |
107 | } |
108 | |
109 | i { |
110 | font-family: Symbola, 'Apple Color Emoji', 'Android Emoji', |
111 | 'Segoe UI Symbol', 'DejaVu Sans', sans-serif; |
112 | font-style: inherit; |
113 | } |
114 | |
115 | section img { |
116 | max-width: 100%; |
117 | } |
118 | |
119 | /* repo page */ |
120 | |
121 | .repo-title { |
122 | height: 2em; |
123 | } |
124 | |
125 | .repo-title h2 { |
126 | height: 1.2em; |
127 | } |
128 | |
129 | .bgslash { |
130 | color: #888; |
131 | } |
132 | |
133 | .petname h2, |
134 | .petname h3 { |
135 | float: left; |
136 | } |
137 | |
138 | .right-bar { |
139 | float: right; |
140 | display: inline-block; |
141 | } |
142 | |
143 | .repo-title .right-bar { |
144 | margin-top: .25em; |
145 | } |
146 | |
147 | .btn { |
148 | font-size: 1em; |
149 | border-radius: .5ex; |
150 | |
151 | background-color: white; |
152 | border: 1px #ccc; |
153 | border-style: none solid solid none; |
154 | border-radius: .5ex; |
155 | cursor: pointer; |
156 | color: black; |
157 | } |
158 | .btn:hover { |
159 | background-color: #f6f6f6; |
160 | } |
161 | |
162 | .name { |
163 | font-size: inherit; |
164 | margin-left: 1ex; |
165 | width: 20em; |
166 | } |
167 | |
168 | label { |
169 | cursor: pointer; |
170 | } |
171 | |
172 | .name-toggle { |
173 | font-size: 1.3em; |
174 | margin-left: .25ex; |
175 | } |
176 | |
177 | .name-checkbox, |
178 | .toggle, |
179 | .tab-radio { |
180 | position: absolute; |
181 | opacity: 0; |
182 | font-size: 0; |
183 | } |
184 | |
185 | .name-checkbox:checked ~ h2 :last-child, |
186 | .name-checkbox:checked ~ h3, |
187 | .name-checkbox:not(:checked) ~ .name, |
188 | .name-checkbox:not(:checked) ~ .name-btn { |
189 | display: none; |
190 | } |
191 | |
192 | .clone-url { |
193 | font-size: small; |
194 | color: #666; |
195 | padding: .3em 1ex; |
196 | background-color: white; |
197 | border: 1px #ccc; |
198 | border-style: none solid solid none; |
199 | border-radius: .5ex; |
200 | float: right; |
201 | margin: 0; |
202 | max-width: 50%; |
203 | } |
204 | .clone-url:hover { |
205 | background-color: #f6f6f6; |
206 | } |
207 | |
208 | nav { |
209 | margin: .5em 0 1ex 0; |
210 | clear: left; |
211 | } |
212 | |
213 | nav a { |
214 | border-radius: .5ex; |
215 | padding: 0 .5ex; |
216 | display: inline-block; |
217 | margin-right: .5ex; |
218 | } |
219 | nav a:hover { |
220 | color: #1a86ff; |
221 | } |
222 | |
223 | nav a.active { |
224 | text-decoration: underline; |
225 | } |
226 | |
227 | .raw-link { |
228 | float: right; |
229 | display: inline-block; |
230 | } |
231 | |
232 | .header-align { |
233 | margin-top: .25em; |
234 | } |
235 | |
236 | /* files list */ |
237 | |
238 | .files td:first-child { |
239 | padding: 0 1ex; |
240 | } |
241 | |
242 | /* user page */ |
243 | |
244 | .user-id { |
245 | float: right; |
246 | font-weight: normal; |
247 | display: inline-block; |
248 | margin: 0; |
249 | } |
250 | |
251 | h2 .user-id { |
252 | font-size: 16px; |
253 | padding-top: .5em; |
254 | } |
255 | |
256 | h3 .user-id { |
257 | font-size: 15px; |
258 | padding-top: .25em; |
259 | } |
260 | |
261 | /* new issue form */ |
262 | |
263 | .wide-input { |
264 | width: 99%; |
265 | display: block; |
266 | font-size: inherit; |
267 | line-height: inherit; |
268 | } |
269 | |
270 | /* issues */ |
271 | |
272 | .issue-state { |
273 | margin-right: .25ex; |
274 | } |
275 | |
276 | .issue-state-open { |
277 | color: #38ae67; |
278 | } |
279 | |
280 | .issue-state-closed { |
281 | color: #d84a38; |
282 | } |
283 | |
284 | /* issue */ |
285 | |
286 | .issue-status { |
287 | padding: .4ex .75ex; |
288 | margin-right: .75ex; |
289 | border-radius: .5ex; |
290 | } |
291 | |
292 | .open { |
293 | background-color: #38ae67; |
294 | color: white; |
295 | font-weight: bold; |
296 | } |
297 | |
298 | .btn.open:hover { |
299 | background-color: #2b9d58; |
300 | } |
301 | |
302 | .closed { |
303 | background-color: #d84a38; |
304 | color: white; |
305 | } |
306 | |
307 | .mention-preview { |
308 | overflow: hidden; |
309 | white-space: nowrap; |
310 | text-overflow: ellipsis; |
311 | } |
312 | |
313 | .tab-links label, |
314 | .tab-links a { |
315 | padding: 1ex; |
316 | color: #333; |
317 | } |
318 | |
319 | #tab1:checked ~ .tab-links .tab1-link, |
320 | #tab2:checked ~ .tab-links .tab2-link { |
321 | text-decoration: underline; |
322 | } |
323 | |
324 | #tab1:not(:checked) ~ .tab1, |
325 | .tab2 { |
326 | display: none; |
327 | } |
328 | |
329 | .tab1, |
330 | #tab2:checked ~ .tab2 { |
331 | display: block; |
332 | } |
333 | |
334 | .preview-text { |
335 | border: 1px solid #c0bdba; |
336 | min-height: 6em; |
337 | margin: .25ex 0; |
338 | padding: .25ex; |
339 | } |
340 | |
341 | .preview-text :first-child { |
342 | margin-top: 0; |
343 | } |
344 | .preview-text :last-child { |
345 | margin-bottom: 0; |
346 | } |
347 | |
348 | .highlight { |
349 | background-color: #ff6; |
350 | padding: .25ex .5ex; |
351 | margin: -.25ex -.5ex; |
352 | } |
353 | |
354 | .item-id { |
355 | color: grey; |
356 | line-height: 2; |
357 | font-size: 10pt; |
358 | } |
359 | |
360 | /* code and diffs */ |
361 | |
362 | .code { |
363 | border-collapse: collapse; |
364 | text-align: left; |
365 | } |
366 | |
367 | .code th { |
368 | font-family: sans-serif; |
369 | font-size: 1.25em; |
370 | padding-bottom: .5ex; |
371 | } |
372 | |
373 | .diff-hunk-header { |
374 | background-color: #eee; |
375 | color: grey; |
376 | } |
377 | |
378 | .code td { |
379 | padding: 0 1ex 0; |
380 | } |
381 | |
382 | :target, |
383 | .code tr:hover { |
384 | background-color: #fff8d2 ; |
385 | } |
386 | |
387 | .code-linenum { |
388 | vertical-align: top; |
389 | text-align: right; |
390 | color: grey; |
391 | border-right: 1px solid rgba(0, 0, 0, 0.06); |
392 | } |
393 | |
394 | .code-linenum a { |
395 | color: inherit; |
396 | } |
397 | |
398 | .code-linenum a:hover { |
399 | color: #9f9999; |
400 | } |
401 | |
402 | .code-text { |
403 | white-space: pre-wrap; |
404 | width: 100%; |
405 | } |
406 | |
407 | .diff-old { background-color: #ffe2dd; } |
408 | .diff-new { background-color: #d1ffd6; } |
409 | |
410 | .code img { |
411 | max-width: 100%; |
412 | } |
413 | |
414 | /* Pull requests */ |
415 | |
416 | #commits:not(:target) ~ #commits-tab, |
417 | #commits:target ~ #files-tab { |
418 | display: none; |
419 | } |
420 | |
421 | #commits:not(:target) + .tab-links #files-link, |
422 | #commits:target + .tab-links #commits-link { |
423 | font-weight: bold; |
424 | } |
425 | |
426 | .compare-commits { |
427 | width: 100%; |
428 | } |
429 | |
430 | .date-info { |
431 | font-weight: normal; |
432 | text-align: left; |
433 | color: #666; |
434 | } |
435 | |
436 | .compare-commits td:first-child { |
437 | padding-left: 2ex; |
438 | } |
439 | |
440 | .pr-tab-links { |
441 | margin: .5em 0 0.25em; |
442 | } |
443 | |
444 | .merge-instructions { |
445 | margin-top: .5em; |
446 | } |
447 | |
448 | #merge-instructions:not(:checked) + h4 .toggle-open, |
449 | #merge-instructions:checked + h4 .toggle-closed, |
450 | #merge-instructions:not(:checked) ~ .contents { |
451 | display: none; |
452 | } |
453 | |
454 | .toggle-link { |
455 | color: #006eff; |
456 | font-weight: normal; |
457 | } |
458 |
Built with git-ssb-web