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