Files: 71104198f6cb039c70c3961bf6bd71165fb10d10 / static / styles.css
6370 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 | width: 100%; |
366 | } |
367 | |
368 | .code th { |
369 | font-family: sans-serif; |
370 | font-size: 1.25em; |
371 | padding-bottom: .5ex; |
372 | } |
373 | |
374 | .diff-info { |
375 | font-family: sans-serif; |
376 | font-size: 1.25em; |
377 | } |
378 | |
379 | .diff-hunk-header { |
380 | background-color: #eee; |
381 | color: grey; |
382 | } |
383 | |
384 | .code td { |
385 | padding: 0 1ex 0; |
386 | } |
387 | |
388 | :target, |
389 | .code tr:hover { |
390 | background-color: #fff8d2 ; |
391 | } |
392 | |
393 | .code-linenum { |
394 | vertical-align: top; |
395 | text-align: right; |
396 | color: grey; |
397 | border-right: 1px solid rgba(0, 0, 0, 0.06); |
398 | } |
399 | |
400 | .code-linenum a { |
401 | color: inherit; |
402 | } |
403 | |
404 | .code-linenum a:hover { |
405 | color: #9f9999; |
406 | } |
407 | |
408 | .code-text { |
409 | white-space: pre-wrap; |
410 | width: 100%; |
411 | } |
412 | |
413 | .diff-old { background-color: #ffe2dd; } |
414 | .diff-new { background-color: #d1ffd6; } |
415 | |
416 | .code img { |
417 | max-width: 100%; |
418 | } |
419 | |
420 | /* Pull requests */ |
421 | |
422 | #commits:not(:target) ~ #commits-tab, |
423 | #commits:target ~ #files-tab { |
424 | display: none; |
425 | } |
426 | |
427 | #commits:not(:target) + .tab-links #files-link, |
428 | #commits:target + .tab-links #commits-link { |
429 | font-weight: bold; |
430 | } |
431 | |
432 | .compare-commits { |
433 | width: 100%; |
434 | } |
435 | |
436 | .date-info { |
437 | font-weight: normal; |
438 | text-align: left; |
439 | color: #666; |
440 | } |
441 | |
442 | .compare-commits td:first-child { |
443 | padding-left: 2ex; |
444 | white-space: nowrap; |
445 | text-overflow: ellipsis; |
446 | overflow: hidden; |
447 | max-width: 10em; |
448 | } |
449 | |
450 | .commit-title { |
451 | word-break: break-all; |
452 | } |
453 | |
454 | .pr-tab-links { |
455 | margin: .5em 0 0.25em; |
456 | } |
457 | |
458 | .merge-instructions { |
459 | margin-top: .5em; |
460 | } |
461 | |
462 | #merge-instructions:not(:checked) + h4 .toggle-open, |
463 | #merge-instructions:checked + h4 .toggle-closed, |
464 | #merge-instructions:not(:checked) ~ .contents { |
465 | display: none; |
466 | } |
467 | |
468 | .toggle-link { |
469 | color: #006eff; |
470 | font-weight: normal; |
471 | } |
472 |
Built with git-ssb-web