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