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